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:
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.
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.