Control Update
This commit is contained in:
+3
-19
@@ -81,27 +81,11 @@ public class MenuWindow {
|
||||
|
||||
private void initComponents() {
|
||||
|
||||
head = gui.getHead();
|
||||
text = gui.getText();
|
||||
this.head = gui.getHead();
|
||||
this.text = gui.getText();
|
||||
this.hover = gui.getHover();
|
||||
|
||||
hover = new MouseAdapter() {
|
||||
@Override
|
||||
public void mouseEntered(MouseEvent e) {
|
||||
super.mouseEntered(e);
|
||||
JButton b = (JButton) e.getSource();
|
||||
b.setForeground(Color.decode("#C40233"));
|
||||
b.setBounds(b.getX() - 10, b.getY() - 10, b.getWidth() + 20, b.getHeight() + 20);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseExited(MouseEvent e) {
|
||||
super.mouseExited(e);
|
||||
JButton b = (JButton) e.getSource();
|
||||
b.setForeground(Color.decode("#121212"));
|
||||
b.setBounds(b.getX() + 10, b.getY() + 10, b.getWidth() - 20, b.getHeight() - 20);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
initHeading();
|
||||
initXAxis();
|
||||
|
||||
Reference in New Issue
Block a user