In netbeans I added a scroll pane + bar inside one of my JPanels. When I drag enough items into the JPanel, the size of the JPanel increases in netbeans. How do I get it so that it stays at a fixed size, so I can use the scroll bar?
BestJewSinceJC
700
Posting Maven
Recommended Answers
Jump to PostLittle silly question. Did you try
setMaximumSize(Dimension maximumSize)
on JPanel?
All 4 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
BestJewSinceJC
700
Posting Maven
BestJewSinceJC
700
Posting Maven
BestJewSinceJC
700
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.