已设置右上角最小化和关闭按钮图标。
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.9 KiB |
|
@ -251,7 +251,7 @@ public class AHJFrame extends JFrame {
|
||||||
panelTop_Top.add(panelTop_Top_Right, BorderLayout.EAST);
|
panelTop_Top.add(panelTop_Top_Right, BorderLayout.EAST);
|
||||||
panelTop_Top_Right.setOpaque(false);
|
panelTop_Top_Right.setOpaque(false);
|
||||||
|
|
||||||
btnCloseWindow = new JButton("X");
|
btnCloseWindow = new AHJButton("close");
|
||||||
btnCloseWindow.addMouseListener(new MouseAdapter() {
|
btnCloseWindow.addMouseListener(new MouseAdapter() {
|
||||||
public void mouseClicked(MouseEvent arg0) {
|
public void mouseClicked(MouseEvent arg0) {
|
||||||
setVisible(false);
|
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(btnMinWindow);
|
||||||
panelTop_Top_Right.add(btnCloseWindow);
|
panelTop_Top_Right.add(btnCloseWindow);
|
||||||
|
|
||||||
|
|