adding label to panel in scroll pane

M

memememe

I am adding a label to a panel inside of a scrollpane and whnever my text
goes beyond the right side of the scrollpane, my text just doest show, I
would have expected the scrollpane to automatically show a horizontal
scrollbar and let me see the text.
 
M

memememe

Thomas Weidenfeller said:
ScrollPane sp = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED);

See the API documentation and the Sun tutorial for more details.

/Thomas


I fixed the problem and that wasnt what was causing it, instead the panel
that the label was on was getting sized incorrectly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top