Pages

Thursday, September 8, 2016

add button in java


 package  myPackage;
 
 import javax.swing.JButton;
 
 public class myClass{

 JButton button = new JButton("button");
 
 public void myButton(){
 
 panel.add(button);
 
 
 }
 
 }
 
 

No comments:

Post a Comment