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 6 of 6

Thread: JTable

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JTable

    Hi,

    Does anybody know how to disable editing for a column without overriding DefaultTableModel or extending AbstractTableModel. I have to make it possible without using overriding or extending.

    Thanks in advance..


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: JTable

    Why are you so afraid of "overriding or extending"?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JTable

    Quote Originally Posted by KevinWorkman View Post
    Why are you so afraid of "overriding or extending"?
    I am not afraid. I just can not use those in Matlab..

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: JTable

    Quote Originally Posted by adra View Post
    I am not afraid. I just can not use those in Matlab..
    O_o

    Are you using Matlab with Java?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Aug 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: JTable

    Quote Originally Posted by KevinWorkman View Post
    O_o

    Are you using Matlab with Java?
    I am working on a small program and built all my Gui with java classes in Matlab. However i have to make my JTable uneditable and i couldnt find a way to do it. Matlab uses the java classes as they are, and does not allow to extend or override.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: JTable

    Hmm, that might be a toughie then. All the default JTable constructors cause the table to be editable.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. JTable
    By timmin in forum AWT / Java Swing
    Replies: 3
    Last Post: April 3rd, 2011, 12:10 PM
  2. jTable popup box
    By _lithium_ in forum AWT / Java Swing
    Replies: 1
    Last Post: March 13th, 2011, 12:05 PM
  3. jTable trouble...
    By _lithium_ in forum AWT / Java Swing
    Replies: 3
    Last Post: March 6th, 2011, 07:05 PM
  4. jTable and jdbc
    By _lithium_ in forum JDBC & Databases
    Replies: 6
    Last Post: March 5th, 2011, 01:22 PM
  5. Hello everyone! I need help with JTable
    By hektor in forum AWT / Java Swing
    Replies: 6
    Last Post: October 11th, 2010, 10:11 AM