Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Swing-AWT Designing of textfield arrays in Netbeans IDE
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Thejas
Designing of textfield arrays in Netbeans IDE
2 Answer(s)      4 years and 9 months ago
Posted in : Swing AWT


Respected sir,
Sir I want to create an array of Jtextfield in Jframe Form in Swing GUI in NetBeans IDE.... How can i do this.........????

I have a code which will create the same in swings which i m giving below.. but how to implement the same in NetBeans IDE form designing....

public javax.swing.JTextField ArrayofTextfields1[]=new JTextField[80];

for (int i = 0; i <80; i++) {
ArrayofTextfields1[i] = new javax.swing.JTextField(" ", 7);
getContentPane().add(ArrayofTextfields1[i]);
}

Advertisement
View Answers

April 12, 2010 at 10:22 AM


Hi Friend,

Try the following code:

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

class TextFieldArray extends JFrame{
private JTextField t[]=new JTextField [10];
public TextFieldArray(){
JPanel panel=new JPanel(new GridLayout(5,2));
for(int i=0;i<10;i++){
t[i]=new JTextField(10);
panel.add(t[i]);
}
add(panel);
setVisible(true);
pack();
}

public static void main(String[] args){
new TextFieldArray();
}
}

Thanks


August 5, 2011 at 8:39 PM


the question is how to do it in NET BEANS!,



Related Tutorials/Questions & Answers:
Designing of textfield arrays in Netbeans IDE - Swing AWT
Designing of textfield arrays in Netbeans IDE  Respected sir... in NetBeans IDE form designing.... public javax.swing.JTextField... in NetBeans IDE.... How can i do this.........???? I have a code which
NetBeans IDE
NetBeans IDE         The NetBeans IDE, product of Sun Microsystems, is a free, open-source.... NetBeans IDE supports developers providing all the tools needed to create all
Advertisements
NetBeans - IDE Questions
NetBeans  Can we use netbeans to create servlet, jsp pages?If yes means can you explain how it can be done? how to use netbeans for creating jsp...://www.roseindia.net/jsf/netbeans/create-jsf-application.shtml Hope that it will be helpful
SQL STATEMENT in JDBC in NETBEANS IDE
SQL STATEMENT in JDBC in NETBEANS IDE  Iam using NETBEANS IDE. Iam developing a bank application. Using JDBC in SERVLETS For the withdraw function, "bal" and "ano" are user inputs when i wrote like, st.executeQuery("UPDATE
Not able to filter rows of jtable with textfield in netbeans
Not able to filter rows of jtable with textfield in netbeans  DBOperations objDB; ArrayList alstStock; public TableRowSorter sorter; public void... of implementing row filter to the 4th column of jtable with a textfield but its
Not able to filter rows of jtable with textfield in netbeans
Not able to filter rows of jtable with textfield in netbeans  DBOperations objDB; ArrayList alstStock; public TableRowSorter sorter; public void... of implementing row filter to the 4th column of jtable with a textfield but its
how to enable textfield in j2me netbeans when a choice element is selected?
how to enable textfield in j2me netbeans when a choice element is selected?  How to enable a textfield in j2me using netbeans when a choice element is selected and how to keep it disabled when any choice element corresponding
how to enable textfield in j2me netbeans when a choice element is selected?
how to enable textfield in j2me netbeans when a choice element is selected?  How to enable a textfield in j2me using netbeans when a choice element is selected and how to keep it disabled when any choice element corresponding
netbeans resource prob - IDE Questions
netbeans resource prob  Hi,please can you tell me how to include a file like an image in the jar package in netbeans so that i dont need to provide... i the jar package I am using netbeans version 6.7.1
netbeans coding prob - IDE Questions
netbeans coding prob  hi, i have just started programming in netbeans,i'm facing a problem in a java application i create a jframe class... ME HOW TO DO IT IN NETBEANS. THANK YOU  Hi Friend, Please visit
How to Configure Tomcat Apache in Netbeans IDE
How to Configure Tomcat Apache in Netbeans IDE  Can any one tell me how to add tomcat server in Netbeans IDE? With its steps ?? Thnx
calling servlet from jsp in netbeans ide
calling servlet from jsp in netbeans ide  I have tried to call servlet from jsp code in netbeans for checking the database values . but while running it showing the error that the resource not available. i dono wat mistake i did
import geoserver maps in J2ME usin IDE netbeans
import geoserver maps in J2ME usin IDE netbeans  i want to see my geoserver maps in J2ME midelt using netbeans.if any one can help me in this regard. Thanks
Java Programming using Netbeans - IDE Questions
Java Programming using Netbeans  Hello Dear sir, i got one scenario where i have to pick the data of the student like id , name , class , age & address using netbeans jframe then i have to store these data into my package so
To create an web application using netbeans IDE
To create an web application using netbeans IDE  Hi, I'm a beginner in java and I have created an jsp code for entering the username password details,and an submit button.My requirement is when i click on submit button my
how to connection jsp to oracle database connections in netbeans ide
how to connection jsp to oracle database connections in netbeans ide  how to connect jsp to oracle database connections in netbeans ide?pls provide screenshots if possible
how to connection jsp to oracle database connections in netbeans ide
how to connection jsp to oracle database connections in netbeans ide  how to connect jsp to oracle database connections in netbeans ide?pls provide screenshots if possible
Create JSF Application Using NetBeans IDE
Create JSF Application Using NetBeans IDE  ... environment (IDE) written in the Java programming language. The NetBeans project... as an applicable framework to generate any type of application. The NetBeans 6.1 IDE
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java
how to send the content of jtextarea from netbeans IDE to webpage's textarea in java   Hi, i m interested to send the content of my jtextarea which i have developed in netbeans IDE to the webpage's textarea. how can i do
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?
How to Develop, Compile & Run a rmi Program in NetBeans 6.9.1 ide?  how to develop, compile & run a rmi program in netbeans 6.9.1 ide? will you please give me a step by step (practical) explaination? Thanks in advance
how can i run ASP.Net Server from netbeans IDE?
how can i run ASP.Net Server from netbeans IDE?  please help me how can i run ASP.Net Server from netbeans IDE? in other word , I have a web services... is wrote with netbeans Pleas I want a quick response
NetBeans
NetBeans  why Netbeans IDE is not commonly used Today by most of the companies
how to launch a web application using java web start in netbeans ide?
how to launch a web application using java web start in netbeans ide?  Hi RoseIndia, I need to launch my web application(web pages-jsp) using java web start in Netbeans IDE, Please can anyone help me how to do this...I knw
how can i use ajax and jquery in netbeans ide
how can i use ajax and jquery in netbeans ide  i am using .net here we hav to download ajax controls and if i use netbeans ide and uses ajax control so from where i can get these controls.also i want to know which struct book i
Which one is better for creating a GUI using swings either Manual coding or IDE(NetBeans,eclipse)..? drag and dropping components
swings either Manual coding or IDE(NetBeans,eclipse)..? drag and dropping components...Which one is better for creating a GUI using swings either Manual coding or IDE(NetBeans,eclipse)..? drag and dropping components  I am beginner
how to print fasta file into jtable using netbeans IDE
in netbeans IDE. when i click the any row in jtable,particular sequence should...how to print fasta file into jtable using netbeans IDE   mt file is : contig00001 length=586 numreads=4
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
NetBeans
NetBeans  Hi, I am Kundan I have made a project on NetBeans. And now I want to know that how can i run my project without NetBeans IDE,on other PC. Please help me it's important
netbeans
netbeans  guysss m nt able to opemn ma netbeans ide.. no error msg s coming... wn i installed yesterday one msg came stating about some run time error... sm one plzzzzzz hlp me
 

 

 

DMCA.com