Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: NetBeans help please!

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default NetBeans help please!

    Hi members,

    Is anyone familiar with how to use the jTable in NetBeans, I'm new, and trying to add data to a Table (jTable1), but I'm not being successful, can anyone help, I went to ummm set custom code and then I got: jTable1.setModel( (Edit box where to write text) );, can anyone help me ?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: NetBeans help please!

    This is a Swing issue, not an IDE issue. I moved your thread to the appropriate forum.
    I would recommend reading the following:
    How to Use Tables (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    And highly recommend, at least when learning, to not rely on an IDE to develop your GUI - it could cause a lot more issues down the line than you may think.

  3. #3
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: NetBeans help please!

    Quote Originally Posted by copeg View Post
    And highly recommend, at least when learning, to not rely on an IDE to develop your GUI - it could cause a lot more issues down the line than you may think.
    Well, this statement is only applicable for some years ago. However today the GUI designer is very powerful and flexible, WindowBuilder for Eclipse is an example.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: NetBeans help please!

    Quote Originally Posted by nickyc View Post
    Well, this statement is only applicable for some years ago. However today the GUI designer is very powerful and flexible, WindowBuilder for Eclipse is an example.
    Sure, I will give you that, but it has nothing to do with how powerful and flexible it is. It has to do with using the builder without knowing what is underneath the hood...I base this on years of experience - I have seen way more than my fair share of people trying to debug something, customize something, adapt something, re-use something, and/or share something they built with a GUI builder but their project stalls because they have no clue what the builder built (JTable is a good example, as a builder could potentially lock one into a data model that - when that model changes can have huge ramifications for refactoring). I am not denying a GUI builder can be useful, I am saying that one should have a concept of the components and code it builds, as having no knowledge of the underlying code it builds can end up wasting more time in the long run. Your mileage may vary of course.

  5. #5
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: NetBeans help please!

    Hi copeg,

    I agree with you on the point that one should understand the UI code while he is using a GUI builder. I mean a builder is very useful if you also have a good coding experience in GUI stuffs.

Similar Threads

  1. Netbeans 6.8
    By selmaky in forum Java IDEs
    Replies: 1
    Last Post: May 14th, 2011, 03:08 PM
  2. New to NetBeans
    By _lithium_ in forum Java IDEs
    Replies: 0
    Last Post: March 1st, 2011, 08:48 PM
  3. help needed with netbeans
    By jalkin in forum Java IDEs
    Replies: 1
    Last Post: May 4th, 2010, 09:08 PM
  4. Netbeans help
    By [Kyle] in forum Java IDEs
    Replies: 2
    Last Post: September 20th, 2009, 06:32 PM