java Toolkit

java Toolkit

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

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();
}
}









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
Maven Repository/Dependency: com.onelogin | java-saml-toolkit
Maven Repository/Dependency of Group ID com.onelogin and Artifact ID java-saml-toolkit. Latest version of com.onelogin:java-saml-toolkit dependencies. # Version Release Date 1
Maven dependency for com.airnauts - toolkit version 2.0.3 is released. Learn to use toolkit version 2.0.3 in Maven based Java projects
( com.airnauts - toolkit version 2.0.3 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 2.0.3 in Java projects... - toolkit version 2.0.3 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 1.4.3 is released. Learn to use toolkit version 1.4.3 in Maven based Java projects
( com.airnauts - toolkit version 1.4.3 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 1.4.3 in Java projects... - toolkit version 1.4.3 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 1.0.0 is released. Learn to use toolkit version 1.0.0 in Maven based Java projects
( com.airnauts - toolkit version 1.0.0 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 1.0.0 in Java projects... - toolkit version 1.0.0 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 2.0.0 is released. Learn to use toolkit version 2.0.0 in Maven based Java projects
( com.airnauts - toolkit version 2.0.0 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 2.0.0 in Java projects... - toolkit version 2.0.0 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 1.1.0 is released. Learn to use toolkit version 1.1.0 in Maven based Java projects
( com.airnauts - toolkit version 1.1.0 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 1.1.0 in Java projects... - toolkit version 1.1.0 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 2.0.2 is released. Learn to use toolkit version 2.0.2 in Maven based Java projects
( com.airnauts - toolkit version 2.0.2 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 2.0.2 in Java projects... - toolkit version 2.0.2 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 2.0.1 is released. Learn to use toolkit version 2.0.1 in Maven based Java projects
( com.airnauts - toolkit version 2.0.1 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 2.0.1 in Java projects... - toolkit version 2.0.1 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 1.2.0 is released. Learn to use toolkit version 1.2.0 in Maven based Java projects
( com.airnauts - toolkit version 1.2.0 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 1.2.0 in Java projects... - toolkit version 1.2.0 java library in your project. ADS_TO_REPLACE_2 Now you can
Maven dependency for com.airnauts - toolkit version 1.1.1 is released. Learn to use toolkit version 1.1.1 in Maven based Java projects
( com.airnauts - toolkit version 1.1.1 ) in their Java project if it is based...? Steps to use  com.airnauts - toolkit version 1.1.1 in Java projects... - toolkit version 1.1.1 java library in your project. ADS_TO_REPLACE_2 Now you can
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
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.63 is released. Learn to use toolkit-navigation version 5.0.63 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.63 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.63 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.62 is released. Learn to use toolkit-navigation version 5.0.62 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.62 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.62 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.61 is released. Learn to use toolkit-navigation version 5.0.61 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.61 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.61 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.60 is released. Learn to use toolkit-navigation version 5.0.60 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.60 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.60 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.59 is released. Learn to use toolkit-navigation version 5.0.59 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.59 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.59 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.58 is released. Learn to use toolkit-navigation version 5.0.58 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.58 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.58 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.57 is released. Learn to use toolkit-navigation version 5.0.57 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.57 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.57 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.56 is released. Learn to use toolkit-navigation version 5.0.56 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.56 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.56 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.55 is released. Learn to use toolkit-navigation version 5.0.55 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.55 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.55 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.54 is released. Learn to use toolkit-navigation version 5.0.54 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.54 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.54 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.53 is released. Learn to use toolkit-navigation version 5.0.53 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.53 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.53 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.52 is released. Learn to use toolkit-navigation version 5.0.52 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.52 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.52 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.51 is released. Learn to use toolkit-navigation version 5.0.51 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.51 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.51 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.50 is released. Learn to use toolkit-navigation version 5.0.50 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.50 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.50 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.49 is released. Learn to use toolkit-navigation version 5.0.49 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.49 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.49 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.48 is released. Learn to use toolkit-navigation version 5.0.48 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.48 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.48 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.47 is released. Learn to use toolkit-navigation version 5.0.47 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.47 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.47 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.46 is released. Learn to use toolkit-navigation version 5.0.46 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.46 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.46 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.45 is released. Learn to use toolkit-navigation version 5.0.45 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.45 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.45 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.44 is released. Learn to use toolkit-navigation version 5.0.44 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.44 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.44 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.43 is released. Learn to use toolkit-navigation version 5.0.43 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.43 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.43 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.42 is released. Learn to use toolkit-navigation version 5.0.42 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.42 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.42 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.41 is released. Learn to use toolkit-navigation version 5.0.41 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.41 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.41 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.40 is released. Learn to use toolkit-navigation version 5.0.40 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.40 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.40 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.39 is released. Learn to use toolkit-navigation version 5.0.39 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.39 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.39 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.38 is released. Learn to use toolkit-navigation version 5.0.38 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.38 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.38 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.37 is released. Learn to use toolkit-navigation version 5.0.37 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.37 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.37 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.36 is released. Learn to use toolkit-navigation version 5.0.36 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.36 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.36 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.35 is released. Learn to use toolkit-navigation version 5.0.35 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.35 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.35 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.34 is released. Learn to use toolkit-navigation version 5.0.34 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.34 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.34 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.33 is released. Learn to use toolkit-navigation version 5.0.33 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.33 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.33 of toolkit-navigation released The developers of   fr.ird.observe - toolkit
Maven dependency for fr.ird.observe - toolkit-navigation version 5.0.32 is released. Learn to use toolkit-navigation version 5.0.32 in Maven based Java projects
to use  fr.ird.observe - toolkit-navigation version 5.0.32 in Java projects...Maven dependency for  fr.ird.observe  - Version 5.0.32 of toolkit-navigation released The developers of   fr.ird.observe - toolkit

Ads