#JLabels aren't rendering, Scrollbar not working

9 messages ยท Page 1 of 1 (latest)

sleek fox
#

Hello!

I want to achieve to load Entries out of a .txt file and show them with premade JLabels.

JLabel Rendering:
The problem I've run into is, that the JLabels (triggered by loadAndDisplayEntries()) are displayed, but not correctly. I need to hover over the buttons, to see them. And I need to mark the TextAreas to see them too. The Picutres I've implemented aren't schowing up too.

Scrollbar:
I create JLabels which are placed in the main JPanel, and if there are more then 4 in a row, they get placed in a new one. But if they exceed the y axis value, they aren't reachable. I don't know what to do, to get this scrollbar working.

Thanks for the replies,
Sebbl ๐Ÿ˜„

winged ledgeBOT
#

โŒ› This post has been reserved for your question.

Hey @sleek fox! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

hard scaffold
#

swing is ancient, use javaFX instead

sleek fox
#

The problem is, I'm programming this for a Computer which is running on Java 1.8. In my eclipse project i can't import the fx classes.

hard scaffold
#

javaFX does exist for java8
but anyway
u can use swing if u like
but there arent many ppl that can help with that crazy inconsistant mess

sleek fox
#

okay, i dont want to remake the whole project. maybe someone has an idea

sleek fox
#

Okay, I solved it!

Rendering issue:
I left the code as it is. BUT, I "restarted" the JFrame and now its working.

Scrollbar issue:
The scrollbar needed the PreferredSize and the MinimumSize to work.

Ty, anyway ๐Ÿ˜„

winged ledgeBOT