|
13 | 13 | import java.awt.Color; |
14 | 14 | import java.awt.FlowLayout; |
15 | 15 | import java.awt.Frame; |
16 | | -import java.awt.Menu; |
17 | | -import java.awt.MenuBar; |
18 | | -import java.awt.MenuItem; |
19 | 16 | import java.awt.event.ActionEvent; |
20 | 17 | import java.awt.event.ActionListener; |
21 | 18 | import java.awt.event.WindowAdapter; |
@@ -158,40 +155,18 @@ public void actionPerformed( final ActionEvent event ) { |
158 | 155 | contentBox.add( wrapper ); |
159 | 156 |
|
160 | 157 | // ACTIONS |
161 | | - MenuBar menubar = new MenuBar(); |
162 | | - Menu file = new Menu("File"); |
163 | | - MenuItem replays = new MenuItem("View Replays"); |
164 | | - MenuItem logs = new MenuItem("View Logs"); |
165 | | - MenuItem exit = new MenuItem("Exit"); |
166 | | - exit.addActionListener( new ActionListener() { |
| 158 | + |
| 159 | + contentBox.add( Box.createVerticalStrut( SPACING ) ); |
| 160 | + wrapper = new JPanel( new FlowLayout( FlowLayout.RIGHT, 0, 0 ) ); |
| 161 | + final JButton exitButton = new JButton( "Quit and Stop Uploading Replays" ); |
| 162 | + exitButton.addActionListener( new ActionListener() { |
167 | 163 | @Override |
168 | 164 | public void actionPerformed( final ActionEvent event ) { |
169 | 165 | GgtrackerUploader.exit(); |
170 | 166 | } |
171 | 167 | } ); |
172 | | - file.add(replays); |
173 | | - file.add(logs); |
174 | | - file.add(exit); |
175 | | - |
176 | | - Menu help = new Menu("Help"); |
177 | | - MenuItem faq = new MenuItem("Online Help"); |
178 | | - help.add(faq); |
179 | | - |
180 | | - menubar.add(file); |
181 | | - menubar.add(help); |
182 | | - setMenuBar(menubar); |
183 | | - |
184 | | - contentBox.add( Box.createVerticalStrut( SPACING ) ); |
185 | | - wrapper = new JPanel( new FlowLayout( FlowLayout.RIGHT, 0, 0 ) ); |
186 | | -// final JButton exitButton = new JButton( "Quit and Stop Uploading Replays" ); |
187 | | -// exitButton.addActionListener( new ActionListener() { |
188 | | -// @Override |
189 | | -// public void actionPerformed( final ActionEvent event ) { |
190 | | -// GgtrackerUploader.exit(); |
191 | | -// } |
192 | | -// } ); |
193 | | -// wrapper.add( exitButton ); |
194 | | -// wrapper.add( Box.createHorizontalStrut( 3 ) ); |
| 168 | + wrapper.add( exitButton ); |
| 169 | + wrapper.add( Box.createHorizontalStrut( 3 ) ); |
195 | 170 | wrapper.add( Utils.createLinkLabel( Consts.APP_VERSION, Consts.URL_HOME_PAGE ) ); |
196 | 171 | contentBox.add( wrapper ); |
197 | 172 |
|
|
0 commit comments