Commit bd34497f authored by Christopher Reis's avatar Christopher Reis

Added Application package

parent fc16fd3b
...@@ -11,5 +11,11 @@ ...@@ -11,5 +11,11 @@
</classpathentry> </classpathentry>
<classpathentry kind="lib" path="C:/Users/Christopher/Development/worldwind-2.0.0/worldwindx.jar" sourcepath="C:/Users/Christopher/Development/worldwind-2.0.0/src"/> <classpathentry kind="lib" path="C:/Users/Christopher/Development/worldwind-2.0.0/worldwindx.jar" sourcepath="C:/Users/Christopher/Development/worldwind-2.0.0/src"/>
<classpathentry kind="lib" path="C:/Users/Christopher/Development/jdom-2.0.6.jar"/> <classpathentry kind="lib" path="C:/Users/Christopher/Development/jdom-2.0.6.jar"/>
<classpathentry kind="lib" path="org.pushingpixels.trident_1.2.0.v20100204-1500.jar" sourcepath="org.pushingpixels.trident.source_1.2.0.v20100204-1500.jar"/>
<classpathentry kind="lib" path="org.eclipse.e4.xwt_0.9.1.SNAPSHOT.jar" sourcepath="org.eclipse.e4.xwt.source_0.9.1.SNAPSHOT.jar"/>
<classpathentry kind="lib" path="org.eclipse.e4.xwt.forms_0.9.1.SNAPSHOT.jar" sourcepath="org.eclipse.e4.xwt.forms.source_0.9.1.SNAPSHOT.jar"/>
<classpathentry kind="lib" path="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar" sourcepath="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding_1.5.0.v20150422-0725.jar"/>
<classpathentry kind="lib" path="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar" sourcepath="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.core.databinding.observable_1.5.0.v20150422-0725.jar"/>
<classpathentry kind="lib" path="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar" sourcepath="C:/Users/Christopher/Desktop/eclipse/plugins/org.eclipse.jface.databinding_1.7.0.v20150406-2148.jar"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
This diff is collapsed.
/satellite/ /GUI/
/predict4java/
/XML/
package GUI;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import java.awt.BorderLayout;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import javax.swing.AbstractAction;
import java.awt.event.ActionEvent;
import javax.swing.Action;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.JPanel;
public class Application {
private JFrame frmSatelliteTracker;
private final Action action = new SwingAction();
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
Application window = new Application();
window.frmSatelliteTracker.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public Application() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frmSatelliteTracker = new JFrame();
frmSatelliteTracker.setTitle("Satellite Tracker");
frmSatelliteTracker.setBounds(100, 100, 850, 550);
frmSatelliteTracker.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
frmSatelliteTracker.getContentPane().add(tabbedPane, BorderLayout.CENTER);
JTree tree = new JTree();
tree.setModel(new DefaultTreeModel(
new DefaultMutableTreeNode("Satellites") {
{
}
}
));
tabbedPane.addTab("New tab", null, tree, null);
JPanel panel = new JPanel();
tabbedPane.addTab("New tab", null, panel, null);
JMenuBar menuBar = new JMenuBar();
frmSatelliteTracker.setJMenuBar(menuBar);
JMenu mnFile = new JMenu("FIle");
mnFile.setIcon(null);
menuBar.add(mnFile);
}
private class SwingAction extends AbstractAction {
public SwingAction() {
putValue(NAME, "SwingAction");
putValue(SHORT_DESCRIPTION, "Some short description");
}
public void actionPerformed(ActionEvent e) {
}
}
}
package GUI;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
public class satList extends JInternalFrame {
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
satList frame = new satList();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public satList() {
setBounds(100, 100, 450, 300);
}
}
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