Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JOptionPane is not working with FlatLight or FlatDark Look and Feel #955

Open
FredKruse opened this issue Jan 7, 2025 · 3 comments
Open

Comments

@FredKruse
Copy link

First of all, great work. I have integrated FlatLaf into my WritingTool project. My self-written dialogs work perfectly with FlatLaf. But when I open JOptionPane for short messages, error messages, etc., only the titles of the dialogs are displayed under Windows. Under Linux, the dialogs are so small that they are barely visible.
Is there a way (or a workaround) to get the JOptionPane methods to work?

@DevCharly
Copy link
Collaborator

Strange 😕

Works fine for me:

image

public class OptionPaneTest {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            FlatLightLaf.setup();
            JOptionPane.showMessageDialog( null, "Hello World" );
        });
    }
}

@FredKruse
Copy link
Author

Thanks for the feedback. The example works for me too. Unfortunately, the same code doesn't work in the LibreOffice OXT that I'm programming. I have no idea what else I could try.

@DevCharly
Copy link
Collaborator

Also have no idea...

Did you use same JRE/JDK in both cases?
What JRE/JDK?

Runs your LibreOffice OXT only in LibreOffice?
Or also as stand-alone app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants