Parth Trivedi
Parth Trivedi

Reputation: 163

How to make a java widget that look like window widgets that are currently available on Windows Sidebar? Which java API to use?

I want to make a java widget like RSS Feed Reader or Whether Forecast in java. If I use swing, I don't get the look and feel of modern widgets. I would like to make it graphically attractive. What should I do to make such widget for windows with modern looks ? And Also How do i integrate it in windows so as to start that widget at Windows startup ? Any Help is highly appreciated.

Upvotes: 0

Views: 2480

Answers (4)

gprathour
gprathour

Reputation: 15333

In case of Swings you can choose to give it Windows Like Look and Feel, Like this

try{
      UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
}
catch(Exception e){}

It is a good practice to make frames and other components look like Windows one.

Upvotes: 0

mKorbel
mKorbel

Reputation: 109813

I think that Swing is simple great, because allows to change

  • override/customize Basic/DefaultUI, where how and as you needed
  • better (as mentioned both posters) options - implements Custom Look and Feel

Upvotes: 1

Denis Tulskiy
Denis Tulskiy

Reputation: 19177

If you want it to look like those windows widgets, look for different look and feels and use undecorated windows.

If you want to write an actual widget that could be installed among other widgets, take a look at how others are implemented - it is a simple html page with javascript or vbscript - anything that could be rendered in IE.

Upvotes: 1

mprabhat
mprabhat

Reputation: 20323

If you are looking for desktop solution then I think JIDE is the best one but its paid, SeaGlass also provides nice look and feel.

Upvotes: 1

Related Questions