mirror of
https://github.com/Maschell/HIDtoVPADNetworkClient.git
synced 2024-11-22 05:59:16 +01:00
Code cleanup, center Options button
This commit is contained in:
parent
dd9386f0ed
commit
a73873e96d
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user