Skip to main content

Posts

Showing posts from April 12, 2017

Jframe Form Designing sample

Advance JAva-Jframe Form Designing sample Code import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.Color; public class Sample extends JFrame  { public Sample() {     setTitle("Home");      getContentPane().setBackground(Color.orange);       setSize(300,200);      setLayout(null);         setDefaultCloseOperation(EXIT_ON_CLOSE);      setLocation(100, 100);              JLabel l0=new JLabel("Registration");        l0.setBounds(10,0,100,20);   add(l0);  JLabel l1=new JLabel("Enter Name");  l1.setBounds(30,20,100,20);  add(l1);      JTextField textFieldUserName = new JTextField(50);     textFieldUserName.setBounds(110,20,60,20);     ...

Advance Java jframe SimpleTutorial

How to Create Java frame Application Siple Program Advance Java jframe  SimpleTutorial  import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.Color; public class One extends JFrame { public One() {        getContentPane().setBackground(Color.orange);        setSize(300,200);        setLayout(null);        setDefaultCloseOperation(EXIT_ON_CLOSE);         setLocation(100, 100);          setVisible(true); } public static void main(String s[]) { One obj=new One(); } }

Labels

Show more