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

 
 

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

Submitter:  Gaston DASSIEU-BLANCHET <gdassieu>
Submitted:  Sun 21 Aug 2011 12:43:05 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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


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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by ronnystandtke (Posted a comment)
  • -email is unavailable- added by gdassieu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-01 ronnystandtke StatusNeed Info Postponed
    2011-08-23 gdassieu Attached File- Added jbackpack.png, #23853
        Attached File- Added filechooser.png, #23854
    2011-08-21 ronnystandtke StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code