Code cleanup, center Options button

This commit is contained in:
Ash 2017-04-12 16:21:43 +10:00
parent dd9386f0ed
commit a73873e96d
2 changed files with 1 additions and 4 deletions

View File

@ -73,6 +73,7 @@ public final class GuiInputControls extends JPanel {
});
final JButton optionsButton = new JButton("Options");
optionsButton.setAlignmentX(Component.CENTER_ALIGNMENT);
optionsButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {

View File

@ -22,7 +22,6 @@
package net.ash.HIDToVPADNetworkClient.gui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
@ -45,8 +44,6 @@ import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
import javax.swing.border.EtchedBorder;
import lombok.extern.java.Log;
@ -70,7 +67,6 @@ public class GuiOptionsWindow extends JPanel {
}
JFrame window = new JFrame("Options");
//TODO: close window behaviour
window.setContentPane(instance);
window.pack();
window.setLocationRelativeTo(parent);