Java如何使自己的程序的窗口处于屏幕的最上层?象Flash Get那样?
或者给一个设计的思路
或者给一个设计的思路
解决方案 »
- java做的小游戏,怎么实现多次撞球的效果?
- java 返回系统当前时间
- 事件响应!!!!!!!!!!!!!!!急
- for循环内初始化的问题。
- 求一java正则表达,把我没用的html代码去掉?
- java与ZPL通信
- 关于日期的检查
- 为何import会报错?
- 谁能说说jsp中的exception对象的使用方法?100分 :)
- 决定学Java,有没有小而好用的Java编辑器写代码,就象TurboC一样?
- 大家好呀!我有一部分这样的程序,我不知道怎么调试它们,因为我是一个菜鸟,我是从一个星期前开始学的,要在一个星期后就得交论文,救救
- 大家好呀!我有一部分这样的程序,我不知道怎么调试它们,因为我是一个菜鸟,我是从一个星期前开始学的,要在一个星期后就得交论文,救救
(1.5有接口了)
反编译jdk1.5找相关接口源码。
HWND FindWindow(LPCTSTR LpClassName,LPCTSTR LpWindowName) //获取窗口句柄
BOOL SetWindowPos(HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) //设置窗口显示层次我写过这样一个dll,你不想写就留个邮箱,我给你发去
为此Window添加鼠标双击事件,当鼠标双击时。显示另外一个主窗口JFrame。
import javax.swing.*;public class F
extends JFrame
{
public F()
{
this.setUndecorated(true);
this.setSize(60,60);
this.setAlwaysOnTop(true);
this.setLocation(700,80);
this.getContentPane().setBackground(Color.blue);
this.setVisible(true);
} public static void main(String[] args)
{
F f=new F();
}
}
import javax.swing.*;public class F
extends JFrame
{
public F()
{
this.setUndecorated(true);
this.setSize(40,40);
this.setAlwaysOnTop(true);
this.setLocation(930,30);
this.getContentPane().setBackground(Color.green);
this.setVisible(true);
} public static void main(String[] args)
{
F f=new F();
}
}
楼上都写了^_^