已设置右上角最小化和关闭按钮图标。

This commit is contained in:
zengpingweb_nudt_ah_client 2014-06-03 13:13:58 +08:00
parent 5ffdbe5def
commit 82e6c2a3ef
8 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

View File

@ -251,7 +251,7 @@ public class AHJFrame extends JFrame {
panelTop_Top.add(panelTop_Top_Right, BorderLayout.EAST);
panelTop_Top_Right.setOpaque(false);
btnCloseWindow = new JButton("X");
btnCloseWindow = new AHJButton("close");
btnCloseWindow.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent arg0) {
setVisible(false);
@ -259,7 +259,12 @@ public class AHJFrame extends JFrame {
}
});
btnMinWindow = new JButton("¡ª");
btnMinWindow = new AHJButton("min");
btnMinWindow.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent arg0) {
setExtendedState(JFrame.ICONIFIED);
}
});
panelTop_Top_Right.add(btnMinWindow);
panelTop_Top_Right.add(btnCloseWindow);