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

Quickstart guide #114

Closed
R-N opened this issue Apr 4, 2022 · 2 comments
Closed

Quickstart guide #114

R-N opened this issue Apr 4, 2022 · 2 comments
Labels
doc Some documentations project-materialized project use material-ui-swing

Comments

@R-N
Copy link

R-N commented Apr 4, 2022

How do I use this? This doesn't seem to be a simple plug and play LAF, or is it?

Thanks

@vincenzopalazzo
Copy link
Collaborator

Hi @R-N

Tha project moved to https://github.com/vincenzopalazzo/material-ui-swing this is only a mirroring repository.

How do I use this? This doesn't seem to be a simple plug-and-play LAF, or is it?

Right, it offers also a theme system, but to use it you need just to call this code after importing the dependencies

  static {
    try {
      JDialog.setDefaultLookAndFeelDecorated(true);
      JFrame.setDefaultLookAndFeelDecorated(false);
      UIManager.setLookAndFeel(new MaterialLookAndFeel(new MaterialLiteTheme()));
      // UIManager.setLookAndFeel(new MaterialLookAndFeel(new DarkStackOverflowTheme()));
    } catch (UnsupportedLookAndFeelException e) {
      e.printStackTrace();
    }
  }

See the list of the theme supported here or you can import an external theme like DarkStackOverflowTheme

P.S: More material components? https://github.com/material-ui-swing

@vincenzopalazzo vincenzopalazzo added doc Some documentations project-materialized project use material-ui-swing labels Apr 4, 2022
@vincenzopalazzo vincenzopalazzo pinned this issue Apr 4, 2022
@R-N
Copy link
Author

R-N commented Apr 4, 2022

@vincenzopalazzo

Thank you. I didn't know which classes to import and use. I had checked the new repo too but I still couldn't find how to use this (I think the readme is identical, and the wiki link already points to that repo). I checked the demo too but it had quite a different structure to my project so I didn't understand. I think it'd be great if you could put that very minimal example in the readme or wiki. Also the list of themes; I didn't know it'd be under screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Some documentations project-materialized project use material-ui-swing
Projects
None yet
Development

No branches or pull requests

2 participants