Commit a9ebd350 authored by Christopher Reis's avatar Christopher Reis

Added Satellite info fram and deleted databaseTree

parent 5ab55470
package GUI;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.JDesktopPane;
import java.awt.GridBagLayout;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Color;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.DefaultMutableTreeNode;
public class databaseTree extends JPanel {
private JTextField textField;
/**
* Create the panel.
*/
public databaseTree() {
}
}
package GUI;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
public class satelliteInfo extends JInternalFrame {
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
satelliteInfo frame = new satelliteInfo();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public satelliteInfo() {
setBounds(100, 100, 450, 300);
}
}
...@@ -44,6 +44,7 @@ import javax.swing.AbstractListModel; ...@@ -44,6 +44,7 @@ import javax.swing.AbstractListModel;
import javax.swing.JMenuItem; import javax.swing.JMenuItem;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import javax.swing.ListSelectionModel;
public class satelliteTree extends JInternalFrame { public class satelliteTree extends JInternalFrame {
private JTextField satNameField; private JTextField satNameField;
...@@ -86,7 +87,7 @@ public class satelliteTree extends JInternalFrame { ...@@ -86,7 +87,7 @@ public class satelliteTree extends JInternalFrame {
panel.add(lblNewLabel); panel.add(lblNewLabel);
satNameField = new JTextField(); satNameField = new JTextField();
satNameField.setBounds(167, 21, 114, 32); satNameField.setBounds(167, 21, 186, 32);
satNameField.setDropMode(DropMode.INSERT); satNameField.setDropMode(DropMode.INSERT);
panel.add(satNameField); panel.add(satNameField);
satNameField.setColumns(10); satNameField.setColumns(10);
...@@ -116,12 +117,12 @@ public class satelliteTree extends JInternalFrame { ...@@ -116,12 +117,12 @@ public class satelliteTree extends JInternalFrame {
panel.add(lblNewLabel_2); panel.add(lblNewLabel_2);
constillationField = new JTextField(); constillationField = new JTextField();
constillationField.setBounds(167, 61, 114, 32); constillationField.setBounds(167, 61, 186, 32);
panel.add(constillationField); panel.add(constillationField);
constillationField.setColumns(10); constillationField.setColumns(10);
JEditorPane infoPane = new JEditorPane(); JEditorPane infoPane = new JEditorPane();
infoPane.setBounds(167, 256, 186, 113); infoPane.setBounds(167, 256, 379, 113);
panel.add(infoPane); panel.add(infoPane);
JButton saveButton = new JButton("Commit to Database"); JButton saveButton = new JButton("Commit to Database");
...@@ -157,6 +158,7 @@ public class satelliteTree extends JInternalFrame { ...@@ -157,6 +158,7 @@ public class satelliteTree extends JInternalFrame {
downlinkFreqField.setColumns(10); downlinkFreqField.setColumns(10);
JList list = new JList(); JList list = new JList();
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setModel(new AbstractListModel() { list.setModel(new AbstractListModel() {
String[] values = new String[] {"Satellite", "Station", "Geostationary", "Weather", "Amateur Radio"}; String[] values = new String[] {"Satellite", "Station", "Geostationary", "Weather", "Amateur Radio"};
public int getSize() { public int getSize() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment