|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| AWTTest.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package nmp.util;
|
|
| 2 |
|
|
| 3 |
import java.awt.*;
|
|
| 4 |
import java.awt.event.*;
|
|
| 5 |
import java.io.*;
|
|
| 6 |
|
|
| 7 |
public class AWTTest |
|
| 8 |
extends Frame
|
|
| 9 |
{
|
|
| 10 | 0 |
public AWTTest( String[] args) {
|
| 11 | 0 |
super( "AWTTest"); |
| 12 | 0 |
Panel p = new Panel( new BorderLayout()); |
| 13 | 0 |
Panel p2 = new Panel();
|
| 14 | 0 |
p2.setLayout( new GridLayout( 0, 1));
|
| 15 | 0 |
if( args == null || args.length == 0) { |
| 16 | 0 |
p2.add( new Label( "No params")); |
| 17 |
} else
|
|
| 18 | 0 |
for( int i = 0; i < args.length; i++) |
| 19 | 0 |
p2.add( new Label( "Param " + i + " : " + args[i])); |
| 20 | 0 |
p.add( "Center", p2);
|
| 21 | 0 |
Button b = new Button( "Exit"); |
| 22 | 0 |
b.addActionListener( new ActionListener() {
|
| 23 | 0 |
public void actionPerformed(ActionEvent e) { |
| 24 | 0 |
System.exit(0); |
| 25 |
} |
|
| 26 |
}); |
|
| 27 | 0 |
p.add( "South", b);
|
| 28 | 0 |
add( "Center", p);
|
| 29 | 0 |
pack(); |
| 30 | 0 |
setVisible( true);
|
| 31 |
} |
|
| 32 |
|
|
| 33 | 0 |
public static void main( String[] args) { |
| 34 | 0 |
new AWTTest( args);
|
| 35 |
} |
|
| 36 |
} |
|
| 37 |
|
|
||||||||||