java Toolkit

Ads

 
 

Share on Google+Share on Google+

shikas
java Toolkit
1 Answer(s)      5 years and 9 months ago
Posted in : Java Beginners

how to set jframe form screen size any resolutions fit to full screen?

Ads
View Answers

January 20, 2012 at 3:37 PM


import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

class LoginDemo extends JFrame{

 JButton SUBMIT;
 JLabel label1,label2;
 final JTextField  text1,text2;
  LoginDemo(){
    setTitle("Login Form");
    setLayout(null);
    label1 = new JLabel();
    label1.setText("Username:");
    text1 = new JTextField(15);

    label2 = new JLabel();
    label2.setText("Password:");
    text2 = new JPasswordField(15);

    SUBMIT=new JButton("SUBMIT");
    label1.setBounds(350,100,100,20);
    text1.setBounds(450,100,200,20);
    label2.setBounds(350,130,100,20);
    text2.setBounds(450,130,200,20);
    SUBMIT.setBounds(450,160,100,20);
   add(label1);
   add(text1);
   add(label2);
   add(text2);
   add(SUBMIT);

   setVisible(true);
   setSize(1024,768);

   SUBMIT.addActionListener(new ActionListener(){
   public void actionPerformed(ActionEvent ae){

   }
 });
  }

  public static void main(String arg[]){
  new LoginDemo();
}
}

Ads









Related Tutorials/Questions & Answers:
java Toolkit
java Toolkit  how to set jframe form screen size any resolutions fit to full screen
Toolkit Class.......... - Java Beginners
Toolkit Class  Hi will you please tell me something about Toolkit class. What following code will give ToolKit kit=ToolKit.getDefaultToolKit(); Dimension dim=kit.getScreenSize(); & How JFileChosser is used Please
Advertisements
Java Wrieless Toolkit
Java Wrieless Toolkit  MY application code does not work on the Java Wireless Toolkit- import java.io.*; public Write{ public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new
Version of com.onelogin>java-saml-toolkit dependency
List of Version of com.onelogin>java-saml-toolkit dependency
Sun Java Wireless Toolkit
Sun Java Wireless Toolkit       Java Platform, Micro Edition The Sun Java Wireless Toolkit is also known as Java Platform, Micro Edition (Java ME) Wireless Toolkit. Java
Maven Dependency java-saml-toolkit >> 2.0.0
You should include the dependency code given in this page to add Maven Dependency of com.onelogin >> java-saml-toolkit version2.0.0 in your project
Maven Dependency java-saml-toolkit >> 2.0.1
You should include the dependency code given in this page to add Maven Dependency of com.onelogin >> java-saml-toolkit version2.0.1 in your project
IT Mill Toolkit
IT Mill Toolkit       IT Mill Toolkit 5 is a server-side RIA framework that provides Java programmers with complete set of RIA widgets. Applications are programmed (with Java
What is the best in Ajax Toolkit?
What is the best in Ajax Toolkit?  What is the best in Ajax Toolkit? Is not Ajax toolkit similar to the Ajax control toolkit? Can you expand it? (Sr, I am not good at English
Plex Toolkit
Plex Toolkit       The Plex Toolkit is a collection of JavaScript libraries which handle the transformation of custom XML markup embedded in an HTML document into user interface
Version of com.airnauts>toolkit dependency
List of Version of com.airnauts>toolkit dependency
Google Web Toolkit
Google Web Toolkit       Google Web Toolkit (GWT) is a Java software development framework that makes... serializable Java classes for your request and response. In production, GWT
Version of com.dangdang>config-toolkit dependency
List of Version of com.dangdang>config-toolkit dependency
Version of com.thesett>junit-toolkit dependency
List of Version of com.thesett>junit-toolkit dependency
Maven Dependency toolkit >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.0.0 in your project
Maven Dependency toolkit >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.1.0 in your project
Maven Dependency toolkit >> 1.1.1
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.1.1 in your project
Maven Dependency toolkit >> 1.2.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.2.0 in your project
Maven Dependency toolkit >> 1.3.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.3.0 in your project
Maven Dependency toolkit >> 1.4.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.4.0 in your project
Maven Dependency toolkit >> 1.4.1
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.4.1 in your project
Maven Dependency toolkit >> 1.4.2
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.4.2 in your project
Maven Dependency toolkit >> 1.4.3
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version1.4.3 in your project
Maven Dependency toolkit >> 2.0.0
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version2.0.0 in your project
Maven Dependency toolkit >> 2.0.1
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version2.0.1 in your project
Maven Dependency toolkit >> 2.0.2
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version2.0.2 in your project
Maven Dependency toolkit >> 2.0.3
You should include the dependency code given in this page to add Maven Dependency of com.airnauts >> toolkit version2.0.3 in your project
Dojo Toolkit
Dojo Toolkit       Dojo is the Open Source JavaScript toolkit that helps you build serious applications in less time. It fills in the gaps where JavaScript and browsers don't go quite
Version of com.mozu>mozu-api-toolkit dependency
List of Version of com.mozu>mozu-api-toolkit dependency
Version of com.dangdang>config-toolkit-parent dependency
List of Version of com.dangdang>config-toolkit-parent dependency