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

[Substance] JInternalFrame's title are not visible #182

Closed
haroflow opened this issue Jun 8, 2019 · 5 comments

Comments

@haroflow
Copy link

commented Jun 8, 2019

Version of Radiance (current development is 2.5-SNAPSHOT)

org.pushing-pixels:radiance-substance:2.0.1

Sub-project (Neon, Trident, Substance, Flamingo, ...)

Substance

Version of Java (current minimum is 9)

JDK 11.0.1, tried with 12, with openjdk 11, no success.

Version of OS

Linux Mint 19 Cinnamon

The issue you're experiencing (expected vs actual, screenshot, stack trace etc)

JInternalFrame's title are not showing up, is there any tricks to it? When I hover the mouse on the titlebar I get the tooltip with the right title. Tried other skins, didn't work either.

image

        JFrame.setDefaultLookAndFeelDecorated(true);
        SwingUtilities.invokeLater(() -> {
            try {
                UIManager.setLookAndFeel(new SubstanceNebulaLookAndFeel());
            } catch (Exception e) {
                System.out.println("Substance Graphite failed to initialize");
            }

            JFrame frame = new JFrame("Main Window");
            frame.setSize(500, 500);
            frame.setVisible(true);

            JDesktopPane desk = new JDesktopPane();
            frame.getContentPane().add(desk);

            JInternalFrame intFrame = new JInternalFrame("New Internal Frame");
            intFrame.setSize(200, 200);
            intFrame.setVisible(true);
            intFrame.setClosable(true);
            intFrame.setResizable(true);
            desk.add(intFrame);
        });
@kirill-grouchnikov

This comment has been minimized.

Copy link
Owner

commented Jun 8, 2019

Something's wrong with the logic in SubstanceTitlePaneUtilities.getTitlePaneTextRectangle. Will look into this.

@kirill-grouchnikov

This comment has been minimized.

Copy link
Owner

commented Jun 8, 2019

image

The frame is not configured to be maximizable or iconifiable, so those two actions do not create control buttons. Or rather, the buttons are there and set to 0x0 size and still visible, instead of being marked as invisible.

@haroflow

This comment has been minimized.

Copy link
Author

commented Jun 8, 2019

Adding maximizable and iconifiable solved it for me.

Thank you very much!

@kirill-grouchnikov

This comment has been minimized.

Copy link
Owner

commented Jun 8, 2019

This still needs a proper fix

@haroflow

This comment has been minimized.

Copy link
Author

commented Jun 8, 2019

Sorry, I clicked on "Close and comment" and went with it =P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.