Home Tutorialhelp Allcomments Java Example Java Swing Enableanddisabletab

 
 

Comments

 
User Comments for the tutorial:

Enable and Disable Tab in Java



Total comments: 2      View Tutorial    Discuss: Enable and Disable Tab in Java
Advertisement
Comments

In netbeans
Hi, I'm interested in disable some of tabs of my TabbedPane. I have built my interface with netbeans 5.5 and I've tried to use tpane.setEnabledAt(1,false) in Post-Creation Code, but I received an error like: "Exception in thread "main" java.lang. 

answer
tabs are numbered just like arrays (they start at 0 NOT 1). so im guessing that you only have one tab because you technically tried to disable the 2nd tab by saying (1,false) and the error says that you are out of bounds. therefore solution should be 

Related Tutorial and Articles
Java Beginners

java swing in netbeans
java swing in netbeans  how can create sub menu in java swing using netbeans?   Hi Friend, Try the following code: import javax.swing....[]) { JFrame frame = new JFrame("MenuSample Example 

Swing AWT

Java swing in NetBeans - Swing AWT
Java swing in NetBeans   thanks a lot sir for everything you answered.... i will specify a swing code for JTable using NETBEANS so would you tell me... table like this is it possible: if it is can u give me code in NetBeans 

IDE Questions

Java Programming using Netbeans - IDE Questions
visit the following link: http://www.roseindia.net/java/example/java/swing/add...Java Programming using Netbeans  Hello Dear sir, i got one scenario... & address using netbeans jframe then i have to store these data into my package so 

Framework Questions

Looking for sample project in java using netbeans
/example/java/swing/addeditanddeleteemployee_inf.shtml...Looking for sample project in java using netbeans  Hi all, i am novice in developing desktop application in java using netbeans. can anyone pls help 

Java Beginners

java netbeans
java netbeans  i am making project in core java using Netbeans. Regarding my project i want to know that How to fetch the data from ms-access... using netbeans 

Java Beginners

java netbeans
java netbeans  i am making project in core java using Netbeans. Regarding my project i want to know that How to fetch the data from ms-access... using netbeans 

Blog

Sitemap Java Swing Tutorial
-to-One Relationship | JPA-QL Queries Java Swing Tutorial Section Java Swing Introduction | Java 2D API | Data Transfer in Java Swing | Internationalization in Java Swing | Localization | What is java swing 

Java Beginners

java swing.
java swing.  Hi How SetBounds is used in java programs.The values in the setBounds refer to what? ie for example setBounds(30,30,30,30) and in that the four 30's refer to what 

Swing AWT

java swing - Swing AWT
: http://www.roseindia.net/java/example/java/swing/ Thanks...java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image. 

Java Beginners

java swing (jtable)
java swing (jtable)  hii..how to get values of a particular record in jtable from ms access database using java swing in netbeans..?? please help..its urgent..   Here is an example that retrieves the particular record 

Advertisements Advertisements
 

 

 

DMCA.com