Visual artifacts in gui #94

Closed
opened 2026-06-26 11:07:51 +02:00 by Griefed · 4 comments
Owner

@Griefed on GitLab · https://git.griefed.de/Griefed/ServerPackCreator/-/issues/191

The GUI sometimes displays very weird and ugly artifacts, especially labels are affected by this.

grafik

<!-- repoman:origin --> > **@Griefed** on **GitLab** · https://git.griefed.de/Griefed/ServerPackCreator/-/issues/191 The GUI sometimes displays very weird and ugly artifacts, especially labels are affected by this. ![grafik](/uploads/abc189f27b8c28b932405e93540344bd/grafik.png)
Author
Owner
<!-- repoman:origin --> > **@Griefed** on **GitLab** https://docs.oracle.com/javase/tutorial/uiswing/painting/problems.html
Author
Owner

@Griefed on GitLab

Problem: Visual artifacts appear in my GUI.

If you set the background color of a component, be sure the color has no transparency if the component is supposed to be opaque.
Use the setOpaque method to set component opacity if necessary. For example, the content pane must be opaque, but components with transparent backgrounds must not be opaque.
Make sure your custom component fills its painting area completely if it's opaque.
<!-- repoman:origin --> > **@Griefed** on **GitLab** Problem: Visual artifacts appear in my GUI. If you set the background color of a component, be sure the color has no transparency if the component is supposed to be opaque. Use the setOpaque method to set component opacity if necessary. For example, the content pane must be opaque, but components with transparent backgrounds must not be opaque. Make sure your custom component fills its painting area completely if it's opaque.
Author
Owner

@Griefed on GitLab

Okay, this may be JDK dependent.

<!-- repoman:origin --> > **@Griefed** on **GitLab** Okay, this may be JDK dependent.
Author
Owner

@Griefed on GitLab

Happens with Adoptium JDKs.
Does not happen with OracleJDKs.

<!-- repoman:origin --> > **@Griefed** on **GitLab** Happens with Adoptium JDKs. Does not happen with OracleJDKs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Griefed/ServerPackCreator#94
No description provided.