atarw / material-ui-swing

A modern, Material Design UI for Java Swing
MIT License
655 stars 87 forks source link

JPanel titled border font isn't changed #52

Closed p00f closed 5 years ago

vincenzopalazzo commented 5 years ago

Hello @TheGreat2201,

You're referring to the title in the JFrame, right? Because the JPanel does not have a setTitle () method, so a possible setting in a JPanel does not depend on the Theme, you can better explain your problem because I did not understand well, you can post a screen if you have the possibility

p00f commented 5 years ago

Oh sorry i meant JPanel titled border

p00f commented 5 years ago

@vincenzopalazzo Like this . Sorry, I can't give a screen right now

vincenzopalazzo commented 5 years ago

@TheGreat2201, I understand your problem, we will try to solve the problem as soon as possible.

Thanks for the tip

p00f commented 5 years ago

@vincenzopalazzo Sure. Can you tag me in the next commit which fixes this? Edit: Watching this repo now

vincenzopalazzo commented 5 years ago

@TheGreat2201 yes

vincenzopalazzo commented 5 years ago

Hello @TheGreat2201, I tried to fix your problem and now I have run a pull request, I could not find a better solution for now and then I created a Wrapper and encaps the code inside MaterialTitleBorder, you can create your MaterialTitlePane with the following piece of code:

MaterialTitleBorder materialTitleBorder = new MaterialTitleBorder("Test new Title Border component");

Or you can customize your titleBorder with the setFont and setBorder methods.

find the solution already released in this section here pending the answer of @atarw https://github.com/vincenzopalazzo/material-ui-swing/releases/tag/v0.9.4.5

I hope to be proved helpful.

p00f commented 5 years ago

Thanks a lot. I'll try this

On Thu 27 Dec, 2018, 02:44 Vincenzo Palazzo <notifications@github.com wrote:

Hello @TheGreat2201 https://github.com/TheGreat2201, I tried to fix your problem and now I have run a pull request, I could not find a better solution for now and then I created a Wrapper and encaps the code inside MaterialTitleBorder, you can create your MaterialTitlePane with the following piece of code:

MaterialTitleBorder materialTitleBorder = new MaterialTitleBorder("Test new Title Border component");

Or you can customize your titleBorder with the setFont and setBorder methods.

find the solution already released in this section here pending the answer of @atarw https://github.com/atarw https://github.com/vincenzopalazzo/material-ui-swing/releases/tag/v0.9.4.5 http://url

I hope to be proved helpful.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/atarw/material-ui-swing/issues/52#issuecomment-450027292, or mute the thread https://github.com/notifications/unsubscribe-auth/AizZZ2EzE-oRCi_Nnyv0JB4ma-2OYX6Pks5u8-bDgaJpZM4Zhzbd .

atarw commented 5 years ago

There's a better way using UIManager properties that doesn't require you to change your code to use a new border class :) Pushed a fix to the repo, thank you @vincenzopalazzo for your help!!

vincenzopalazzo commented 5 years ago

@atarw There's a better way using UIManager properties that doesn't require you to change your code to use a new border class :) Pushed a fix to the repo, thank you @vincenzopalazzo for your help!!