how can u reduce the size of textfield?

how can u reduce the size of textfield?

how can u reduce the size of textfield?

thanks in advance

View Answers

September 29, 2011 at 11:49 AM

import javax.swing.*;

   public class ReduceTextField extends JFrame {
        public static void main(String[] args) {
           JTextField text1 = new JTextField(20);
           JTextField text2 = new JTextField(10);
           JFrame f=new JFrame();
           f.setLayout(null);
           text1.setBounds(10,10,100,20);
           text2.setBounds(120,10,100,10);
           f.add(text1);
           f.add(text2);
           f.setVisible(true);
           f.setSize(300,150);
          }
    }









Related Tutorials/Questions & Answers:
how can u reduce the size of textfield?
how to reduce width of jbutton ?
Advertisements
can u plz help out how to attach file directly & send to a particular mail id
TextFields
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
Can u Look to the error plz - Java Beginners
can u plz try this program - Java Beginners
How to insert data from textfields into database using hibernate?
how to set size of button,textfield.
how to set folder size in php
How can we get the properties (size, type, width, height) of an image using php image functions?
CAN U HELP ME TO CODE IN JSP FOR ONLINE VOTING SYSTEM
textfields and update - SQL
textfields and update - SQL
labels,textfields,buttons
can u help me to get a calendar with color codes on days ???
can u plz explain the http request methods - JSP-Servlet
plz help me any one as fast as u can
How to find hashtable size in Java?
How do you get the size of an array in Python
making of dynamic textfields using swings
ModuleNotFoundError: No module named 'async-reduce'
ModuleNotFoundError: No module named 'neuron-reduce'
ModuleNotFoundError: No module named 'pyshell-reduce'
ModuleNotFoundError: No module named 'reduce-print'
ModuleNotFoundError: No module named 'astro-reduce'
ModuleNotFoundError: No module named 'async-reduce'
In Java how to get size of class and object?
In Java how to get size of class and object?
how to check the size of a tar file in linux
how to increas size of button (especially width)
How to Increase Upload File Size Limit in php
How to avoid the Special characters? - JDBC
reduce complexity
How to decrease image thumbnail size in java?
ModuleNotFoundError: No module named 'u'
ModuleNotFoundError: No module named 'u'
How to open textfields in the the same panel of the jframe by selcting from dropdown menu option ...
how to set fetch size for jdbc odbc driver
How to adjust a size of a pdf file
How a split a file into many based on size?
ModuleNotFoundError: No module named 'django-url-reduce'
ModuleNotFoundError: No module named 'django-url-reduce'
ModuleNotFoundError: No module named 'django-url-reduce'
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
making of dynamic textfields using swings
displaying List of records from database in a jsp using ajax, onclick it should display the results ?? its urgent can u help me
Use Map to display file data into textfields
java - Swing AWT
How do I make an n list size in Python

Ads