JAVA netbeans - GUI how to get my scroll bar to work?!
Hey yall!
Just working away on my application doing all the complex java bits and bobs and I am suddenly totally stumped by something I feel is somewhat embarrassing!
I created a GUI using netbeans with the point and click feature which is lots of fun but... I cant for the life of me figure out how to get the scroll bar to attach/and work with a text box that I am going to be packing with text.
Is there a way to do it that involves right click on something and then go to menu>menu> menu .. to get it done ? :)
all the examples I find are totally code based and from what i gather the netbeans GUI feature doesn't like you adding stuff in. feel free to shatter my perception as I am learning all this myself and I am totally open to the idea I have the wrong end of the proverbial stick!
Here is what I have done:
http://i18.photobucket.com/albums/b1.../guiscreen.gif
Re: JAVA netbeans - GUI how to get my scroll bar to work?!
The actual answer to this question is to ditch the GUI builder.
Re: JAVA netbeans - GUI how to get my scroll bar to work?!
Anything more helpful then "take 10 steps back" ? I'm sure its a 2 min job but I don't know enough about GUI stuff to be able to do it!
Re: JAVA netbeans - GUI how to get my scroll bar to work?!
Im reading through this
How to Use Scroll Panes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
But I am having massive difficulty understanding it or how to incorporate any of the code into the GUI I made with Netbeans.
Re: JAVA netbeans - GUI how to get my scroll bar to work?!
*pulls gun out and shoots self*
Apparently if you use text area instead of text box it auto generates one for you ..... 5 hours on a Sunday well spent. -_-
Re: JAVA netbeans - GUI how to get my scroll bar to work?!
Sorry, but that's definitely not the way to go. What you're doing is mixing Swing and AWT- which might appear to accomplish your goal, but is going to cause you problems down the road.
Ditching the GUI builder is not taking 10 steps back- in fact, continuing to rely on it is going to severely handicap you as a programmer.
But it's up to you. If you want to post some code (in SSCCE form- no extra messy GUI builder stuff), we can go from there. Or you could continue down the path you're on.