• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

How use UIDefault for create new look and feel for swing

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,

I'm developing a new look and feel for java, this look and feel import the Material-style.

I had used the UIDefault for import the change inside the look and feel, so now I must uninstall the look and feel and I have a problem with this operation.

The look and feel con not removed correctly, now I've used for all operation the UIDefault map and I think this is an error because my constant override the old constant and when I go to remove my look and feel. the new look and feel don't override my constant

This is the code on github for UIDefault at line 208

This is my look and feel


This is the wrong effect


The demo is inside the src/test/integration/gui/mock

I wanted to ask you if the problem is the one described above and especially if I used UIDefault badly
 
Vincenzo Palazzo
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


    reply
      Bookmark Topic Watch Topic
    • New Topic