bugJBackpack - Bugs: bug #34088, Make JBackPack use the OS look and...

 
 

bug #34088: Make JBackPack use the OS look and feel where available

Submitted by:  Gaston DASSIEU-BLANCHET <gdassieu>
Submitted on:  Sun 21 Aug 2011 12:43:05 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Postponed
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 Sep 2011 07:06:11 PM UTC, comment #5:

Hi Gaston

Thank you very much for your comment on Oracle's bug report (including a fix!). We might get a solution in Java 8! ;-)

Ronny Standtke <ronnystandtke>
Project Administrator
Thu 25 Aug 2011 09:08:11 AM UTC, comment #4:

Hi Ronny,

Thanks for your support.

I just posted my grain of salt in Sun's bug report.

I hope it gets them moving.

Cheers,

Gaston

Gaston DASSIEU-BLANCHET <gdassieu>
Wed 24 Aug 2011 05:12:18 AM UTC, comment #3:

> Could you let me know what you found is broken in the file
> chooser in GTK LAF?


When using a JFileChooser with the file selection mode FILES_AND_DIRECTORIES and multiSelection enabled (as it is necessary in JBackpack), it is impossible to select a single directory when using GTKLookAndFeel.

> I'd like to follow up on this issue and submit the necessary
> bug report to the proper team...


I already reported this bug more than one year ago:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6972078

It got the priority "4-Low". When Oracle's bug fixing speed is similar to Sun's, it might take another five to ten years to get this bug fixed... :-(

Ronny Standtke <ronnystandtke>
Project Administrator
Tue 23 Aug 2011 09:29:40 PM UTC, comment #2:

Hi Ronny,

I am using Ubuntu 11.04. Please refer to attached screenshot (jbackpack.png). You will see 3 applications in the screenshot:
- JBackPack (Java application without the Ubuntu Look and Feel)
- Nautilus' File Management Preferences (Gnome application)
- JDigest (Java application with ubuntu Look and Feel).

As I check the code you pointed me to, I found the below:

<pre>
// NimbusLookAndFeel is the only acceptable LAF on Linux.
// The filechooser in GTK LAF is horribly broken and all
// other LAFs just look plain ugly.
UIManager.setLookAndFeel("com.sun.java.swing.plaf."
+ "nimbus.NimbusLookAndFeel");
</pre>

So, it seems to be done on purpose.

JDigest is using the file chooser in GTK LAF (I think) and, while quite ugly (refer to attached filechooser.png), it seems to do the job as far as I could test... Could you let me know what you found is broken in the file chooser in GTK LAF? I'd like to follow up on this issue and submit the necessary bug report to the proper team...

Best regards,

Gaston

(file #23853, file #23854)

Gaston DASSIEU-BLANCHET <gdassieu>
Sun 21 Aug 2011 06:01:49 PM UTC, comment #1:

JBackpack already sets the OS look and feel, please have a look at

http://svn.savannah.nongnu.org/viewvc/src/ch/fhnw/jbackpack/JBackpack.java?root=jbackpack&view=markup

and search for setLookAndFeel().

What OS/Desktop are you using?

Ronny Standtke <ronnystandtke>
Project Administrator
Sun 21 Aug 2011 12:43:05 PM UTC, original submission:

Hi,

Great software!!!

BTW, it would be good if it could use the OS look and feel. If you add the below code before creating any swing items, it will adopt the look and feel of the OS (Windows, Linux, etc...):

<pre>
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
}
</pre>

Best regards,

Gaston

Gaston DASSIEU-BLANCHET <gdassieu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23853:  jbackpack.png added by gdassieu (183KiB - image/png - Screenshots)
file #23854:  filechooser.png added by gdassieu (43KiB - image/png - Screenshots)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ronnystandtke (Posted a comment)
  • -unavailable- added by gdassieu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Sep 2011 07:06:11 PM UTCronnystandtkeStatusNeed Info=>Postponed
    Tue 23 Aug 2011 09:29:40 PM UTCgdassieuAttached File-=>Added jbackpack.png, #23853
      Attached File-=>Added filechooser.png, #23854
    Sun 21 Aug 2011 06:01:49 PM UTCronnystandtkeStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1