JFileChooser problems in GTK look&feel

Hi,
the JFileChooser dialog is just ugly and not acceptable when using the GTK look&feel, there are so many layout problems and display errors. It also does not look like the native dialog. I'm using Ubuntu Linux 7.10 and Gnome 2.20.
My application uses the GTK look&feel, because most of the normal widgets look nice. Is there a way to use the same JFileChooser dialog layout as it is in the Metal look&feel when using the GTK look&feel? This would be an acceptable workaround...
Thanks,
Stefan

I don't believe it will be supported under any platform but *nix platforms.  The GTKLookAndFeel currently requires native theme information which is not available on the Windows platform.                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Partial selection problem with different Look & Feel

    Hi,
    Is there any [free] Look and Feel which supports the partial selection
    of checkbox. I have tried the same with LiquidLnF & SkinLnF these Look and Feel doesnot support partial selection (it shows full selection instead).
    please suggest something.....
    thanks,
    parag

    Surely a L&F can't cover this, since a check box only has two logical states. L&F is just a means of expressing the model, and the model won't support what you're doing.
    I'm sure there's a three-state check box component out there if you look for one.

  • How to apply XP and GTK look and feel??

    hi..
    please tell me how can I apply XP and GTK look and Feel in my Swing applications??

    hi
    Please visit
    http://www.l2fprod.com/
    Ashish

  • [SOLVED] Java GTK look and feel

    I opened a thread recently about replacing the ugly swing buttons in Java applications. After successfully modifying my ~/.bashrc, all was well. However, these new changes were only present when run from a terminal. I assumed it was because my desktop was still running a bash session that hadn't loaded the new options yet, so I restarted.
    Symptom: Java apps launched from the GUI still have old swing buttons, but have the GTK look and feel when launched from a terminal.
    My .bashrc additions:
    # Java stuff
    export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
    I use SLiM for a graphical login experience. Could this be affecting it? I'm not sure what happens differently behind the scenes when using a login manager other than that CTRL+ALT+F7 brings me to my GUI when I use one (because all 6 TTYs are still TTYs).
    Last edited by 2mac (2014-01-02 20:51:35)

    I had a similar issue where .xinitrc wasn't working to set an environment variable. I put mine in ~/.config/openbox/environment and it worked. If you run openbox try that. If using a different window manager maybe try /etc/environment I am unsure of how slim functions though maybe there are config files for it. I think slim is on it's way out though (already lacks some compatibility with systemd; they may fix it though upstream I have no idea). But yeah try the environment file way and see if that does it (assuming you have tested your command from the shell and it works how you want).

  • Rendered Nodes in JTree, Look&Feel Problem

    Hallo,
    I make a small JTree and write my own TreeNodeRenderer which renders in each case a simple JPanel with Titled-Border an 2 JLabels.
    If I adjust Metal Look&Feel the rendered Nodes are displayed correctly. (The JPanels size is about 300x200 pixels)
    With other L&Fs (windows, motif, plastic from jgoodies) there is only the title of the TitledBorder displayed.
    I meet the Problem as i programmed a more complicated JTree with rendered TreeNodes.
    Do you know the problem and a solution? I don't want to setting up Metal look for my application.
    The following link contains the source of the example in an executable jar file:
    http://home.arcor.de/Thomas-Pfaff/treetest.jar
    thanks for all answers

    I found the answer of my question....
    http://onesearch.sun.com/search/clickthru?qt=TreeCellRenderer&url=http%3A%2F%2Fbugs.sun.com%2Fbugdatabase%2Fview_bug.do%3Fbug_id%3D4656280&pathInfo=%2Fonesearch%2Findex.jsp&hitNum=1&col=support-all

  • GTK Look And Feel

    I found the source for the GTK L&F in the source files for JDK 1.5 u 1, but when I wrote this code:
    UIManager.LookAndFeelInfo[] looks = UIManager.getInstalledLookAndFeels();
            JRadioButtonMenuItem item;
            LookAndFeelListener listener = new LookAndFeelListener();
            for (int i = 0; i < looks.length; ++i) {
                item = new JRadioButtonMenuItem(looks.getName());
    item.addActionListener(listener);
    menuViewLooks.add(item);
    lfGroup.add(item);
    looksMap.put(item, looks[i].getClassName());
    if (looks[i].getClassName().equals(UIManager.getCrossPlatformLookAndFeelClassName())) {
    item.setSelected(true);
    it looked like the GTK look wasn't installed and I can't use it.
    What should I do to use it in my app?

    Hello Mr.,
    Its good. Thanks for providing convenience. I have a doubt abt for loop
    in the following statement.
    for(UIManager.LookAndFeelInfo look : looks)
    My doubt is what is this kind of for loop. I wanna know abt this varient of for loop detaildly. I have jdk 1.4.2 with me. This code is not getting executed on my system. Whatyare the prerequisites to write that kind of code

  • Customizing ADF Faces Look & Feel. Some questions & suggestions

    Hi everybody,
    We are developing an application with ADF Faces using JHeadStart. For the moment, I am studying the way we must modify the JHS templates to adapt each element to our needs.
    As it's told in the JHeadStart Developer's Guide, there are two ways to customize Look & Feel:
    1) Modifying the templates
    2) ADF Skinning
    I'm using both methods, but I feel that thay are not good enough to adapt the L&F to our customer requirements.
    My main problem now is in the ADF Table customization. I want to use ADF Table because it offers us a lot of features that are not in the jsf table (the selection column, the table overflow...), and is very usefull combined with the generated JHS code. But at the same time, it doesn't offer a lot of functionality in the look & feel customization. Using JSF Table, I can set the CSS style for headers, rows, columns, the table, I can set the border, cellspacing and cellpadding. But I cannot do
    any of these thing (or at least, I don't see how) with the ADF Table.
    Our customer (a government) have a strict definition of the look & feel of his web applications. They want we use their CSS styles definition file, so they can modify at once the Look & Feel of all their applications. Modifying the L&F through skinning generate other styles, not use the style classes in our CSS (o so I think).
    So, the questions:
    1) There is any way to set the suitable styles for the ADF Table components (headers, rows)?
    1bis) Why, If I have defined a new skin, with only just a few selectors, some styles from oracle are applied? Maybe because the render kit in the 'adf-skins.xml' is "oracle.adf.desktop"? If it is true, how can I make that they are not used, I must implement a render kit or can I use another existent?
    2) Can I decide how looks the select column (for example a button instead of a radio button)? Can I decide where does it goes (right or left)?
    3) There is any way to hidden the text Show/Hide of the showDetail in the table (the tableOverflow), as I can change the icons through skinning? If it is not possible, How can I overwrite the text. I need it in Catalan, but it is shown in English for this locale. Where is the message bundle I should overwrite?
    4) There is any way to force a tree to start fully expanded?
    5) There is anywhere documentation about the javascript functions used in ADF and their meaning? I think for example in the previous question. If I knew which javascript function I should call for expand the tree and its parameters, I could put the call in the onload event of the body.
    6) I use a selectInputDate. I have skinned the launch-icon, and I would like to do a similar thing in the chooseDate that is opened in a new window. But It seems not to be affected for my skinning directives (if I put a chooseDate in the same page, its L&F follow the skinning rules I've defined). I don't know if this dialog is an ADF feature or a JHS generated feature.
    7) There is any way to keep unmodified the id I've choosed for a component? (I mean, an inputText with id="hello" in a form with id="form" will have in the HTML an id = "form:hello", but I would like it to be simply 'hello')
    8) How can I control the position and the size of a dialog (the chooseDate dialog or a dialog I've created)? In the cases I've been testing, it seems the dialog is forced to resize depending on the content. I would like to know if I can establish a fixed size.
    9) There is any way to open a non-modal dialog? (which I could keep open at the same time that another instance of the same dialog)
    For the moment, I think I have no more question. But give me time.... :-D
    The suggestion I've to do is basically more flexible components for a better customization (for example, the styles settings I've talked about previously). ADF components are nice and powerful, but I think they should generate pages that follow the tendencies in the web development: tableless pages (I cannot understand the utility of the objectSpacer existing the margins), use of CSS for layout...
    Any answer, comment or suggestion will be welcome.
    Carles.
    Message was edited by:
    cbios

    I have been able to make the UIX 2.2 and ADF Faces LAF look near identical by updating the oracle-desktop.xss file within UIX 2.2 as follows
    <!-- Change the accent color ramp to tan -->
    <style name="DarkAccentBackground">
    <!--<property name="background-color">#cccc99</property>-->
    <property name="background-color">#d2d8b0</property>
    </style>
    There are still some differences:
    1) A black line appears on the ADF Faces on the 'menu1' facet selected tab below the text. DON'T KNOW HOW TO REMOVE THIS FROM ADF Faces or add it to UIX 2.2!!!
    2) In UIX 2.2 a bulleted list uses the HTML <li> tag. In ADF Faces it doesn't use the HTML <li> tag rather it constructs the bulleted list using lower level HTML tags with the 'bullet' becoming an image, in my browser this means the disc is smaller in Faces. The motivation for this change I think is explained via this post. Since I have no control over how this specific HTML tag is rendered it forces me to replace the /adf/images/bltdscn.gif file in adf-faces-impl.jar with a larger disc!
    http://www.thescripts.com/forum/thread96839.html
    May update this again if there are other things I notice.

  • Setting Themes for Java Look & Feel

    Hi All,
    I am tring to set my customized theme to Java Look & Feel. I am able to set the theme using the following code:
    ASC_WhiteSatin theme = new ASC_WhiteSatin();
    MetalLookAndFeel.setCurrentTheme(theme);
    The above code works fine and changes the color schemes correctly.
    If I set another theme after setting the previous one i.e.let say abc Theme, dialogs and frames are updated properly where as JFileChooser start showing combination of both. Why?
    I am also updating the Look & Feel and calling
    SwingUtilities.updateComponentTreeUI(this);
    SwingUtilities.updateComponentTreeUI(this.getParent());
    ((JFrame)this.getParent()).pack();
    to refresh the themes for my frame. I am using JDK 1.4.1.
    Thanks in advance
    Wahaj

    try the beta-version of 1.4.2

  • Help with "simple" JFileChooser problem...

    Hi all,
    how do I set the font in a JFileChooser???
    I have tried everything, but it always uses the Look & Feels default font setting. Can I change the default Look&Feels font setting?
    Greatfully for any suggestions!
    Cheers
    Anders ;-D

    Hello!
    You can use the UIManager, e.g. UIManager.put("FileChooser.font", new Font("Arial",
    Font.BOLD, 14);
    Well, that didn't seem to help with my case either. So I tried something else: I overrided all of the defaults by using UIManager.put(key, value) this way I got all of the Fonts in the JFileChooser to change.
    Correct me if I'm wrong... ;)
    - Cathra -
    Sample Code that performs the requested:
    // Prepare the resources
    FontUIResource font12Arial = new FontUIResource( "Arial", Font.PLAIN, 12 );
    // Put values into UIDefaults (before initializing the JFileChooser)
    UIManager.put( "ToolTip.font", font12Arial );
    UIManager.put( "OptionPane.messageFont", font12Arial );
    // shown for example
    UIManager.put("FileChooser.openButtonText", "OpenUp");
    UIManager.put("Button.font", font12Arial);
    UIManager.put("Label.font", font12Arial);
    UIManager.put("Table.font", font12Arial);
    UIManager.put("TextField.font", font12Arial);
    UIManager.put("ScrollPane.font", font12Arial);
    UIManager.put("ComboBox.font", font12Arial);
    UIManager.put("CheckBox.font", font12Arial);
    UIManager.put("TitledBorder.font", font12Arial);
    UIManager.put("RadioButton.font", font12Arial);
    UIManager.put("ToolTip.font", font12Arial);
    UIManager.put("TextPane.font", font12Arial);
    UIManager.put("TextArea.font", font12Arial);
    UIManager.put("Tree.font", font12Arial);
    UIManager.put("List.font", font12Arial);
    UIManager.put("MenuBar.font", font12Arial);
    UIManager.put("Menu.font", font12Arial);
    UIManager.put("MenuItem.font", font12Arial);
    UIManager.put("TableHeader.font", font12Arial);
    UIManager.put("TabbedPane.font", font12Arial);
    // somewhere in the code:
    JFileChooser c = new JFileChooser();
    c.showOpenDialog(aParentFrame);

  • [solved] How-To apply lxappearance Look&Feel for qpdfview?

    Hello,
    as the title says: I wonder if there is a way to get the configured lxappearance Look & Feel for the qpdfview pdf-viewer.
    I'd also write some code if necessary but I'm don't know where I should start…
    Help is as always appreciated. :-)
    Thanks in advance!
    Cheers,
    domac
    Last edited by domac (2012-08-16 16:29:29)

    Hello!
    You just need to install "libgnomeui". This package (or some of it dependencies... I never "investigated" what exactly happens) provides what is necessary to make Qt applications use the GTK theme. Probably it is going to work right after the installation. If not, try to logoff/login or restart the computer. And, as a "last resort" (it should not be necessary), change the Qt settings, on "qtconfig", to make it use the GTK+ Gui Style.
    I hope this have worked. Anything else, just ask!

  • [JProgressBar][Look&feel] Change the color

    I want to change the color of my JProgressBar :
    I have tried :
    UIManager.put("ProgressBar.foreground", new ColorUIResource(255, 0, 0));
    progressBar.updateUI();
    and
    progressBar.setForeground(Color.RED);[b]
    When I use the default look&feel, it works but with a custom look&feel (com.birosoft.liquid.LiquidLookAndFeel), the color isn't changed.
    Does anybody has an idea ?
    thanks in advance
    sylvain_2020

    hi,
    you're right but when I do :
    <b>this.progressBar.setForeground(Color.RED);
    this.progressBar.updateUI();</b>
    Nothing changes. I found that the probleme comes from the look & feel that I used since the color is changed when I don't specify any look and feel ...
    Do you know how I could resolve this ?
    Sylvain

  • GUI screwed up sometimes with Custom Look & Feel

    Hello,
    i've got a few problems with my JApplet. Im using a custom Look and Feel (Kunststoff, http://www.incors.org/index.php3 very nice) - my problem is that sometimes (often) my gui is screwed up - some parts like a JPane are not rendered in the custom look & feel, they are still default, but the buttons are. Or my whole dialog looks like a little puzzle - small pieces are cut out.
    I have no idea how to avoid these bugs, im not certain that this is because of the custom look and feel because i seem to have the same problems with the metal look and feel from java.
    I tryed to put a repaint() in my initiliaze of my dialog classes at the very end, but no success either...
    Any help would be greatly appreciated.

    Hello,
    i've got a few problems with my JApplet. Im using a custom Look and Feel (Kunststoff, http://www.incors.org/index.php3 very nice) - my problem is that sometimes (often) my gui is screwed up - some parts like a JPane are not rendered in the custom look & feel, they are still default, but the buttons are. Or my whole dialog looks like a little puzzle - small pieces are cut out.
    I have no idea how to avoid these bugs, im not certain that this is because of the custom look and feel because i seem to have the same problems with the metal look and feel from java.
    I tryed to put a repaint() in my initiliaze of my dialog classes at the very end, but no success either...
    Any help would be greatly appreciated.

  • Problem with gtk themes display

    I am running Gnome on my new Arch box and I encounter some strange problems. In Debian, I was able to compile and use some gtk engines like gflat, rezlooks or murrina. Now I tried to compile them on Arch and they do compile okay, but they do not work as expected. Either I get a simple gtk1 layout or I get a broken gtk2 theme (murrina e.g.) where gradients don't work and sliders that are e.g. pink on the left and gray on the right side.
    Did anyone else experience this and what could cause this problem?

    rezza wrote:the problem is gtk-2.10 looking in a different place for theming engines. I'll release a new rezlooks soon, but in the meantime you can fix it by symlinking the engines in /usr/lib/gtk-2.0/2.4.0/engines/ to /usr/lib/gtk-2.0/2.10.0/engines/
    Simply rebuilding the rezlooks engine against gtk2-2.10.1 correctly found the right directory for me at least.
    [john@metatron ~]$ pacman -Ql gtk-engine-rezlooks
    gtk-engine-rezlooks /usr/
    gtk-engine-rezlooks /usr/lib/
    gtk-engine-rezlooks /usr/lib/gtk-2.0/
    gtk-engine-rezlooks /usr/lib/gtk-2.0/2.10.0/
    gtk-engine-rezlooks /usr/lib/gtk-2.0/2.10.0/engines/
    gtk-engine-rezlooks /usr/lib/gtk-2.0/2.10.0/engines/librezlooks.so
    Also, here's my PKGBUILD for it.
    pkgname=gtk-engine-rezlooks
    pkgver=0.6
    pkgrel=2
    pkgdesc="Rezlooks GTK2 engine"
    url="http://www.gnomelook.org"
    depends=('gtk2' 'cairo')
    source=(http://www.gnome-look.org/content/files/39179-rezlooks-$pkgver.tar.gz)
    md5sums=('87b768eb372dd5065f9e36bf10245ac7')
    # Changelog:
    # 0.6-2: Rebuilt against gtk2-2.10.1
    build() {
    cd $startdir/src/rezlooks-$pkgver
    ./configure
    --prefix=/usr
    --enable-animation
    make || return 1
    make DESTDIR=$startdir/pkg install
    find $startdir/pkg -name '*.la' -exec rm {} ;

  • 10G StrutsPageFlow Look/Feel/Use

    Look and Feel:
    In a post Brian Fry stated they are looking at Look and Feel for future releases. Today I was playing with the Struts Page Flow and here are a few Look/Feel/usability items
    Again Thanks All
    A
    =============================
    Add a full screen editor for Diagram Editing (Allow hot keys to floating pallets). Multiple monitor support if not already there.
    More options for direct access on right click of objects to code, properties, ect.
    Usability
    I used the BC4J toy store example from Steve Muench and created a StrutsPageFlow from struts-config.xml. What a mess.
    Next I right clicked on the diagram Diagram|Refresh Diagram from all Pages... Even worse.
    I Right Clicked and selected Layout Diagram|Right to Left. This creates an unusable document that I could not find a way to get back to usable by clicking. The anchors in the lines do not clean up when the lines are moved or straightened.
    I think I see the error in my logic for the next one but it seems to still be a problem in the way the system keeps the PageFlow, XML and code, consistent when using cut and paste. I do not know the exact path to recreate problem:
    *after the Layout Diagram Results above I hand edited the whole pageflow to get all the bad anchors out and the whole diagram on a single page. 
    *Next I selected all items on the Struts Page Flow and  used cut from the menu to cut  all the Items displayed
    *I deleted the page flow using File| Erase from Disk.
    *I Creaed a new page flow and Pasted all the items back.  They came back and looked like the page flow I cut but they were hollow, cold, and empty.
    *This destroyed the PageFlow, config. xml, and project.
    oops.
    More Later ?
    A

    Arron,
    Certainly the default layout of an imported struts-config in the preview is not pretty - For production it will automatically do a Hierarchical Top to Bottom which is a little better but we have to do some further work to tweek the label and line positioning - this is an area which will constantly evolve for the better...
    Cut copy paste on the diagram does not work in Preview - it is fixed for production so I'm sorry about that.

  • Query regarding portal look & feel

    Hi All,
    I have deployed my j2ee application on sap. I also need to change look & feel of my pages(iviews) when user changes portal theme. For this I am passing url of css used by portal to my application, but I am fetching it in login page only and putting it in session so that all pages use the same css, hence user need to click on the first page of my application to reflect changes.
    Problem is that if user has opened another page and he changes portal theme, it gets reflected in portal standard components but not in my pages until I click the first page that is for login.
    How can I achieve portal's look & feel.
    Please suggest...

    Hi,
    Check this link
    Portal Branding for specific user
    Portal Customizations Intro - Login Part 1
    http://help.sap.com/bp_epv260/EP_EN/documentation/EP/N08_BB_ConfigGuide_EN_US.doc
    A fast and easy Portal logon page customizing
    Regards
    Arun

Maybe you are looking for