java swing look and feel


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: java swing look and feel

  1. #1
    Join Date
    Oct 2005
    Posts
    4

    java swing look and feel

    i wanna create a program with a gui that will look simillar to this.. is it possible in swing? can someone show me a code or 2? thanks.
    Attached Images Attached Images

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Of course it is possible, but it will take quite a lot of work. One thing is the looks,
    the other thing is the code that is going to respond to this gui. Creating the gui
    requires, in my opinion, a high level of proficiency in java swing, and showing "a code
    or 2" for this is not just like that. The interactive graphics alone is a big job.
    This represents hundreds of lines of code.
    eschew obfuscation

  3. #3
    Join Date
    Oct 2005
    Posts
    4
    i see... thanks for the reply. i just want to know if i can really customize the java swing's look.. is swing the only one that i can customize? can i customize the look and feel of awt?

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    I'm not sure what degree of "costumization" you want to do, basically you can start
    with a plain empty JPanel and code the whole paintjob for your entire application,
    but I would not recommend it.

    But, I wouldn't dream of using awt for the layout you've posted here.
    eschew obfuscation

  5. #5
    Join Date
    Oct 2005
    Posts
    4
    why not recommend painting the gui?

  6. #6
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    By "paintiing the gui" I meant all of it; textfields, scrollbars, listboxes,
    comboboxes (good luck), trees, tables.... Doing that will be a waste of time. Better
    to learn the swing concepts and customize the stuff you want to make fancy looking,
    like subclassing.
    eschew obfuscation

  7. #7
    Join Date
    Oct 2005
    Posts
    4
    how does subclassing work? is there a tutorial on subclassing?

  8. #8
    Join Date
    Oct 2005
    Posts
    8
    You might want to study another year or two before trying anything like this.

  9. #9
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Quote Originally Posted by s2pid
    how does subclassing work? is there a tutorial on subclassing?
    Subclassing (or extending) existing classes is the very core of Java. A java
    program that doesn't extend any other classes can't be made. Even if you
    make a program like this
    Code:
    public class DeadSimple {
      public static void main (String [] args) {
        System.out.println("Im so simple");
      }
    }
    ..the DeadSimple class is by default extending java.lang.Object, - the father
    of all Java classes.
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center