Vincenzo Palazzo

Greenhorn
+ Follow
since May 26, 2019
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Vincenzo Palazzo

Thanks for your answer and agree with you, I will try to understand what is the problem.

P.S: The develop a new L&F is hard but is cool if you want generate feedback this is the project

Thanks for sharing your opinion about the post
5 years ago
In my opinion, I think the error is

When I use JSF I write the reference with the request.contextPath, like this

In my cases, the CSS is inside the application root, if your resources dir is in your root, try to use this code.

P.S: My I miss my JSF rules and I don't test this solution, but should be a test.

5 years ago
JSF
If you want an example, you can try this code



You can found a demo here
How you load the CSS inside your error page?
5 years ago
Hi all.

I hope you are safe and healthy.

I want to talk about a problem with load personal font inside application java Swing.

I'm developing a new Open-source L&F that import material style in swing, now in at this time I'm losing with a problem with a Java font.

I will describe the problem.

I'm loading the font with this code



I think after you read the code, you have a question, Why you calculate the dimension font with this formula:  

The answer at your question is because if I only the dimension inside the font, I see the pixeled result, like this



If I use the screen resolution I can fix this problem and the result is this



But, now I have a problem with dimension font with a display with high resolution, the font is very small, as these pictures



Now I'm thinking of building a solution, as to create a set of default dimensions, For example, XXX_DISPLAY, XX_DISPLAY, X_DISPLAY.
This solution was implemented inside the android framework when adapting the icon at different screen dimensions.

But Before starting work I want to talk and exchange ideas about this problem.

I'm losing somethings to calculate correctly the font dimension?

P.S: I noted that with the JDK version >= 10 the pixel effect if not present but with JDK 8 is present.
5 years ago


Hi, I lose this message, sorry.

Today I will try this solution and I will return here to know the result.

Thanks for your time.
5 years ago

Campbell Ritchie wrote:What happens if you use the addToolTip() method on your tabbed pane?



Thanks for your time.

I added this this.tabPane.setToolTipText("TEST"); and don't have any result.

I'm sorry :/
5 years ago
HI,

I want to add mouse hover on the Tab Pane, the mouse hovers effect desired is very simple, it should change the cursor when the mouse is over the tab name.

I'm doing an example, I have the component MateriaTabblePaneUI with this mouse event:





But this event run on all JTabbledComponent and I want to add this effect only on the text of the jTabbledPane, like "Panel1" or "Panel2"

I found this answer on stack overflow, but not use the component BasicTabbledPaneUI https://stackoverflow.com/a/4228349/10854225

I want to make this change because I want optimized the code and I need to help to find some good idea.

The desired effect is

MouseHover effect



Thanks for your time
5 years ago

Paul Clapham wrote:It might be possible to create a Font object in Java which encapsulated two different fonts and did what fontforge does, only it would do that on the fly. For example you would write one of the methods like this:



That would be tedious but I'm sure it's not beyond your abilities. The only problem you would have would be when you had to load that "font" from a TTF file, but possibly that wouldn't happen.



Hi, thanks for your help, I will examine your solution to create the personal font; I will return here with the result.
5 years ago
Hi guys,
I have a question on adding the support of the Emoji to my personal look-and-feel, I'm the developer of  material-ui-swing and I'm using the "Noto Sans" for font and it doesn't support the emoji (like ♥).
I'm loading the font, Noto Sans, with code like this


This is the actual visive effect


Well, now I want to add Noto Color Emoji inside the look-and-feel but I don't know a method for using "Noto Sans" and "Noto Color Emoji" together.
PS: I know only one method for support this, and I must join the file fonts described inside this question on stack forum.
Exist another solution to this problem with Java?
Thanks your help.

This question onreddit
5 years ago
I want a solution to this post,

The problems were two

  • In my personal look and feel I have used the Color and not the ColorUIResources
  • The JFileChooser was created in the action and not was add inside the JFrame, so when I got to change theme the look is weong


  • My question Related on stackoverflow


    5 years ago

    Rob Camick wrote:Cross posted: https://stackoverflow.com/questions/58007721/jtextfieldui-painted-in-another-tab-of-the-jtabbedpane-with-my-personal-look-and

    You already have an answer. So why have you not replied to this question stating the answer so people don't spend time answering a question that already has an answer?




    I would have done it, as soon as I returned home, because I don't have my PC behind, on other occasions I always kept my questions updated in case of solutions in other forums. I just need some time, questions of hours, sorry
    5 years ago
    I'm developing a new look and feel and now I have a bug with the component JtextField, when to use it inside the JTabbledPane component.

    So the bug is this


    I have this code for my JTextFieldUI, it extends BasicLookAndFell



    Sorry for my big code but I think is necessary for find my error inside it

    This is my simple complete demo



    ps: Sorry for my big code
    5 years ago
    The button Border is painted with method paintBackground() inside the BasicButtonUI, you can change the border with the graphics object

    syed fazal faheem wrote:Hi,
    As a quick intro, i am developing look and feel implementation for my swing application. I am having a set of internal frames in my application.
    When i try to set the button border in UIDefaults, even the minimize, maximize and close buttons of internal frames are getting affected. Can any one help me out with this.
    This is the code i used to set the UIDefaults in a class derived from javax.swing.plaf.basic.BasicLookAndFeel
     protected void initComponentDefaults(UIDefaults table) {
       super.initComponentDefaults(table);
       Object[] defaults = {
         "Button.font", new FontUIResource("Arial", Font.BOLD, 12 ),
         "Button.border",new BorderUIResource(new OvalBorder()),
         "Button.margin", new InsetsUIResource(8, 8, 8, 8)
         };
        table.putDefaults( defaults );
     }
    OvalBorder class implements javax.swing.border.Border interface

    Waiting for a solution,
    fazal.

    5 years ago