Results 1 to 1 of 1
- 04-02-2009, 10:58 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
Can't resize textarea in JPanel Form
Hi. I'm doing a project, basically making a custom mediplayer.
I have a JList that serves as my playlist. This JList contains Trial objects. A trial is a JPanel Form in Netbeans. I want to add my own components to trials using the "design mode" in Netbeans. I add a component (in my case, a scrollpane containing a textarea). So far, not a problem. However, I need to be able to programmatically resize this textarea AND its jscrollpane. Resizing the textarea actually works as it should. Calling setPreferredSize resizes the size of the textarea, which is just the scrollpanes viewport. I can see this works by looking at det size of the sliders. However, calling setPreferredSize on the jscrollpane does nothing. Neither does setSize. The maximum size is also more than large enough. If I add a button, it is also not able to recognize clicks or other actions. I don't know if this is a related problem, but my guess is that it is.
I can however resize the Trial itself. Which I find a bit weird. There seems to be some call missing in order to get the components in a JPanel Form to work.
Can anyone help me out? :) Thank you!
Similar Threads
-
how to connect form to another form in netbeans5.5
By Shivraj in forum AWT / SwingReplies: 1Last Post: 03-17-2009, 09:01 AM -
how to resize a shape on a jpanel, using mouse
By New to JAVA in forum New To JavaReplies: 1Last Post: 12-26-2008, 07:43 PM -
[SOLVED] How to close the current form when i open a new form?
By tpyq in forum NetBeansReplies: 6Last Post: 11-28-2008, 06:55 AM -
TextArea Bug?
By Soda in forum New To JavaReplies: 2Last Post: 12-07-2007, 12:37 PM -
textarea
By ubuntu in forum AWT / SwingReplies: 4Last Post: 05-12-2007, 09:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks