Swing tips - a more creative GUI

Hi everyone
I would like to have a more creative GUI using Swing. This article (http://java.sun.com/products/jfc/tsc/articles/swing2d/) give me usefull hints about transparency and gradient colors which made my application look very nice. But I want more tips. Does anybody here has any document, article, or whatever resource which can help me to create a pretty GUI?
Any comments are welcome
Thank you very much
Regards
Cleverson

I have a few creative things I don't know if you've tried
- One is JButton which places it Icon (Image) above its text. Ordinary JButtons can't do that. The tips you got from the article you posted should help you achieve this.
- Rounded JPanels (similar to the rounded textfields in the article)
- Animated Splash Screens. (Fly about on screen or shrink to invisible)
- And my favourite a popup menu which acts as color chooser.
These may not the very creative to some but it just shows the flexibity of Java.
I don't if you'll get even more creative ideas from this forum but I encourage you think hard and come out with some very creative Components that will change the face of Java for the future. I know I'll try. All the best.
ICE

Similar Messages

  • More Creative Layout from Print Module?

    Hello,
    I am using LR 3.2 and am wondering if it is possible to make more creative layouts inside the print module?
    I would like to have a backgorund, maybe some drop shadows and also be able to rotate images by a few degrees like 15 degrees.
    This seems impossible with what I have tried so far.
    Is there a plugin or something of the like?  Or maybe a good workflow with other CS applications?
    I am trying to preserve the RAW images and do as much in LR as possible but it sounds like maybe InDesign might be the best for this?
    This is for a large photo volume application, not just a one off design.
    Thanks for your input

    Lr certainly doesn't have the ability and I'm not aware of any plug-ins that allow the type of layout you describe. You might wish to submit a feature request though http://forums.adobe.com/community/lightroom/lightroom_feature_requests?view=discussions In the meantime, InDesign is probably your best option.

  • More Creative Cloud pricing options please

    Something that confuses me with respect to the creative cloud pricing model is why there aren't more options? For example, why is it that only the entire "master suite" is available for $50/month, and not more affordable options that might allow users to select certain applications-- a la carte-- and create a custom subscription plan? Say I really only need Dreamweaver and Photoshop, and I like the idea of paying a subscription fee as opposed to one (huge) lump sum for the retail box-- seems it would be wise to accommodate such a need via the CC, no?
    I know many artists and designers for whom $600/year is frankly cost-prohibitive, and who would likely get on board with some more affordable options available.

    Nancy O. wrote:
    I think of the Cloud as a smorgasbord or "Hometown Buffet" if you will of product choices. 
    Product choices? You only have once choice — The Creative Cloud. If a person wants a smorgasbord, that person can get a smorgasbord. But that is hardly the only thing on a menu... Except with Adobe.
    It's the wrong analogy anyway since with food you know you are leaving with nothing once you are done eating. With the Cloud you leave with nothing because that's the choice Adobe has made for us.
    Nancy O. wrote:
    Obviously, you probably won't use all of them.  But they're there for folks who may want to try them.
    How about letting the users decide that for themselves? This is some serious up selling going on. Everybody uses Acrobat PRO to send PDF's to print houses. Add just one other product to the mix and you might as well go for everything. This is not a choice. It's a forced upgrade to something more expensive that you don't need. And you don't get to keep a license.
    And besides, trial versions are for people who want to try out programs.
    Nancy O. wrote:
    Since I've been on the Cloud plan, I find I'm actually using more products now than I ever have before which enriches my skill-set.[..]
    Fair enough.
    Nancy O. wrote:
    [...] I think that's what Adobe was counting on when they made the Cloud available at such an affordable introductory price.
    No... Adobe is counting on you to only use Adobe products. It makes you dependent on Adobe products so you won't even pay attention to anything else that is out there. It's a dangerous thing to put your entire career in the hands of just one company.
    Nancy O. wrote:
    If $600 per year is too much, you can still purchase CS6 on a perpetual license.
    A lot of us have been upgrading our Adobe software for years... and would have continued to do so. This isn't only about the price.
    With a subscription only model we lose our security of a normal license. We have nothing to fall back on if we stop our subscription. Either keep paying Adobe forever or lose the ability to open up the programs. This is unacceptable.
    But still being able to buy a perpetual license, albeit just for CS6, is something we can agree on. CS6 is still a fine piece of software.

  • Can you buy more creative cloud storage?

    I am looking to possibly buy more storage for creative cloud. Can you do this?

    As of now the extra storage can not be purchased, the extra storage purchase project is being worked upon.
    There is no date announced yet , the announcement shall be made via our website.
    Regards
    Rajshree

  • Use of swings- one class calling the gui class

    Hi,
    I have a class Manager and a class ManagerGUI.
    My ManagerGUI class looks somehting like this-
    public class ManagerGUI extends JFrame
    String name;
    JPanel namePanel;
    JTextField nameInput;
    JLabel nameLabel;
    Manager empAgent;
    ManagerGUI(Manager ea)
    super(ea.getLocalName());
    empAgent = ea;
    //make the name panel and add it to the topPanel.
    addListeners();
    getContentPane().add(topPanel, BorderLayout.CENTER);
    setResizable(false);
    }//end constructor.
    public void show()
    pack();
    super.setVisible(true);
    void addListeners()
    nameInput.addActionListener(new NameL());
    class NameL implements ActionListener
    public void actionPerformed(ActionEvent e)
    nameE = nameInput.getText();
    }//end class ManagerGUI.
    I have tried to seperate it out so that any changes can be easily implemented (although it perhaps is a long way of doing things).
    Now I have a class Manager that wants to call the GUI and then process the information got from the text field.
    I use the following lines to call the GUI class.
    manGui = new ManagerGUI(this);
    manGui.show();
    Is this the correct way of calling the GUI class?
    How do I get to use the variable nameE here, in the Manager?
    Thanks.

    Hi,
    I have no idea why you want to have an instance of Manager class in class ManagerGUI and an instance of ManagerGUI class in Manager class.
    I will create an instance of Manager in ManagerGUI and show the GUI there.
    In Manager you can create method that will accept the text from textfield in parameter.
    L.P.

  • Tips to install Sap Gui On Windows Terminal Server 2003

    Does anybody know any method to install SapGui on Windows Terminal Server 2003 to share it to many users ?
    The problem is: when I try to install Sap Gui 6.40 via Control Panel-Add/Remove Programs it tells me that I must change the mode with "change user /install". I dont know the reason why it reports me that if I do it via Control Panel. And if I do that and then I launch the installation again it reports me the warning again.
    What should I do ?
    Thanks in advance for your help.

    We have SAP R3 4.6C.
    We want to optimize the bandwidth in a 802.11b radio. Because of that we dont want to run any application in the hand-held.
    We'll intend to launch a remote desktop on a dozen hand-helds connecting the Windows 2003 Terminal Services server. In this server we could run SAP GUI, WebSapconsole or the browser.
    Its important to note that the hand-held computers must only show the designed windows (sized to 16x20), removing title bars, transaction bar, menu bars, tool bars, status bars, etc. For this purpouse I think we can use WebSapconsole.
    With this method we have noticed that when a error or warning is displayed it hides some part of the screen instead of presenting in the status bar.
    I hope you all your doubts are clear now, if not just tell me.
    Thank you.
    PS. Sorry for my english.

  • More Creative Cloud News

    http://news.cnet.com/8301-30685_3-57370515-264/adobe-heres-why-creative-cloud-is-worth-$60 0-a-year/?tag=mncol;1n
    Very interesting read from CNET.  $50/month gives you all apps, including the awful, awful, (can't say awful enough) Muse, Edge and now Lightroom 4.  Plus Cloud licenses are good on PC and Macs.  Seems to be you can use it on as many machines as you want, just not at the same time.
    Maybe they should have started off marketing Creative Cloud like this as opposed to the way they did it before. 

    http://news.cnet.com/8301-30685_3-57370515-264/adobe-heres-why-creative-cloud-is-worth-$60 0-a-year/?tag=mncol;1n
    Very interesting read from CNET.  $50/month gives you all apps, including the awful, awful, (can't say awful enough) Muse, Edge and now Lightroom 4.  Plus Cloud licenses are good on PC and Macs.  Seems to be you can use it on as many machines as you want, just not at the same time.
    Maybe they should have started off marketing Creative Cloud like this as opposed to the way they did it before. 

  • I swear to god, no more Creative products for me and everyone I know.

    Keep the stupid acts going. Creative, **bleep**Message Edited by KokChoy-CL on <span class='local-date'> 06-9-2008<span class='local-time'> 09:30 AM

    As listed in the rules & regulations, this is not a place to post your rants. If you have a technical issue, go through the proper channels either via phone support (check the support folder of the installation cd) or through email. This is not exactly a support forum, as it is primarily intended for user interaction.Message Edited by KokChoy-CL on <span class='local-date'> 06-9-2008<span class='local-time'> 09:29 AM

  • MOVED: GD-65 / Core i5 Overclock Settings & Tips - Read More For The Specs...

    This topic has been moved to Overclockers & Modding Corner.
    https://forum-en.msi.com/index.php?topic=132009.0

    This topic has been moved to Overclockers & Modding Corner.
    https://forum-en.msi.com/index.php?topic=132009.0

  • Gradiet tool to stroke more creative

    Hi!
    1 It would be great if the gradient tool to work directly on the specified stroke. For example, to color markers moved the line of stroke.
    2 It would be great if using a combination of tools "gradient tool" and brushes "calligraphic brush" and palette apperance could be created quickly ribbons and banners. Without such painstaking combination http://sellingvector.blogspot.com/2010/12/how-to-create-banner-scroll-vector.html
    Example 3D path with 3d manipulator:
    Example edit 3D in blender. Of course in Illustrator does not have to be an option in the 3D view, you only need to track showed the effect of manipulating 3D as in 3D Blender:
    http://www.youtube.com/watch?v=22GLKCD8Aoc
    Best Regards!

    UPDATE:
    I also posted my issue on the feedback.photoshop.com website: http://feedback.photoshop.com/photoshop_family/topics/cs6_brush_tool_pressure_sensitivity_ sometimes_fails_from_stroke_to_stroke
    An Adobe employee suggested that the cause could have been that my Wacom drivers were installed as an update and not a clean install. So I uninstalled my Wacom drivers, rebooted, and reinstalled the latest drivers from the Wacom website.
    And now the pressure sensitivity is not registering in the CS6 beta at all, making things worse. I tried uninstalling and reinstalling CS6 afterwards but that did not resolve the issue. The pen pressure still works fine in my old copy of Photoshop CS3 installed on the same machine, as well as in other apps.
    At this point I don't know what else to try on my end, and because I depend on the pen pressure to do my work, I will not be able to use CS6 until a solution is found.

  • JSP vs Swing

    can we achieve all the functionality by programming in Swing,than what we get by JSP.
    moreover can we develop a website in Swing?

    oxbow_lakes wrote:
    Lets be clear about this - Swing is infinitely more
    capable GUI-wise than HTML/JavaScript (which is what a
    JSP can give you). Right on! [smile]
    Responsiveness can indeed be better
    in some cases, because you don't have to go to the
    server every time (ie. you can embed business-logic in
    the application).Urr... responsiveness in a Swing gui should never be any slower than a thin client... typically, it should be orders of magnitude faster. There are many obvious reasons why this is true.
    Also, there is no need to embed business logic in the Swing application. Instead, you just make requests back to your app server for business logic processing.
    The problems you have, however, with Swing are
    many-fold.
    1. Most browsers will NOT, by default, support Swing
    (or Java1.2). Most browsers, of course, being IE5.
    Hence you need plug-in technology. Which can be a bit
    of pain as therefore you have to worry about
    client-browser requirements.This is what Java Web Start is all about. (I think you mention that later). It's a great solution.
    2. Distributing applets over the web can give rise to
    versioning problems on the client-side. If your applet
    takes a long time to load you want it to be stored on
    the client's machine. However if you make a change to
    the business logic, you need to distribute this change
    out to clients.Again, this is solved by Java Web Start. It caches your application, and also ensures that you have the latest version each time you run it. On top of that, it lets developers create incremental updates to their applications.
    3. Swing is much more complicated than HTML so making
    things like dynamic, interactive tables will take more
    time than in simple HTML/JavaScript where it is easy.I disagree. Handling a mouse click is almost exactly as simple as handling a mouse click with JavaScript. (I might even argue, simpler). Swing differs in that there is so much more power available to you.
    4. If in processing the page you need to communicate
    with the server then this is simple using JSP - the
    page is being executed on the server already. No
    problem. Using Swing, however, you will need to use
    maybe RMI or raw Socket communication to a server
    process. The former is more finicky and the latter
    requires cleverer code on the server-side to listen to
    unpack the incoming streams (all of which is invisible
    to you when using JSP). Add firewalls to the equation
    and you might find that client-server communication is
    well-nigh impossible. Or just beyond your area of
    expertise.Communication is not a hard problem to solve. For example, you can write EJB client code from your application just like you would from a servlet (or JSP). Application servers like Weblogic multiplex RMI and HTTP on the same port.
    People also use the same controller pattern for Swing apps that they do for JSPs - where the controller logic is stored in servlets. This means that the Swing app makes requests to servlets for business logic processing. This has the two effects of preserving MVC architecture in the system and also effectively 'tunneling' requests through any firewall that allows HTTP. With Java's built in networking support, that's a piece of cake.
    The answer is... if you are absolutely needing very
    fancy graphical stuff that must be interactive, then
    Swing will probably be better - it will be more
    responsive and flexible. Otherwise, stick to JSP and
    avoid the headaches.I disagree again. When will people realize that the browser was never designed for this task and is woefully inadequate!? [argghh]
    I've written Swing-based and browser-based interfaces. Most of my headaches don't come from those mentioned above. Rather, my headaches come from trying to design interactive, intuitive, and fast interfaces using tools never intended for such a feat. Incompatibilities between browsers (implementations of the HTML spec, JavaScript, CSS, DOM) just add more fuel to the fire.
    God bless,
    -Toby Reyelts

  • Swing/Threads, changing the GUI

    Hey all, I have a question related to the java swing class, and manipulating a GUI which is something that I have never done before. Basically I have a threaded Listener class which returns a status boolean. Related to that status, I have a Jlabel which is supposed to display green if the status is true, and red if the status is false, however it is not working correctly. Below is my code, and I would appreciate some help if anyone has a fix, or better way to do this... Thanks in advance
    //Listener Class
    public class Listener extends Thread{
         private boolean isGood = false;
         public Listener(//...) {
         public void run()
              // does stuff here that sets the isGood var
         public bool getIsGood()
              return this.isGood;
    //GUI
    public class Visualizer {
         private static Listener listener;
         public Visualizer(Listener listener){
              this.listener = listener;
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
         private static JFrame frame;
         private static JLabel status;
         public static void createAndShowGUI() {
    //Create and set up the window.
    frame = new JFrame("Window");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    status = new JLabel("Listener... ");
    status.setOpaque(true);
    status.setBackground(Color.RED);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    frame.setSize(new Dimension(204, 115));
    frame.setContentPane(status);
    listener.start();
    while(true){
         boolean isGood = listener.getIsGood();
    if(isGood){
    status.setBackground(Color.GREEN);
    else{
    status.setBackground(Color.RED);
         try{
              Thread.sleep(1000);
         }catch(Exception E){
              E.printStackTrace();
    I purposely left out some of the code because I wanted to make it simpler to follow. Essentially this is what is going on, and hopefully someone can point out why its not working and how to fix it. Thank you for reading this.

    thanks for the advice Petes, I was looking for the code tag before but didnt see it. I have created an SSCCE, and I apologize for not making it earlier. Here is the code. The threads seem to be getting stuck, and the label doesnt alternate between red and green as it should. Let me know if you need anything else:
    package simplified;
    public class Main{
         public static void main(String[] args) {
              Listener theListener = new Listener();
              theListener.start();
              Visualizer theView = new Visualizer(theListener);
    //Listener Class
    public class Listener extends Thread{
         private boolean isGood = false;
         public Listener() {
         public void run(){
              if(this.isGood == true){
                   this.isGood = false;
              else{
                   this.isGood = true;
              try{
                   this.sleep(1000);
              }catch(Exception e){
                   e.printStackTrace();
         public boolean getIsGood(){
              return this.isGood;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.Dimension;
    public class Visualizer {
         private static Listener listener;
         public Visualizer(Listener listener){
         this.listener = listener;
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
              public void run() {
                   createAndShowGUI();
         private static JFrame frame;
         private static JLabel status;
         public static void createAndShowGUI() {
              //Create and set up the window.
              frame = new JFrame("Window");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              status = new JLabel("Listener... ");
              status.setOpaque(true);
              status.setBackground(Color.RED);
              //Display the window.
              frame.pack();
              frame.setVisible(true);
              frame.setSize(new Dimension(204, 115));
              frame.setContentPane(status);
              while(true){
                   boolean isGood = listener.getIsGood();
                   if(isGood){
                        status.setBackground(Color.GREEN);
                   else{
                        status.setBackground(Color.RED);
                   try{
                        Thread.sleep(1000);
                   }catch(Exception E){
                        E.printStackTrace();
    }

  • GUI Programming w/ Swing

    For the first time in my C.S. education I will be forced to develop applications that use swing in order to create GUIs. My question is this: Will I absolutely NEED to be able to program without the use of an IDE, or should I (for the most part) be able to rely on an IDE such as NetBeans?
    I ask this because I'm going to be doing my first team project using Swing and CVS, and I'm wondering if I should know how to program the GUI using just a text editor.
    Thanks,
    jlgosse

    For the first time in my C.S. education I will be
    forced to develop applications that use swing in
    order to create GUIs. My question is this: Will I
    absolutely NEED to be able to program without the use
    of an IDE, or should I (for the most part) be able to
    rely on an IDE such as NetBeans?Two or three months ago, I decided to learn Java. I also wanted to build GUIs with it. I downloaded NetBeans, and made a start using that to build my GUIs. I was therefore a beginner with the language as a whole, Swing in particular, and NetBeans into the bargain.
    What I found was this:
    The Swing code that NetBeans generated was convoluted and complex. It makes use of a layout manager called GroupLayout, that I believe was built specifically for IDE GUI generators. It does not lend itself easily to human consumption. Also, NetBeans does not allow you to directly alter the generated code.
    There were some things I could not seem to do in NetBeans, either through a limitation in it, or because of my inexperience in using it. I had great trouble placing one object on top of another, for example (only one is ever visible).
    Creating standard forms / panels in NetBeans is easy and the visual tool is user friendly. It also allows you to marshal the events and event handling. This is a boon to the beginner.
    However, having said all that, I concluded very early on that if I were to ever really get to grips with Swing, then I should learn about it, and then hand craft my GUIs. Whilst this was painful at first, and after reading a great deal, I can now knock up a GUI in double quick time, that I have complete control of, and that uses far less code than the GUI builder would.
    So to answer your question. I would say that your first assignment using Swing will probably be quite straightforward, so I don't see any reason why you can't rely on NetBeans to help you.
    But, if you ever want to really rock and roll with Swing, I would say you will need to go through a learning exercise with it, drop the IDE, and get to the point where hand crafting a GUI is, if not a pleasure, then at least not a horribly daunting task.
    Should you ever do this, please ensure you fully understand the issue of concurrency.
    I hope this was of some value to you, and good luck with your assignment.

  • In Word and others, when I tip, regularly the focus quits the present window and i can't no more tip verry perturgbating

    In Word and other programs -  even in Safari - when I tip, the focus is suddently somewhere else and I tip nothing more.
    Extremely annoying: I have to tip twice the same things!
    the pointer of the mouse is also erratic

    Sorry, i wanted to write ' type ': when i type In word suddenly the pointer is somewhere else and i have to click in the windows to get the focus. Very annoying and Time consuming. I become crazy with this.
    best regards

  • NO MORE 30 gigs!!!! CREATIVE HANGS UP HARD DRIVE PLAYER

    YES ITS TRUE NO MORE CREATIVE ZEN VISION
    NO MORE VISION:M
    NO MORE VISION :W
    NO MORE 30 GIGS NO MORE 60 GIGS I RECEENTLY HEARD ON CNET.
    THAT CREATIVE WILL NOT BE MAKING ANY MORE I CAPACITY MP3 PLAYERS JUST FLASH BASED ,,YES THE NEW CREATIVE ZEN WILL BE REPLACING THE ONES LISTED ABOVE.
    THIS REALLY SUCKS BECAUSE NOW APPLE WILL GET MORE MONEY BECAUSE THE ZUNE ISNT ALL THAT GOOD AND CREATIVE WAS A GREAT ALTURNATIVE(THE BEST!)
    AND THIS IS SAD BEACAUSE CREATIVE IS MY FAVORITE AN D I AM ALWAYSE TALKING ABOUT HOW GOOD CREATIVE IS AND BETTER
    AND HOW IT KICKS THE IPODS BUTT.
    creative If your reading this.....FIX this problem ...
    I HATE IPODS DONT YOU??
    if you want to see my youtube videos http://www.youtube.com/profile?user=crammage there you can watch me rant on how ipod sucks and creative Rocks! i have a creative zen vision :m......
    thanks for reading...if you want to contact me you can send me an email at [email protected]
    or send me a comment or message on youtube i check them every day....
    thanks for reading ..(if you did)....Message Edited by vulgora on 08-3-200704:32 PM
    Message Edited by vulgora on 08-3-200704:33 PM
    Message Edited by vulgora on 08-3-200704:33 PM

    Hard Dri'ves are a thing of the past. If creative starts moving to strictly flash based mp3 players, they can then start to go onto the the development lines of improving the technology. Creative may in the future be able to go from 6gb max flash to 32GB max flash, and maybe some day even higher. The flash based technology allows it to take up less space, and thus they can add more features to the current dimensions of the ZVM/ZVW if they decide to continue them.

Maybe you are looking for