mirror of
https://github.com/Maschell/HIDtoVPADNetworkClient.git
synced 2024-11-22 05:59:16 +01:00
Finish basic InfoTab
This commit is contained in:
parent
a33c5b5720
commit
0b2b1777b5
@ -22,6 +22,7 @@
|
|||||||
package net.ash.HIDToVPADNetworkClient.gui;
|
package net.ash.HIDToVPADNetworkClient.gui;
|
||||||
|
|
||||||
import java.awt.BorderLayout;
|
import java.awt.BorderLayout;
|
||||||
|
import java.awt.Color;
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.awt.GridLayout;
|
import java.awt.GridLayout;
|
||||||
@ -34,6 +35,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.swing.BorderFactory;
|
import javax.swing.BorderFactory;
|
||||||
|
import javax.swing.Box;
|
||||||
import javax.swing.BoxLayout;
|
import javax.swing.BoxLayout;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
@ -69,7 +71,7 @@ public class GuiOptionsWindow extends JPanel {
|
|||||||
|
|
||||||
log.info("Hello from the Options window!");
|
log.info("Hello from the Options window!");
|
||||||
|
|
||||||
setPreferredSize(new Dimension(200, 100));
|
setPreferredSize(new Dimension(500, 400));
|
||||||
|
|
||||||
JTabbedPane tabPane = new JTabbedPane();
|
JTabbedPane tabPane = new JTabbedPane();
|
||||||
tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||||
@ -91,8 +93,13 @@ public class GuiOptionsWindow extends JPanel {
|
|||||||
setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
|
setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
|
||||||
|
|
||||||
infoText = new JTextArea();
|
infoText = new JTextArea();
|
||||||
infoText.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
|
infoText.setEditable(false);
|
||||||
add(infoText);
|
infoText.setText("WIP");
|
||||||
|
JPanel infoTextWrap = new JPanel(new GridLayout(1, 1));
|
||||||
|
infoTextWrap.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
|
||||||
|
infoTextWrap.add(infoText);
|
||||||
|
infoTextWrap.setAlignmentX(Component.CENTER_ALIGNMENT);
|
||||||
|
add(infoTextWrap);
|
||||||
|
|
||||||
JButton copyButton = new JButton("Copy");
|
JButton copyButton = new JButton("Copy");
|
||||||
copyButton.addActionListener(new ActionListener() {
|
copyButton.addActionListener(new ActionListener() {
|
||||||
@ -104,6 +111,7 @@ public class GuiOptionsWindow extends JPanel {
|
|||||||
});
|
});
|
||||||
copyButton.setAlignmentX(Component.CENTER_ALIGNMENT);
|
copyButton.setAlignmentX(Component.CENTER_ALIGNMENT);
|
||||||
add(copyButton);
|
add(copyButton);
|
||||||
|
add(Box.createVerticalStrut(10));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user