Results 1 to 5 of 5
  1. #1
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default L&F comparison - Eclipse vs. Netbeans vs. my apps

    L&F comparison - Eclipse vs. Netbeans vs. my apps-eclipse-vs-netbeans.png

    I'm using a dark GTK+ theme, and some Java apps look good, but others look terrible. This image shows menus in Eclipse and NetBeans. Notice how in the NetBeans screenshot, disabled menu items are brighter instead of darker, and the text appears doubled. When I use the system L&F in my own applications, they look like NetBeans.

    I've read that this is a common problem with the GTK+ L&F, but I haven't found any solutions. I'd like to know what Eclipse is doing to make itself look so good, but I'm reluctant to start digging through the Eclipse source without even knowing what I'm looking for. Does it have its own custom L&F? Would it be pretty easy to rip it out and use it in my own programs, provided the license is compatible?
    Get in the habit of using standard Java naming conventions!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: L&F comparison - Eclipse vs. Netbeans vs. my apps

    I think what's important is how the app looks when run from a command line or an executable jar, and whether the LaF is OS-independent.

    Did you verify that no Exception is thrown when setting the LaF?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: L&F comparison - Eclipse vs. Netbeans vs. my apps

    My question may not have been clear. It's not that my apps look different when run in Eclipse. It's that Eclipse itself looks different from my apps, and from other apps like NetBeans. That makes me think that Eclipse is not using the native L&F, although it's definitely borrowing things like colors and the appearance of scrollbars from it. I want to make my apps look as good as Eclipse.

    It occurred to me that some parts of Eclipse look suspiciously like the native apps on my system. Maybe it's actually a native app that embeds a JVM, like OpenOffice/LibreOffice...

    Anyway, I learned about Nimbus, so I'm using that for now, with Metal as the fallback.
    Get in the habit of using standard Java naming conventions!

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: L&F comparison - Eclipse vs. Netbeans vs. my apps

    AFAIK Eclipse is built on SWT. Not Swing.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: L&F comparison - Eclipse vs. Netbeans vs. my apps

    Ohhh... yeah, that would make sense. I always forget that SWT exists.

    I noticed that another Java app I use, Areca Backup, looks like Eclipse. Its code base is much smaller, so maybe I'll dig into that and see what it's doing.
    Get in the habit of using standard Java naming conventions!

Similar Threads

  1. Is Eclipse a good place to start with Apps?
    By Acknowledged74 in forum Eclipse
    Replies: 1
    Last Post: 03-11-2012, 05:39 PM
  2. Netbeans vs. Eclipse
    By Qsc in forum New To Java
    Replies: 24
    Last Post: 11-23-2011, 11:04 AM
  3. NetBeans GUI into Eclipse?
    By mrbrendano in forum New To Java
    Replies: 11
    Last Post: 09-18-2011, 07:56 PM
  4. Replies: 3
    Last Post: 10-21-2010, 09:03 AM
  5. Eclipse vs Netbeans
    By baby_IT in forum New To Java
    Replies: 4
    Last Post: 11-07-2008, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •