Pavel Chickoff

Greenhorn
+ Follow
since Jan 12, 2019
Merit badge: grant badges
For More
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
0
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.
5 years 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.
5 years 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?
5 years ago
Maybe there is another way to know whether the JScrollBar is scrolled to the end?
5 years 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
5 years 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 years ago