JToolBar doesn't display button text ?

I have created a new action like this
          this.putValue(Action.NAME, "Queue");
          this.putValue(Action.SHORT_DESCRIPTION, "Add ID card to print queue");
          this.putValue(Action.SMALL_ICON, this.loadIcon("resources/icons/arrowright_green24.gif"));then i call
Jbutton queueButton = toolBar.add(new QueueAction());and it displays the button with an icon but no text under it,
i was under the assumption that it would use the NAME value that i set in the action as the button text
if i call
queueButton.setText("Queue"); that displays how i want it, but if that is the case what is the point of using an action in the first place
what am i doing wrong ?
thanks in advance
alex

what am i doing wrong ?You can always look at the source code to see exactly what is going on. I found the following code which would seem to be the cause of the problem:
if (icon !=null)
    b.putClientProperty("hideActionText", Boolean.TRUE);
}Although I must admit I'm not sure why setting the text after the fact seems works since it never resets the client property. But you can chase it down through the code if you're interested.
but if that is the case what is the point of using an action in the first placeAn Action can be shared by multiple components. Typically you would have a menu item and a toolbar button for the same Action. You can then just enable/disable the Action and both components will be changed.
You should be able to solve your problem by using:
button = new JButton( new QueueAction() );
toolBar.add( button );

Similar Messages

  • Firefox doesn't display some text on certain pages.

    I've noticed that on some pages, Firefox doesn't display certain text. I have the newest version of Firefox installed and my flash and java are updated. The text displays fine on Chrome and IE. Please see my example in the screenshots of the stevenson.edu webpage. Does anybody know what I can do to fix this problem or if there is some sort of plugin I am missing to display certain content? Thanks.
    Screenshot of Firefox: http://i47.tinypic.com/123359k.jpg
    Screenshot of Chrome: http://i48.tinypic.com/2uy3ay1.jpg

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Verizon Messages App doesn't display incoming texts

    The VERIZON MESSAGES APP doesn't display all incoming messages.
    This is true for the WEB APP i use on my windows 7 PC
    Iv'e tried multiple browsers and this does not help
    It is also a problem with both my android tablets running the google play app from verizon
    I'm not sure but, it appears that maybe this is related to ATT users.

    This does NOT work on the Galaxy S3.
    Airplane mode ON, Wifi ON, No network mode is available in Airplane mode.  So...only wifi is available.  When I try to send a text with only wifi available I get "Network not available.  The message will be sent when the network is available"
    BUT...On my Galaxy Tab 2 (non-verizon), This DOES work.  On the tab 2 with only wifi available, I CAN send text messages using Verizon Messages.
    So....again...
    On Galaxy Tab 2 with only WiFi available...texting with Verizon messages DOES work.
    On Galaxy S3 with only WiFi available...texting with Verizon messages DOES NOT work.
    Please fix Verizon Messages to work over WiFi using Galaxy S3.
    Thanks,
    Abe

  • Bex report doesn't display full text information......

    Hi Experts,
    My bex report is not displaying full text information.
    I have set that particular infoobject length as 40 and also have selected long text and Long Description in Bex Tab of the InfoObject.
    In my DSO the data is available in complete lenght but in my Bex report it just displays half information
    Instead of displaying Service Order Released its displays Service Order Rel
    Can anyone help me to resolve this issue please.
    Thanks

    Hello,
    Setting up the BEx Property for Object, is not sufficient enough to display in the query output. You can always overwrite the object level settings in the query designing.
    Moreover, when you create a query, system always overwrite your object level settings and apply the query level settings.
    Make sure, you have selected Long Text in the query for that characteristic.
    - Danny

  • Data merged text into boxes assigned for InCopy doesn't display merged text, only the placeholder

    I think I found a bug.
    I created an InDesign document for use in InCopy for a client. The end goal is to data merge a whole array of documents for the client, who can open them in InCopy and update the text.
    I designed the layout
    I created the assignments for InCopy (which stories and images the InCopy user could edit)
    I then set up a data merge to pre-populate content like contact details, portrait photos etc
    When I merged the final document, two things happened.
    The images didn't respond to the Content Placement Options (fill proportionally), they all just got placed at 100% size ratio (they did centre though)
    The data merge fields didn't populate the placeholders with the relevant text. All of the fields just came up as their placeholders <<Phone>> <<Fax>> etc
    As soon as I deleted the assignments and re-merged, the image settings were being applied and the fields were populating the documents.
    I'm using the latest version on CC, 10.0.0.70.
    Anyone else had this issue? It's very specific but it is a bug.

    A couple of other users have reported similar problems, and it appears to be a bug when you go from preview to merge. If you undo out of preview, or skip it entirely, before hitting themerge button, does it work?

  • Javascript function doesn't display alt text of the initial image in recordset

    I have the following javascript code to display the alt text
    database field of the current moused over thumbnail image. All
    works fine except for the initial image's alt text. It does not
    display:
    PAGE EXAMPLE:
    http://www.canchair.com/new_web_product_detail.asp?ProductID=198&ProductFamily=1&ProductFa milySub=10
    HEAD SECTION JAVASCRIPT CODE:
    <script type="text/javascript">
    <!--
    var currentImage;
    function showBigImage( isource,bigImage,header ) {
    var theImage = document.getElementById( 'largeimage' );
    theImage.src = isource;
    currentImage = bigImage;
    document.getElementById('photoHeader').innerHTML=header;
    document.getElementById( 'largeimage' ).alt=header;
    PAGE CODE:
    <a href="javascript:;">
    <img src="imagescript.asp?path=<%= images.Fields.Item(
    "url_img" ).Value %>&Width=36" border="0"
    onmouseover="showBigImage( 'imagescript.asp?path=<%=
    images.Fields.Item( "url_img" ).Value %>&Width=250','<%=
    images.Fields.Item( "url_img" ).Value
    %>','<%=(images.Fields.Item("alt_img").Value)%>' )" alt=""
    /></a>

    Why don't you show the rendered code? (Not server code)
    Mick.
    aonefun wrote:
    > I have the following javascript code to display the alt
    text database field of
    > the current moused over thumbnail image. All works fine
    except for the initial
    > image's alt text. It does not display:
    >
    > PAGE EXAMPLE:
    >
    >
    http://www.canchair.com/new_web_product_detail.asp?ProductID=198&ProductFamily=1
    > &ProductFamilySub=10
    >
    > HEAD SECTION JAVASCRIPT CODE:
    >
    > <script type="text/javascript">
    > <!--
    > var currentImage;
    > function showBigImage( isource,bigImage,header ) {
    > var theImage = document.getElementById( 'largeimage' );
    > theImage.src = isource;
    > currentImage = bigImage;
    > document.getElementById('photoHeader').innerHTML=header;
    > document.getElementById( 'largeimage' ).alt=header;
    >
    > }
    >
    >
    > PAGE CODE:
    >
    > <a href="javascript:;">
    > <img src="imagescript.asp?path=<%=
    images.Fields.Item( "url_img" ).Value
    > %>&Width=36" border="0"
    onmouseover="showBigImage( 'imagescript.asp?path=<%=
    > images.Fields.Item( "url_img" ).Value
    %>&Width=250','<%= images.Fields.Item(
    > "url_img" ).Value
    %>','<%=(images.Fields.Item("alt_img").Value)%>' )" alt=""
    > /></a>
    >

  • New releases doesn't display all text

    I've noticed a problem wtih the music store and I can't find any similar problem searching through the archives here. Any help in fixing the problem would be appreciated.
    In iTunes here when I go to the Music Store the "New Releases" box seems to be too small to display all the information. The second row of songs has the artist name cut off except for the very tops of the letters. The "Exclusives" and "Staff Favorites" boxes also trim off the very bottom of the artist names but those are still readable.
    Is there some way to reduce the text size so that I can read the information in the "New Releases" box?
    Thanks for any help.

    Seems like newer updates to iTunes fixed this problem.

  • Safari doesn't display some title text on websites properly...

    Hi, I get strange problems on Safari. Safari doesn't display title text on some websites. It is replaced with some mathematical fonts like small numbers, figures and etc... But it happens to only title text. All other body text is fine. I thought fonts caused this issue, then I checked duplicated ones and deleted related files from preferences, cleared cache, reset Safari and rebooted. However I didn't get any luck...
    Does anyone know how to fix this issue?

    You haven't given enough details to reproduce or attempt a solution. What website(s) are you visiting that exhibit this problem, and when did it start? Have you tried setting up a new user account and testing those sites in that account? Did you attempt to visit those sites using another browser such as Camino or Firefox to see if the problem manifests itself in either of those?
    Post back with details.
    Mulder

  • Safari 2.0.3 not displaying buttons or pictures

    On many web sites, Safari doesn't display buttons or clickable images on web pages. I have checked the "display images when the page opens" preference item. I have tried emptying the cache and resetting safari and deleting the com.apple.safari.plist file. I know the buttons are there since with the appropriate preference set I can toggle through them, and they are all there on another Mac using Safari 2.0.2 on the same network.

    (I'm jumping in here as a newbie to Apple's discussions, so please forgive me if my posting etiquette is lacking and feel free to educate me accordingly.)
    I have been looking for weeks for the answer to Joe Veranth's problem because I am having the EXACT same issues with images not loading on sites that previously loaded perfectly. I am on a G5 running OS 10.4.6 and Safari 2.0.3. I am not behind a firewall. (Note: these problems are not occurring for me at work, where I run a G4 with the same OS and Safari versions. All the settings are exactly the same.) I have tried resetting Safari, changing settings for blocking/not blocking popups, loading images when page is called, trashing Safari prefs, etc. No luck.
    I just tried andyBall_uk's advise and eliminated all my internet plugins, then restarted Safari. Nothing changed. Still no images. Even Apple's home page isn't loading right.
    I cannot positively connect the death of my Safari images with any particular update or download. I do know it's gotten progressively worse over the last weeks. I am suspecting the latest OS security update may have had an effect. Comments?
    Sorry so long-winded, but I want Joe and anyone else experiencing this to know you are not alone. If anyone figures this out your are a hero.
    Until then, Firefox is the way to go.

  • UITextView doesn't display the first part of the text

    I am having a trouble with UITextView.
    When a text view is loaded for the first time after my app is launched (the text view is created and text is filled from saved data), the text view displays from the first letter of the text.
    But once the text view becomes first responder, then disappers by pressing back button on a navigation bar, and come back to the text view again by using a control on the previous view (a button for instance), the text view always displays the last part of the text.
    This happens after the text view becomes first responder. What is changed before and after the text view becomes first responder? And how can I avoid this to display the first letter in the text view always when it appears?
    I tried resignFirstResponder, selectedRange, and scrollRangeToVisible: in viewWill/DidAppear/Disappear but all of them didn't work.

    Thank you iPhil_good, but it didn't work ...
    And RickMaddy, I don't know how to post image but as it is UITextView, I use text to explain.
    There are two views, home view and text view, and UITextView is in the text view. The first time the UITextView appears (slides in from the home view), it looks like:
    Test[1] Test[2] Test[3] Test[4]
    Test[5] Test[6] Test[7] Test[8]
    Test[9] Test[10] Test[11] Test[12]
    Suppose the text starts at Test[1] and ends at Test[200], and just the first 50 are visible within the size of the UITextView.
    Once I tap on the UITextView, keyboard appears and UITextView becomes first responder (editable). Then I go back to the home view using back button on the navigation bar.
    Then again I move back to the text view from the home view,. This time it looks like:
    Test[189] Test[190] Test[191] Test[192]
    Test[193] Test[194] Test[195] Test[196]
    Test[197] Test[198] Test[199] Test[200]
    I would like to display the text from Test[1] whenever the view appears. If the UITextView hasn't become first responder, this doesn't happen and the text starts from Test[1] when it appears. But once the UITextView becomes first responder, the UITextView always displays Test[200] at the bottom of the view when it appears.
    I am not sure but it looks as though some internal state of UITextView changes when it becomes first responder, but isn't reset even after it resigns first responder.

  • Mail doesn't display full email text, only displays the subject line

    Mail doesn't display full email text, only displays the subject line.
    My preview shows first three lines of email, but when I chose the email specifically mail doesn't display any lines of text.  Been this way for about ten days.  Please help.  Ben

    Awesome.  Rebooting the phone worked.  I had never turned the phone off before (for the next guy - you hold down the "sleep" button for longer than you'd think and that'll do a full shutdown).  thank you for your help.

  • Button Text on Form not Displaying

    The following was posted by PGMR1998 at 09:58am on Feb 22, 2008 (Pacific) but got no response:
    I am using Adobe Acrobat Pro 8, and I have added a button to reset the form fields. The button has some text on top, but the text on the button does not display until I click down on the button in the preview pane. How can I make the button text visible always? Thanks in advance for your support..
    I'm having the same problem with the submit button on a form in Acrobat 9 Pro Extended. No matter what I do, the button text does not display. Any ideas?

    What font are you using? What is the font color set to? What font size? Can you post a sample somewhere?
    You specify the label text for a button using the Options tab of the Button Properties dialog. Describe each of the settings on this page. In particular, you can have a different label for the Up, Down, and Rollover states.
    George

  • Cp5 - Text Entry Box - Fill Alpha =0 Text doesn't display

    In previous versions I was able to select a trans background for text entry boxes. They've created a Fill and Stroke option where I can select Fill Alpha=0 (tranparent) but when I select that, the text doesn't display in the text box when I type, as it did in the previous version. When I go to the style editor, the preview displays correctly. My text colour is black and the image is white.
    Thoughts?
    M-

    It is aknown bug that they are working on. Alas.

  • I want  to display a text when button pressed

    Hi guys
    I want to display a text when a button is pressed , but the compiler says cannot resolve variable text ,can you please help me
    here is my program
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;   public class sannaa extends JFrame implements  ActionListener {[code] public sannaa( )  {
    super("����� ������" ); setLayout(new FlowLayout()); TextField text = new TextField(20); JButton ok=new JButton( "return"   ); add(text); ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(    ); 
    JLabel hellolabel=new JLabel("google"); hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);   String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
                             "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2), new Boolean (false)},
    {"Sharon", "Zakhour", "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10), new Boolean(false)} };
    JTable table = new JTable(data, columnNames); JButton enter=new JButton( "search"   ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
                                           100)); enter.setForeground(Color.blue); contentPane.setBackground( Color.white); for(int i=0;i<10;i++) {[code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout( )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START); panel.add(table, BorderLayout.PAGE_START); panel.add(hellolabel,  BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout()); panel.add(table.getTableHeader(),BorderLayout.PAGE_START )  panel.add(table, BorderLayout.CENTER); panel.add(hellolabel,BorderLayout.PAGE_END);   setVisible(true); }
    public void actionPerformed(ActionEvent   e  ) {  [code] text.setText("Button Clicked ");
    public static void main (String [] args) {[code] sannaa van=new sannaa( );
    } }  

    Thanks
    I have changed my program to the following and its compiled truely, but when I press thte button in the application no text appeared?
    help me please
    import  java.awt.Color .*;   import java.awt .*; import java.awt.event.*; import java.awt.event.*;   import javax.swing.*; import javax.swing.JTable.*;    public class sannaa extends JFrame implements  ActionListener { 
    public sannaa(   ) {
    super("����� ������" ); JButton ok=new JButton( "return"   );
    ok.addActionListener(this);  
    Container   contentPane  =  getContentPane(
    JLabel hellolabel=new JLabel("google");
    hellolabel.setForeground(Color.black); hellolabel.setBackground(Color.blue);
        String[ ] columnNames =
    {"First Name",   "Last Name", "Sport",
                             "# of Years",
      "Vegetarian"};
                            Object [    ][     ] data =
    {"Mary", "Campione", "Snowboarding", new Integer(5),
    new Boolean(false)},
    {"Alison", "Huml", "Rowing", new Integer(3), new
    Boolean(true)},
    {"Kathy", "Walrath", "Knitting", new Integer(2),
    new Boolean (false)},
    "Sharon", "Zakhour", "Speed reading", new
    Integer(20), new Boolean(true)},
    {"Philip", "Milne", "Pool", new Integer(10),
    new Boolean(false)} };
    JTable table = new JTable(data,
      columnNames); JButton enter=new JButton( "search"
         ); ok.setBackground(Color.pink); ok.setForeground(Color.white); JFrame frame=new JFrame("EL  "); enter.setMaximumSize(new Dimension(900,
      100));
    enter.setForeground(Color.blue); contentPane.setBackground( Color.white);
    for(int i=0;i<10;i++) {  [code]JButton rami=new JButton( ""+ "" +i );
    contentPane.add(rami);
    rami.setBackground(Color.blue); }
    contentPane.add(ok);
    JPanel panel=new JPanel(new
      BorderLayout(500,500) ); contentPane.setLayout(new FlowLayout(
      )); contentPane.add(panel); panel.add(enter,  BorderLayout.PAGE_START);
      panel.add(table,
      BorderLayout.PAGE_START); panel.add(hellolabel,
       BorderLayout.PAGE_START); panel.setBackground( Color.white ); panel.setLayout(new BorderLayout());   panel.add(table.getTableHeader(),BorderLayout.PAGE_START ) ;
       panel.add(table, BorderLayout.CENTER);
    panel.add(hellolabel,BorderLayout.PAGE_END);
       setVisible(true); }
    public void actionPerformed(ActionEvent   e  )
      {  [code] TextField text=new TextField ("") ;
    text.setText("Button Clicked     ");     }
    public static void main (String [] args)
    sannaa van=new sannaa( ); } }  

  • Text doesn't display in flash

    my flash movies work fine on every computer i have tested
    (about 10 both macs and pc's) but i have found one where the flash
    movies play (images and animation appear fine) but the text (static
    text) doesn't display at all! there is also no streaming video. the
    audio works just fine but the video is not there. is this an
    internet options configuration problem with this one machine or is
    this a bigger problem that is going to bite me in the butt when i
    launch my site.
    also- do any of you know of any beta testing services that
    will test my site on lots of different machines with different
    configurations so that i can feel confident that my site is robust
    enough for a lot of users?
    thank you

    Hey, yall - I'm having the same problem. Anybody got
    anything???
    The text - even static/non-animating text - is not appearing
    on some peoples browsers. Not only that, but it also doesn't appear
    in my client's Contribute program - f'in' wierd!
    http://christina-ammon.com/index.html

Maybe you are looking for

  • CD/DVD-drive does not read/write properly

    I can not write any dvds or cds because every time a message pops up with an error. I tried different burning programs with different cd manufacturers and it still does not seem to be a problem on other computers having the same program and using sam

  • Exception/error messages from remotely deploying sun application server 8.2

    Hi I have a solaris network with some servers running sun application server 8.2. When I deploy applications to these application servers (using ant) from a single server connected to them on the netwrok, sometimes exceptions are thrown. What is done

  • Business area wise Trail balance is not showing balance

    Dear all , I am facing problem in f.08. We have 5 company code ,8 Business area, We have Activated Business area wise Balance sheet in OBY6.and assigned Plant division and Valuation area . I am activated document splitting, Here also i maintained Bus

  • Count number of rows

    is there a more elegant way to count the number of rows in a table. Only way I can think is to make a hidden column populated with the row numbers and then use a max function. thanks

  • Structure of Cubes

    Hi,    Where i can see the structure of these cubes i.e infoobjects 0SD_C01 0SD_C05 0FIAR_C02, 0FIAR_C03