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

Thread: Netbeans Swing Design

  1. #1
    Member
    Join Date
    Nov 2010
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Netbeans Swing Design

    im designing a swing app in netbeans.
    i have a table which connects (using mysql) to a db and populates it.
    i added text fields at the side so the user can add new fields to the database.
    when i run the app the program wont let me type in the text field.
    even if the properties - set enable = true.

    i also created a button and set the action event to set the text field to true but that didnt work either.

    is there a settin in netbeans which disables enter text into a text field, formatted text field or text area because none of these work.

    Thanks for any help
    kurt


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

    Default Re: Netbeans Swing Design

    If you want help, you'll have to provide an SSCCE that demonstrates the problem.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,334
    Thanks
    181
    Thanked 830 Times in 773 Posts
    Blog Entries
    5

    Default Re: Netbeans Swing Design

    Please do not double post your question to the forums. Your other post has been removed. Follow KevinWorkman's advice of posting some short compilable code that demonstrates the problem, without which one doesn't even know where to start to guess.

  4. #4
    Member
    Join Date
    Nov 2010
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Netbeans Swing Design

    i can post code but the thing is that im using netbeans SE swing builder so all the code is auto generated.
    i set the textfield to editable but I can type in the box

    when i created a button I:-
    -created the button using the swing builder
    -double clicked so it creates its own action event
    -code =
    jTextField1.setEditable(true);

    thanks
    Kurt


    ps sorry i realise i put my post in the wrong thread. Il be more careful next time

  5. #5
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,455
    My Mood
    Hungover
    Thanks
    144
    Thanked 638 Times in 546 Posts

    Default Re: Netbeans Swing Design

    If you can't boil the problem down to an SSCCE (which is just as much for your sake as it is for ours), then we really can't help you. We'll just be guessing.

    I'd suggest you ditch the GUI builder until you're more comfortable with GUI programming (at which point you probably won't want to go back to the builder anyway).

  6. #6
    Member
    Join Date
    Nov 2010
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Netbeans Swing Design

    i created a test project and did the basic hello world with a label text field and button and it work.

    i then created a new project and copied everything from one to the other and it works!
    dont knw why it wasn't working in my other project.

    just thought id let you know

    Thanks
    Kurt

  7. #7
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,455
    My Mood
    Hungover
    Thanks
    144
    Thanked 638 Times in 546 Posts

    Default Re: Netbeans Swing Design

    Quote Originally Posted by kurt-hardy View Post
    i created a test project and did the basic hello world with a label text field and button and it work.

    i then created a new project and copied everything from one to the other and it works!
    dont knw why it wasn't working in my other project.

    just thought id let you know

    Thanks
    Kurt
    That's part of why we ask for an SSCCE. Now you can use the working test project and add a little bit from your broken project at a time. When the working project breaks, you know what caused it and can ask a more specific question.

  8. #8
    Member
    Join Date
    Nov 2010
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Netbeans Swing Design

    Right i tried what you said. importing and/or copying and pasting everything in a bit at a time
    and it stil works even though i didnt change anything.

    is there a way i could of accidently set typing or keyboard response to null on the full project?
    its working but still would like to know why.

    Thanks
    Kurt

Similar Threads

  1. star design programs
    By prasansani in forum Java Theory & Questions
    Replies: 6
    Last Post: September 20th, 2011, 12:42 PM
  2. Class design
    By arithmetics in forum Object Oriented Programming
    Replies: 4
    Last Post: November 4th, 2010, 08:44 AM
  3. Replies: 2
    Last Post: April 12th, 2010, 11:13 AM
  4. How do you design a complex program
    By mydarkpassenger in forum Java Theory & Questions
    Replies: 5
    Last Post: March 19th, 2010, 06:52 PM
  5. Design question about maps
    By KaleeyJ in forum Java Theory & Questions
    Replies: 1
    Last Post: February 2nd, 2010, 03:17 AM