-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaboutTextbox.java
More file actions
executable file
·67 lines (55 loc) · 1.65 KB
/
aboutTextbox.java
File metadata and controls
executable file
·67 lines (55 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* aboutTextbox.java
*
* Created on March 16, 2006, 9:35 PM
*/
/**
* @author Chen-Fu Liao
* Sr. Systems Engineer
* ITS Institute, ITS Laboratory
* Center For Transportation Studies
* University of Minnesota
* 200 Transportation and Safety Building
* 511 Washington Ave. SE
* Minneapolis, MN 55455
*/
import java.awt.* ;
import java.net.URL ;
public class aboutTextbox extends Panel
{
int panelWidth = 250 ;
int panelHeight = 150 ;
Label title = new Label("Roadway Online Application for Design (ROAD)") ;
//SHARED share = new SHARED();
String verStr = SHARED.VERSION ;
Label ver = new Label(verStr) ;
Label org = new Label("MTO/CE/ITS Institute, University of Minnesota") ;
aboutTextbox()
{
setBackground(new Color(128,255,255));
setLayout(new BorderLayout(10,10));
title.setForeground(Color.black) ;
title.setAlignment(title.CENTER) ;
title.setFont(Font.getFont("TimesRoman-BOLD-15")) ;
add(title, BorderLayout.NORTH) ;
ver.setForeground(Color.black) ;
ver.setAlignment(ver.CENTER) ;
ver.setFont(Font.getFont("Arial-10")) ;
add(ver, BorderLayout.CENTER) ;
org.setForeground(Color.blue) ;
org.setAlignment(org.CENTER) ;
org.setFont(Font.getFont("TimesRoman-BOLD-12")) ;
add(org, BorderLayout.SOUTH) ;
}
public void paint(Graphics g)
{
}
public Dimension preferredSize()
{
return(new Dimension(panelWidth,panelHeight));
}
public boolean mouseDown(Event e,int x,int y)
{
return(true);
}
}