This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122858 - Home folder button don't have hint
Summary: Home folder button don't have hint
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Directory Chooser (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2007-11-27 14:46 UTC by avp
Modified: 2008-12-22 11:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log (222.26 KB, text/plain)
2007-11-27 15:54 UTC, avp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description avp 2007-11-27 14:46:58 UTC
In open project dialog are three buttons(up, home dir, create new). First and third buttons have hints but second (home
dir) don't have
SUSE 10.3
Netbeans 6.0 Dev
Comment 1 avp 2007-11-27 15:54:07 UTC
Created attachment 53554 [details]
gdb log
Comment 2 Peter Pis 2007-12-04 09:16:30 UTC
Reassigning to "core".
Comment 3 Denis Anisimov 2008-03-05 15:46:54 UTC
Could you please recheck this issue in 6.1 ?
I don't see home dir button at all in file chooser dialog.

Possibly it disappears in 6.1 version.
Comment 4 Lukas Hasik 2008-03-05 15:50:02 UTC
ads, have you tried it on Linux?
Comment 5 Denis Anisimov 2008-03-05 15:58:17 UTC
Is it Linux specific issue ?
In this case please change OS to Linux.
No , I haven't try.
Comment 6 avp 2008-03-05 16:11:47 UTC
No, in 6.1 this button exists, but she is now with hint :)
Comment 7 Lukas Hasik 2008-03-05 16:41:01 UTC
yes, unix specific. Maybe even java specific. I'm able to reproduce with 6.1 M2 candidate + 1.5.0_12 on Ubuntu 7.04
Comment 8 Denis Anisimov 2008-03-05 17:22:52 UTC
Thanks for information.
I think it could be a problem of Java 1.5 version.
Because file chooser dialog is Java swing API.
I need to check this.
Comment 9 Lukas Hasik 2008-03-06 08:45:34 UTC
I remember that I tried it with Swing demo on linux. And the tooltip for Home icon was there. 
Maybe the NB doesn't set up the JFileChooser correctly?
Comment 10 David Simonek 2008-03-06 09:04:23 UTC
ads, I know where it is: following code, in DirectoryChooserUI, starting at line 608:

        // no home on Win platform
        if (!Utilities.isWindows()) {
            JButton homeButton = new JButton(getGoHomeAction());
            Icon homeIcon = null;
            if (!isMac) {
                homeIcon = UIManager.getIcon("FileChooser.homeFolderIcon");
            }
            if (isMac || homeIcon == null) {
                homeIcon = new ImageIcon(Utilities.loadImage("org/netbeans/swing/dirchooser/resources/homeIcon.gif"));
            }
            homeButton.setIcon(homeIcon);
            homeButton.setText(null);

            topPanel.add(homeButton);
        }
------------

just try to set some tooltip text to the homeButton. Perhaps there will be some prepared text in UIManager under some
key. If not, just use Bundle technoque.

Comment 11 Denis Anisimov 2008-03-06 09:21:34 UTC
Ok, thanks.
Comment 12 Denis Anisimov 2008-03-06 14:27:41 UTC
changeset:   71890:4bed4f1bad98