Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Something about the screen resolution the JScrollPane

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When my product is run on a 1280x1024 or higher resolution monitor, it runs fine.
I've set the JScrollPane preferredsize lower than the 1024 which, I'll call it 800
So, when I put a JPanel with a height of 900 into it, it scrolls!
However, when it comes across a monitor with a resolution of 1280x960
anything lower than 1024, the JScrollPane stops functioning.
The screen asset reaches the very bottom of the screen, but it doesn't scroll
(You may assume there is a banner with a height of 150 above it and about 50 pixels of Taskbar below it and 10 pixels of title bar in it already)
Any probable causes for why this phenomenon happening?

Update, on a VM, of 1024x968, it actually works. But there is my brother's machine of a height resolution of something X 960 which doesn't
Thanks
Jack
 
Rob Camick
Ranch Hand
Posts: 2703
10
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is a common courtesy to respond and say "thank you" when you ask a question and people offer some help. You continually post questions and rarely respond to the answers given.

If you had taken the time to read (and respond to) this question: http://www.coderanch.com/t/619711/GUI/java/hidden-portion-JPanel-adding-JScrollPane, then you would already know the answer.

You may assume...


No, we can't assume. If you want help in the future, then post a proper SSCCE with your question so we know exactly what you are doing. You choice of layout managers and other code affect the way components work, so we can't assume anything.

This is the last time I offer help without a SSCCE and thank you's from your questions.
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!