Results 1 to 4 of 4
  1. #1
    venkatesansan is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Smile netBeans in java

    HI Friends ,
    I have doubt in java in netbeans.
    I dont know Jlist controls How to work in java app in netbeans.
    I need example program

    [moderator edit, from your other thread:]

    I dont know How to work Jlist controls in java app in netbeans ,
    i tried simple program ,But i got error


    coding:
    ->i placed Jlist control on form.
    Java Code:
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
                    jList1.add("Welcome",null);
        }
    Java Code:
    Error:
            Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    Last edited by Fubarable; 10-26-2010 at 03:44 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    You'll want to use a more informative thread title here as "netbeans in java" doesn't tell us much.

    Your best source for answers to this type of question are the tutorials here: The Really Big Index

    In particular, the Swing tutorials: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    and the JList tutorial: How to Use Lists (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

    Much luck!

    Edit: also, I see that you split your question into two threads which is not appreciated here as it unnecessarily fragments the discussion. I've taken the liberty to combine the two threads into one above and have deleted your other thread.
    Last edited by Fubarable; 10-26-2010 at 03:45 PM.

  3. #3
    venkatesansan is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default Hi ,

    Thanks Fried,

  4. #4
    venkatesansan is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

Similar Threads

  1. ? Java Netbeans
    By pottsmgg in forum New To Java
    Replies: 1
    Last Post: 09-14-2010, 05:07 PM
  2. Using Netbeans for JAVA Web
    By Debojit1986 in forum New To Java
    Replies: 3
    Last Post: 03-15-2010, 06:01 PM
  3. java.io.* NetBeans 5.0
    By artemff in forum CLDC and MIDP
    Replies: 0
    Last Post: 12-23-2009, 08:42 PM
  4. About NetBeans(java)
    By tiger100plus in forum New To Java
    Replies: 1
    Last Post: 11-08-2008, 05:33 PM
  5. Java 3D In Netbeans
    By nvidia in forum NetBeans
    Replies: 1
    Last Post: 04-09-2008, 06:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •