Remova chamadas para objetos pares. Utilize interfaces
e classes java.awt ou javax.swing.
public static void main( String[] args ) {
Frame frame = new
Frame( "Peers" );
Button button = new
Button( "Hello World!" );
frame.setLayout( new GridLayout() );
frame.add( button );
frame.setVisible( true );
}
|
|