Only first button gets displayed

I'm creating a panel with a bunch of buttons. What the class does is accepts an array of Actions and creates a button for each action. For some reason, only the first button is displayed. When you resize the window, all of the buttons become visible. I tried button.setVisible() with no luck. I tried to repaint() in the panel class, again a loser.
Any suggestions would be appreciated.
Thanks,
-rob
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class WestPanel extends JPanel
     public WestPanel( Action[] actions )
          Dimension dim = new Dimension( WIDTH, HEIGHT );
          setSize( dim );
          setLayout( new GridLayout( actions.length, 1 ));
          setBackground( Color.green );
          // Looping through actions to create panels
          for( int i = 0; i < actions.length; i++ )
               JButton button = new JButton( actions[i] );
               button.setFont( new Font( "", Font.BOLD, 18 ));
               button.setSize( new Dimension( WIDTH, BUTTON_HEIGHT ) );
               add( button );
     private static final int WIDTH = 200;
     private static final int HEIGHT = MainInterface.HEIGHT;
     private static final int BUTTON_HEIGHT = 50;
}

Thanks anyway. . .I found the problem.
I hate when that happens, but I found a hint to my problem when I spent a little more time reading the other threads.
-rob

Similar Messages

  • Adobe form only first page is displayed

    hi all,
    I have created two pages under the Master page but only the First page is getting displayed. Both are set to visible. Whatelse could be the reason. Thanks.
    Regards,
    FS

    Hi,
    Can you please elaborate more on this. Have you added 2 body pages or 2 master pages?
    If you have added 2 body pages and if they are empty then they wont get displayed. You will have to insert a subform into the page. Only then you would be able to see the extra two pages.
    Thanks,
    Radhika

  • Approval Preview (Only first approver is displayed after 1 approval step)

    Hello Everyone!
    We have a scenario in PROD wherein the approval preview doesn't show all approvers in the screen. At first, when the Contract document is prepared (not yet approved/created) and then the approval preview is displayed, the screen correctly shows the 3 approvers with status 'To be approved by'. However, when the document was created and that the first approver already approved the document, the approval preview only shows 1 approver line in the approval preview (table) with a status 'Approved by'. The next 2 approvers are not displayed in the screen.
    When we checked the document in BBP_PD and in SWI1, the workflow correctly identified the next approvers and even sent some notifications for them to approve. This is more on the screen problem. The approval preview (table) only shows the 1st approver who approved the document. We want to see all the approvers (with different status) in the approval preview so that we may know who already approved the document and who are the ones to still approve the document.
    We only experience this in PRD, and this scenario (document) works both in DEV and QAS. Please let us know the SAP Notes related to this. The affected documents are Contract and PO.
    Thanks and regards,
    Reymar

    Hi Masa,
    There were no applied notes related to approval preview (table) in DEV and QAS system.
    We have SRM 5.0 component version; SRM Server 5.50 ; SP13.
    Would you know any cause of this issue?
    Thank you very much.
    Regards,
    Reymar

  • RH 8 / IE7 : only first call to display help works ...

    Hi everybody,
    I made a webhelp with RH 7 and the call from the website to display the help worked well (with Firefox and IE).
    But since i upgraded it to RH 8 i have an issue with the webhelp call (only with IE, it workds well with FF) : when i call the webhelp the first time it works but if i don't close the new window and i call a new page i have a blank page ("about:blank").
    This issue didn't exist when i was with RH 7 and it happens only with Internet Explorer.
    Then i tried to create a webhelp directly with RH 8 beacuse i thougth it was the upgrade from RH 7 to RH 8 which could be the reason ... but even with a purely RH 8 webhelp the issue still exist.
    Can someone help me ? or have an idea about that issue ?
    Thank you ! (and i'm french so i'm sorry about my probable grammatical mistakes ... ^^)

    Praful,
    I'm not sure that i understood exactly what you ask but i'll describe with more precisions my situation.
    The webhelp is called from HTML pages. In each page i put :
    1/ the Javascript function from the folder \Adobe RoboHelp 8\CSH API\JavaScript :
    <script type="text/javascript" language="JavaScript1.2" src="RoboHelp_CSH.js"></script>
    2/ the link to call the webhelp. Exemple for topic ID=1 :
    <a href="javascript:RH_ShowHelp(0, 'webhelp/test_sinoe.htm>NewWindow', HH_HELP_CONTEXT, 1)">Help</a>
    If you want to test, i attach to this message a zip file which contains the test files i used on my computer :
    - a webhelp (with only 2 topics)
    - 2 web pages with call to the webhelp
    - the JS file
    If you want to reproduce the bug, you can unzip this archive and try to call the webhelp with IE from page 1 : the webhelp will open a new window.
    Keep that window opened and call the webhelp from page 2 : you will see that blank page thing ...
    thank you again to helping me
    rémi

  • In Search - Only first ten name displays

    Dear All,
    When I search for a name,only top ten relevant names pops out,for more information please check the attachment. is it bug or Google chrome impact ?.
    Thanks
    Agasthuri
    PS: I was looking for name "Amit Srivastava" the search result pop out only ten names, actually the user name "Amit Srivastava" is more than ten, I am unable to scroll the list...

    Hi Doss,
    You can click on select people option at rigth side(from your screen, against to search function)
    on next screen, click on search tab and  scn user name and search it.you will get same/similar names with more pages.
    Thanks

  • Only first call to display help works, subsequent calls produce blank html

    I have RoboHelp 7 HTML, IE7, and windows 2003. When I make a
    call to RH_ShowHelp in the javascript library the context sensitive
    (or main) topic is shown just fine. Once that 2nd html window is
    open though, any subsequent request to display any help topics
    results in that 2nd window going blank (title is about:blank, and
    viewing source shows just <html></html>). If you close
    the 2nd window between each call it works fine.
    Also note that if I try this from my windows XP machine with
    the same version of IE it works just fine. I think this may have
    something to do with a security setting in 2003 or something, but
    it could be a bug in the RH script too. Either way, I'd like to be
    able to identify the cause and fix it or at least document the
    cause.
    Thanks

    Welcome to the forum.
    This is really a developer issue and most of us here are
    authors. I have experienced something similar in that second calls
    failed. There is something on that in the Calling WebHelp Using
    URLs on my site. I don't know if that will help get you on the
    right track as you are not using that method.
    Sorry I cannot help more.

  • HTML code gets displayed

    I'm running the Weblog service with OS 10.4.6. When creating an entry on a weblog most of the HTML code gets translated correctly; image links, html links, etc. But on certain HTML tags the code gets displayed and it's not translated. For Example if add a horizontal ruler the html tag is displayed.
    When I use the tag <hr /> the horizontal ruler does not get display only the tag gets displayed on the weblog.
    Is there a way to allow certain HTML tags to be translated?
    X-Serve   Mac OS X (10.4.6)  

    Hi,
    I will now attempt to shed as much light on this topic as possible...
    There are two main buffers where stuff gets stored before going to the ResponseOutput; the JspWriter out, and the pageContext.include(). (perhaps you are using this method in your tag). The include method sends it's stuff to the ResponseOutput immediately, where as the JspWriter does not... i don't think? The problem is that the include method is supposed to flush the JspWriter before processing the include and i found that it didn't do a very good job...
    "The current JspWriter "out" for this JSP is flushed as a side-effect of this call, prior to processing the include. "
    The solution is to manually flush the JspWriter before...
    JspWriter.flush();
    hope this helps!
    Randy

  • Error msg not getting displayed on first time button click in SRM UI

    Hi,
    I have created a custom message in an impl. of SRM BADI BBP_DOC_CHECK_BADI in which one message is getting populated correctly in debugging. Again, when I check PO, the message is getting displayed correctly, however when I click on order button for the first time, it is not getting displayed but on subsequent occassion, it is working fine. Just wonder, why this is not happening for first time. Any input ??
    Regards,
    Ni3

    Hi Virender,
    I found a note 1239499 close to my requirement but not valid for SRM release 5.0. Is it the same, you wish to referred or is there any other?
    Regards,
    Ni3

  • RoboHelp10 - If we click on 'Show' link(button), blank page get displayed

    I am using,
    RoboHelp10
    IE9
    MSVS2010
    Win7
    Tried with below option,
    Flash Help -> we are working with it and has problem for our desktop/standalone wcf application.
    Flash Help Pro - > We know that RH server is req. for this option
    Web Help Pro- > We know that RH server is req. for this option
    Trouble in (Flash Help),
    1. When we invoke Flash Help with respective topic ID, it will not show requested topic page along with TOC, it will show default topic/page, which we set at the time creating help. Also it will display "Allow Blocked Content" button at the bottom. If we click on "Allow Blocked Content" it will display the above requested topic page correctly, but without TOC pane. This time we can see 'Show' button(link) on the browser. If we click on 'Show', blank page get displayed.
    2. When we are displaying content with option 'OptionConstants.CSH_DISPLAY_CONTEXT' it only show topic and it won't show me the TOC along with current selected topic page.
    3. When we are displaying content with option 'OptionConstants.CSH_DISPLAY_CONTEXT' it only show topic with 'Show' link. When we click on 'Show' link, blank page get display.
    4. Tool gives us facitlity to publish the Flash help, where we can choose the folder. This means that it publishes folder structure. We are using this folder structure (the published one) and on the top of that we are not getting expected(blank page get display) result.
    5. Published content does not contain any mapid/mapfile, if so whow it works correctly with RH development studio.
    6. Skin we were using 'beautiful_vista_flash.fhs'
    7. We build RH after setting Mozilla as the statup browser. We tried with Mozilla and IE but still our application opens help in IE. So not able to test in Mozilla.
    Please assist to resolve it.
    Thanks in advance.

    Thank you for your input.
    Working with "FlashHelp"
    Our req is files pages are deployed along with desktop(WPF) application locally and not on webserver.
    Referred following link,
    http://blogs.msdn.com/b/ieinternals/archive/2012/06/20/loading-local-files-in-enhanced-pro tected-mode-in-internet-explorer-10.aspx
    http://msdn.microsoft.com/en-us/library/ms537628%28v=vs.85%29.aspx
    and added below one liner code,
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- saved from url=(0014)about:internet -->
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    in each pages in the 'ProjectManager''s Project Files. And published the content of "FlashHelp".
    Again the same problem("Allow Blocked Content" button apprears and blank page get displayed, as explained in option #1 of the first post) persist.
    If i choose page and do viewsource then it will show blank line in place of <!-- saved from url=(0014)about:internet -->
    Code is as given below,
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    We need to know that how to implement 'Mark of the Web' using RH development studio?
    Your input are appreciated.

  • Values not getting displayed from first page of the report.

    Values in the report is getting displayed from second page.
    First page in the report only displaying the report title and column names.
    Secone page onwards, data and column names are generated.
    Can any one please help me, with the cause of the problem.

    what reporting tool?
    Interactive Reporting
    Financial Reporting

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • My system preferences have suddenly disappeared! I have the language and text icon but that is the only icon that is displayed! where have my system preferences gone and how do i get them back??

    I went to my system preferences today and they are all gone except for my language and text icon! I have the language and text icon but that is the only icon that is displayed! where have my system preferences gone and how do i get them back??

    Double click on the picture of the HD on your desktop, then look at the bottom of the window that opens.
    First check the S.M.A.R.T. status on your HD: Applications > Utilities > Disk Utility > in the panel at left, select the first item in the list/your HD mechanism > look atthe bottom of the main window next to S.M.A.R.T. status and see if it says “Verified” or something more ominous like “Failing.”
    If S.M.A.R.T.status is "Verified," run Repair Disk: Boot from install disc (insert disc > restart > immediately hold down c key and keep holding it until you see “Preparing Installation”) > at first screen select the language and click Continue > click on the Utilities Menu in the menu bar > open Disk Utility > select your HD in the panel on the left side > click Repair Disk at bottom of main window. Run this at least twice, and keep running it until it says “appears ok” twice in a row. If that doesn’t happen, you may need a stronger utility such as DiskWarrior or if the directory is damaged beyond repair, you may need to reinstall the OS, or you may have a damaged HD (repair utilities can only repair the directory structure, not the HD itself). When this is finished, quit Disk Utility, quit the installer, and restart. Once booted normally, go to Applications > Utilities > Disk Utility and run Repair Permissions.

  • Tree hierarchy of time displays only first character

    The Database is Teradata and I am using OBIEE 11g.
    I have time hierarchy and I have used this tree in reports. But when I drill down on the tree, only first letters of the caption are displayed not entire string.
    Eg: instead of Q1-2010, just Q gets displayed next to the + sign.
    If I drill on quarter, instead of showing "April", it shows "A".
    If I just display the column or the column is in form of the usual 10g drill down, then it is fine.
    Could anyone suggest a solution for this ?

    This happens to be a bug in obiee 11g. SR has been raised.

  • I'm getting a similar message: There was an error opening the database..." and the only option I get is a "quit" button. Help!

    I'm getting a similar message: First it offers me chance to repair - but if I it repair, it crashes.  Then if I select do not repair I get the following warning: There was an error opening the database..." and the only option I get is a "quit" button. Help!

    From the path in the error message you posted it appears that the library is not on your internal (root) drive.
    What type of disk is the library on and how is it formatted?
    The crash log Léonie is referring to is what is printed out when Aperture crashes. You wrote that Aperture crashes in your first post so if the app crashes you must have gotten a crash report.
    Message was edited by: Frank Caggiano

  • Object browser displays only First 31 columns in Data section of a table.

    I need to download data from a table which has almost 60 columns. When i selected table from object browser and clicked on data section of this table, only first 31 columns are displayed and when clicked on download, only the data for those 31 columns is displayed. How to download data of all colums of this table

    Hello Jim
    I have the same problem, but my limit is 21 columns. I think the limit is caused by the DataReader SchemaTable. Check the following value:
    IDataReader.GetSchemaTable().Columns.Count
    Columns in the SchemaTable are Metadata (ColumnName, ColumnSize, DataType, AllowDBNull...), the columns that are selected with the DataReader are stored in the SchemaTable Rows Property.
    For Oracle and SQLServer i used this workaround:
    DataTable dataTable = IDataReader.GetSchemaTable();
    while (dataTable.Columns.Count < dataTable.Rows.Count)
        dataTable.Columns.Add("Dummy" + dataTable.Columns.Count.ToString(), typeof(bool));
    I think developpers of CR use the Columns.Count instead of Rows.Count property when getting the data out of the DataReader.
    Regards,
    Walter

Maybe you are looking for