This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!

Pavel Chickoff

Greenhorn
+ Follow
since Jan 12, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
2
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pavel Chickoff

Rob Camick wrote:

but I already clicked Like and clicked the Resolved button.



The "Like" button could be clicked by anybody. It doesn't imply you read the answer.

The "Resolved" button is new to me (I've never asked a question). Just followed up by reading the "Ranch Guide". Indeed the folder icon with a circle inside it implies the question has been resolve.

This is a feature few people appear to use on the forum. Learned something new today, thanks.

I noticed that the value differs by a constant of 283 for my window size



This is the size of the view used by the scrollpane.

You can get the value by using the getExtentSize() of the JViewPort of the ScrollPane.

As a simple test add the following to your AdjustmentListener:



Thank you very much, you helped me a lot.
4 days ago

Rob Camick wrote:Swing paints components in their ZOrder, which by default basically mean they are painted in the  reverse order that they are added to the panel.

This is not usually an issue when components are displayed in 2 dimensions.

But when trying to overlay components it is important.

So your code should be something like:


Check out Overlap Layout for more information on how ZOrder works.



It works, thank you very much.
4 days ago

Rob Camick wrote:You got help in your last question: https://coderanch.com/t/704760/java/Display-button-top-JScrollPane-Java

You still haven't replied to state whether the suggestion worked or not or say thank you for the help, so I think I'll skip  this question.


Excuse me, but I already clicked Like and clicked the Resolved button. Do I need to write another message?
4 days ago
Maybe there is another way to know whether the JScrollBar is scrolled to the end?
4 days ago
I need to scroll the JScrollPane down and make the popupPanel panel invisible.
But when I try the code

that

I noticed that the value differs by a constant of 283 for my window size
How can I calculate this constant and use in the condition?
All code
4 days ago
I need to display the Down button on top of the JscrollPane-JTable to scroll to the last cell like in the messengers

I tried to use OverlayLayout, but when I add code

popupPanel is not displayed
How to force popupPanel to be displayed over JScrollPane?

all code
5 days ago