Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

set size button java

import javax.swing.*;
public class ButtonExample {
	public static void main(String[] args) {
    	JFrame f=new JFrame("Button Example");
    	JButton b=new JButton("Click Here");
    	b.setBounds(50,100,95,30);
    	f.add(b);
        f.setSize(400,400);
    	f.setLayout(null);
    	f.setVisible(true);
	}
}
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #set #size #button #java
ADD COMMENT
Topic
Name
6+3 =