Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
Satellite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Reis
Satellite
Commits
9423872e
Commit
9423872e
authored
Nov 04, 2015
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added labels to satelliteStatus
parent
b1c013d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
satelliteStatus.java
src/GUI/satelliteStatus.java
+31
-1
No files found.
src/GUI/satelliteStatus.java
View file @
9423872e
...
...
@@ -25,6 +25,7 @@ import javax.swing.tree.DefaultMutableTreeNode;
import
javax.swing.tree.TreeSelectionModel
;
import
javax.swing.JPanel
;
import
javax.swing.JButton
;
import
java.awt.GridLayout
;
public
class
satelliteStatus
extends
JInternalFrame
{
...
...
@@ -50,6 +51,7 @@ public class satelliteStatus extends JInternalFrame {
desktopPane
.
add
(
panel
);
JButton
btnStartTracking
=
new
JButton
(
"Start Tracking"
);
btnStartTracking
.
setBounds
(
35
,
390
,
165
,
48
);
btnStartTracking
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mousePressed
(
MouseEvent
arg0
)
{
...
...
@@ -57,8 +59,37 @@ public class satelliteStatus extends JInternalFrame {
(
new
Thread
(
new
trackerThread
())).
start
();
}
});
panel
.
setLayout
(
null
);
panel
.
add
(
btnStartTracking
);
JButton
btnStopTracking
=
new
JButton
(
"Stop Tracking"
);
btnStopTracking
.
setBounds
(
257
,
390
,
161
,
48
);
panel
.
add
(
btnStopTracking
);
JLabel
lblLatitude
=
new
JLabel
(
"Latitude"
);
lblLatitude
.
setBounds
(
35
,
21
,
165
,
31
);
panel
.
add
(
lblLatitude
);
JLabel
lblLongitude
=
new
JLabel
(
"Longitude"
);
lblLongitude
.
setBounds
(
35
,
73
,
92
,
26
);
panel
.
add
(
lblLongitude
);
JLabel
lblAltitude
=
new
JLabel
(
"Altitude"
);
lblAltitude
.
setBounds
(
35
,
120
,
92
,
26
);
panel
.
add
(
lblAltitude
);
JLabel
lblRange
=
new
JLabel
(
"Range"
);
lblRange
.
setBounds
(
35
,
172
,
92
,
26
);
panel
.
add
(
lblRange
);
JLabel
lblLat
=
new
JLabel
(
"Lat"
);
lblLat
.
setBounds
(
164
,
23
,
92
,
26
);
panel
.
add
(
lblLat
);
JLabel
lblLong
=
new
JLabel
(
"Long"
);
lblLong
.
setBounds
(
164
,
73
,
92
,
26
);
panel
.
add
(
lblLong
);
//Where the tree is initialized:
tree
.
getSelectionModel
().
setSelectionMode
(
TreeSelectionModel
.
SINGLE_TREE_SELECTION
);
...
...
@@ -114,5 +145,4 @@ public class satelliteStatus extends JInternalFrame {
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment