Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4327306

JFileChooser.setToolTipText() only partially effective

XMLWordPrintable



      Name: skT45625 Date: 04/03/2000


      E:\JavaDev>java -version
      java version "1.3beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
      Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)

      The setToolTipText(String) method for JFileChooser only sets the tool tip
      for parts of the component. When the cursor is over the list of files or
      the pull-down directory list (where it spends most of its time!) no tip
      gets displayed.

      package Junk;

      import java.awt.*;
      import javax.swing.*;

      public class ToolTip {

          public static void main(String[] args) {
      JFileChooser jfc = new JFileChooser(args[0]);
      jfc.setToolTipText(args[1]);
      JFrame frame = new JFrame("Look for the tool tip.");
      frame.getContentPane().add(jfc, BorderLayout.CENTER);
      frame.pack();
      frame.setSize(frame.getPreferredSize());
      frame.setVisible(true);
          } //Ends method main

      } //Ends class ToolTip


      ###@###.### 2000-04-03
      reproduced in kestrel-rc2
      (Review ID: 103220)
      ======================================================================

            tr Tejesh R
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: