|
12 | 12 | import java.awt.event.ActionListener; |
13 | 13 | import java.awt.event.MouseAdapter; |
14 | 14 | import java.awt.event.MouseEvent; |
15 | | - |
16 | 15 | import javax.swing.BorderFactory; |
17 | 16 | import javax.swing.BoxLayout; |
18 | 17 | import javax.swing.ImageIcon; |
@@ -157,11 +156,7 @@ private void Render() { |
157 | 156 |
|
158 | 157 | ImageIcon hintsIcon = new ImageIcon("asset/hints.png"); |
159 | 158 | Image image = hintsIcon.getImage(); |
160 | | - Image scaledImage = image.getScaledInstance( |
161 | | - 25, |
162 | | - 25, |
163 | | - Image.SCALE_SMOOTH |
164 | | - ); |
| 159 | + Image scaledImage = image.getScaledInstance(25, 25, Image.SCALE_SMOOTH); |
165 | 160 | ImageIcon scaledImageIcon = new ImageIcon(scaledImage); |
166 | 161 | JLabel hints_button = new JLabel(scaledImageIcon); |
167 | 162 | hints_button.setBorder(new EmptyBorder(20, 0, 0, 10)); |
@@ -205,20 +200,24 @@ public void actionPerformed(ActionEvent e) { |
205 | 200 | } |
206 | 201 | ); |
207 | 202 | } |
208 | | - |
209 | | - private void LinkHints(JLabel hintsFrame){ |
210 | | - hintsFrame.addMouseListener(new MouseAdapter() { |
211 | | - @Override |
212 | | - public void mouseClicked(MouseEvent e) { |
213 | | - String hintString = String.valueOf(Integer.toBinaryString(UNKNOW_NUMBER)); |
214 | | - JOptionPane.showConfirmDialog( |
215 | | - null, |
216 | | - hintString, |
217 | | - "Hints", |
218 | | - JOptionPane.CLOSED_OPTION |
219 | | - ); |
| 203 | + |
| 204 | + private void LinkHints(JLabel hintsFrame) { |
| 205 | + hintsFrame.addMouseListener( |
| 206 | + new MouseAdapter() { |
| 207 | + @Override |
| 208 | + public void mouseClicked(MouseEvent e) { |
| 209 | + String hintString = String.valueOf( |
| 210 | + Integer.toBinaryString(UNKNOW_NUMBER) |
| 211 | + ); |
| 212 | + JOptionPane.showConfirmDialog( |
| 213 | + null, |
| 214 | + hintString, |
| 215 | + "Hints", |
| 216 | + JOptionPane.CLOSED_OPTION |
| 217 | + ); |
| 218 | + } |
220 | 219 | } |
221 | | - }); |
| 220 | + ); |
222 | 221 | } |
223 | 222 |
|
224 | 223 | public void linkMenu(JLabel back_button) { |
|
0 commit comments