Jbuttons are not visible

Hi,
Please Help.
I have defined a Jpanel which contains some buttons. This panel is initially collapsed and there is an expand button, clicking on which will expand the panel and buttons should be visible.
Sometimes the buttons are not visible after expanding the panel, or only some of them are visible.
This problem is not reproducible everytime.
For expanding and collapsing the Jpanel i am chaging the bound settings of the panel by using function
setBounds().
Can someone please help me with this issue?
Thanks

My intention was not to annoy anyone by posting my problem at two different forums. Sorry if i did that. I just wanted to get more opinions on this problem.
The suggestions i received on this one was mainly to use 'Layout Manager'. I tried using that but was running into other issues. If i have to use Layout Manager then i guess i have to change the design of the full window. I cannot use layout manger on just the part of the window which is giving problem (please let me know i am wrong). Also, I am new to Swings and not much familiar with 'Layout Manager'.
Is there a way to resolve this problem without using layout manager. This is not reproducible. It happens only in production.
I am pasting my code below -
I have modified the code as per the suggestions received from the forum to include repaint() and revalidate() methods.
The part i added is in bold. Please let me know what changes i should do to improve this and resolve the issue.
public static void main(String[] args) {
          initGUI();          
          frame = new JFrame();          
          frame.getContentPane().add(this);          
          frame.setBackground(LIGHT_BLUE);          
          frame.setTitle("ABC");
          logoImage = imgSPIcon.getImage();
          frame.setIconImage(logoImage);          
          frame.setSize(286,298);
          frame.setResizable(false);          
          frame.setVisible(false);  
                frame.getContentPane().validate();  
                frame.validate();     
private void initGUI() {
          try {          
               this.setSize(294, 280);
               this.setBackground(LIGHT_BLUE);
               this.setName("ABC");
               getContentPane().setBackground(this.LIGHT_BLUE);
               getContentPane().setLayout(null);               
               this.setFocusable(false);
               //collapse button used for expanding and collapsing the dial panel
                         m_btnCollapse = new JButton();
                         BottamPanel.add(m_btnCollapse);
                         m_btnCollapse.setBounds(163, 0, 112, 21);
                         m_btnCollapse.setIcon(imgExpandDialpad);
                         m_btnCollapse.setBorder(BorderFactory.createCompoundBorder(null, null));
                         m_btnCollapse.setBackground(new java.awt.Color(177, 201, 224));
                         m_btnCollapse.setContentAreaFilled(false);
               //Dial panel
                    DialPanel = new JPanel();                    
                    //getContentPane().add(DialPanel);                    
                    DialPanel.setBounds(0, 251, 280, 0);                    
                    DialPanel.setLayout(null);
                    DialPanel.setBackground(bkColor);                    
                         m_btn1 = new JButton();                         
                         m_btn1.setIcon(imgDPOne);
                         m_btn1.setContentAreaFilled(false);
                         m_btn1.setBounds(79, 0, 35, 28);
                         m_btn1.setBorderPainted(false);
                         DialPanel.add(m_btn1);
                         m_btn2 = new JButton();                         
                         m_btn2.setBounds(120, 0, 35, 28);
                         m_btn2.setIcon(imgDPTwo);
                         m_btn2.setContentAreaFilled(false);
                         m_btn2.setBorderPainted(false);
                         DialPanel.add(m_btn2);
                         m_btn3 = new JButton();                         
                         m_btn3.setBounds(161, 0, 35, 28);
                         m_btn3.setIcon(imgDPThree);
                         m_btn3.setContentAreaFilled(false);
                         m_btn3.setBorderPainted(false);
                         DialPanel.add(m_btn3);
                    //includes more such buttons
                                DialPanel.validate();
                    getContentPane().add(DialPanel);               
               //adding mouse listner for the collapse button
               JavaPhoneMouse aJavaPhoneMouse = new JavaPhoneMouse();
               m_btnCollapse.addMouseListener(aJavaPhoneMouse);
     //mouse listner.
     class JavaPhoneMouse extends java.awt.event.MouseAdapter {
          public void mouseClicked(java.awt.event.MouseEvent event) {
               Object object = event.getSource();
               if (object == m_btnCollapse)
                    m_btnCollapse_MouseClicked(event);
     //On expanding the dial panel the dial panel is expanded(the size changes) but the buttons are invisible. 
     void m_btnCollapse_MouseClicked(java.awt.event.MouseEvent event) {
          //if the dial pad is in expanded form it will collapse else it will be expanded.
          if (isDialPadCollapsed == false) {               
               DialPanel.setBounds(0, 251, 280, 0);
               DialPanel.revalidate();
               DialPanel.repaint();                              
               BottamPanel.setBounds(0, 251, 280, 21);
               m_btnCollapse.setIcon(imgExpandDialpad);               
               this.setSize(280, 277);               
               frame.setResizable(true);
               frame.setSize(286, 298);
               frame.setResizable(false);
                        frame.getContentPane().repaint();
               frame.repaint();                              
               isDialPadCollapsed = true;
          } else {               
               this.setSize(280, 408);               
               frame.setResizable(true);
               frame.setSize(286, 430);
               frame.setResizable(false);               
               BottamPanel.setBounds(0, 384, 280, 21);               
               DialPanel.setBounds(0, 251, 280, 133);     
                        DialPanel.revalidate();
               DialPanel.repaint();
               frame.getContentPane().repaint();
               frame.repaint();          
               m_btnCollapse.setIcon(imgCollDialpad);
               isDialPadCollapsed = false;
{code}
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Follow-on documents are not visible in MIRO in TEST server, awsys = PRD300.

    Dear Experts ,
    The Test Server was refreshed around mid-June 2011 with data of
    Production Server. The follow-on documents are not visible for the
    invoice documents in MIRO in TEST server due to value in tables
    BKPF,RBKP : field : AWSYS = PRD300 .
    The newly created Purchase Orders after the refresh, the accounting
    documents can be seen for the Goods Receipt (MIGO_GR-display) and
    Invoice documents (MIRO).
    we had already raised this issue in March & got the feedback from SAP
    as shown below.
    accordingly we have developed & run the program "zzlogsys2" which
    updates the Logsys/Awsys field from PRD300 ( of production server ) to
    that of the current server i.e. TST300 as required.
    after which the FI documents for the material documents are visible in
    MIGO,but follow-on documents are not visible for the invoice documents
    in MIRO.
    we have Checked notes 781498 and 28958 to see if the logical system is
    correctly assigned , where we found that in table RBKP after entering document number, Fiscal Year , the
    Field AWSYS is "PRD300" & not "TST300" as it should be. We will take up the activity of updating table RBKP
    also as we are currently doing for tables MKPF & BKPF.
    But to have clear picture as to what we are doing is correct , pl
    advise about the following :
    1) Is it a correct process done by our SAP-Basis team , that every time
    any Server ( e.g. Test or Quality ) is refreshed with Production server
    data, the Field AWSYS in various transaction tables gets value as
    "PRD300" which then is required to replaced by running program such as
    ZZlogsys.
    REPORT ZZLOGSYS.
    TABLES: T000, MKPF.
    DATA: NEW_SYS LIKE MKPF-AWSYS.
    PARAMETER: OLD_SYS LIKE MKPF-AWSYS.
    SELECT SINGLE * FROM T000 WHERE MANDT EQ SY-MANDT.
    NEW_SYS = T000-LOGSYS.
    CHECK NOT NEW_SYS IS INITIAL.
    UPDATE MKPF SET AWSYS = NEW_SYS
    WHERE AWSYS = OLD_SYS.
    WRITE:/ 'Number of updates: ', SY-DBCNT.
    2) if the above process is correct & normal , then which are the other
    tables in a particular server ,apart from tables MKPF,BKPF,RBKP , which
    needs to be updated the value of field "AWSYS" in the same way
    replacing value "PRD300".
    3) if the process in point no. 1 is not correct , then what is the
    correct process that the Basis team can do while refreshing any target
    server with production data so that target server retains its value in
    Field AWSYS & not showing "PRD300".
    With 3 servers TEST,DEV & Quality , recently refreshed with production
    server to bring all servers in Sync for a HR patch application, we have
    this situation now in all 3 servers .
    Thanks in advance ,
    Anil Shanbhag

    It is appropriate to move this thread from ERP-MM to [Enterprise Resource Planning (ERP)|Enterprise Resource Planning (SAP ERP);
    Edited by: Jeyakanthan A on Jul 7, 2011 4:56 PM

  • BPM worklist app views are not visible in IPM task viewer

    Hi,
    we upgraded our system from 11.1.1.3.0 to
    weblogic 10.3.5.0
    SOA 11.1.1.5.0 with BPEL processes
    ECM with IPM and UCM 11.1.1.5.0
    after upgrade i have problem with profiles in IPM task viewer page. Views are created in BPM worklistapp and all users can see tasks assigned to them there. But those views are not visible in IPM task viewer page (i tried it using driver page). Because of missing profiles/views users can't see and process tasks assigned to them. In log files isn't raised any error message.
    Everything was working before upgrade. Can someone help me with this? What can i have wrong there?
    Thanks a lot in advance for any help
    Edited by: 914063 on Jun 20, 2012 12:56 PM
    Edited by: 914063 on Jun 20, 2012 12:57 PM

    Hi Renuka,
    There are basically two ways to create an ADF UI for a BPM Task:
    1. Generate it from the task
    2. Create a ADF Taskflow based on Human Workflow Task
    Since I tell this by heart, I might be slightly wrong in the terms.
    You probably want to try the second option. It is accessible from the "New Gallery". You'll have to provide the Human Task from the BPM project, but then you can build up the ADF Taskflow by your self, based on the customizations of the rest of your application.
    Should not be rocket science for someone with ADF11g experience. Since it is not my dayly job, I need to figure it out every time again ;). But I did it in the past and it wasn't so hard.
    Regards,
    Martien

  • In Business Rule child elements of Unbounded element are not visible.

    Hi All,
    Jdev version 11.1.1.7.0
    I am facing one issue in Business Rule...
    Scenario: I am creating Approval Service (BPEL) with Human Work flow and Bunises Rule.
    I am assingning participant in HW by using Rule based(Connecting HW and BR).
    Problem here is:
    Shema has "unbounded" element.
    <element name="ExpenseItem" maxOccurs="unbounded">
         <complexType>
          <sequence>
           <element name="ItemID" type="string"/>
           <element name="ItemName" type="string"/>
           <element name="ItemPrpjectID" type="string"/>
           <element name="ItemStatus" type="string"/>
          </sequence>
         </complexType>
        </element>
    Whenever I create Busines rules to configure rules.
    While configuring rules child elements of  ExpenseItem are not visible. But those are neccesary to configure rules.
    If you can help to me resolve would help.
    Is it a bedault behaviour of BR? If so how can i acheive this?
    Thanks,
    Santosh

    Solution found:
    Click on RuleSet which you have created.
    Expand Rule inside it.
    Enable Advanced mode and Tree mode and click OK.
    Select Root as Task and click on insert pattren and create pattren which is based on unbounded element (here its meant as fact)
    Once you create pattren , will be able access elements under unbounded element for Business rule configuration.

  • Changes made in Camer Raw are not visible in Bridge

    I'm editing the RAW images in Camera raw started from Bridge (Ctr- R). By returning to Bridge with "done" the changes are not visible. This worked until recently.
    s there any setting which prevents Bridge taking in consideration the info from the XMP file ?
    Re-starting Camera Raw I can see the changes from the previous session ...
    thanks in advance

    I love these quick solutions also. 

  • Text boxes are not visible

    Hello. A page in my InDesign document appears to be broken. Text boxes are not visible, they can only mark if I choose command + a. Then I can copy the object and paste into another document in which they appear. You can not delete the page when the crash program. What could be wrong?

    Re text boxes not visible try: View > Screen Mode > Normal.
    It's not a good idea to copy and paste, use Place: File > Place.
    Re your crashing, maybe you should reset your Preferences.
    Derek

  • Responses in PDF form are not visible

    I have Adobe Acrobat Pro XI installed and have produced a form which can be filled in by third parties.
    I have received a return in which the all of the responses are not visible unless I click in the field

    Most likely, the fault lies with the application used to fill in the forms,
    which is probably Apple Preview, that is known to cause this problem. You
    can fix the forms with this utility:
    http://blog.practicalpdf.com/2013/08/introducing-the-practicalpdf-fix-form-utility/
    And in the future instruct your users not to use Preview, but only Adobe
    Reader (or Adobe Acrobat).

  • Work items are not visible  UWL task are visible in tracking in portal

    HI
    Friends
    i  am new from sap Ess/Mss implementation project...
    i am facing an Problem " Work items are not visible under UWL in portal overview page"
    but i am configured  all the ess/mss related things....and also Created for one user for Requester(send Leave Request)...and one more user for App-rover(Apporve an Leave)..
    Requestor send an Leave through portal send it successfully......but i am facing  a problem in uwl under work items are not showing in overview page...but in tracking work items are (Leave request)showing.....work items are not showing in uwl TASK(VERY PROBLEM)...
    i am configured and also registered UWL IN PORTAL..it is good..
    in sap ecc i can assigned UWL_SERVICE user to roles
    1.SAP_BC_BMT_WFM_UWL_ADMIN    
    2.SAP_BC_BMT_WFM_UWL_END_USER
    3.SAP_BC_ADMIN_USER
    4.SAP_BC_UWL_SERVICE
    PLEASE HELP ME.
    Tanks
    Shaik Rafi

    Hi All,
    In such cases, please try to check as below :
    1) Create Leave request work item from Employee and check the same under the UWL Tracking tab of employee.
    2) Log-in to swi5 transaction of the respective back end system and give "US" -> manager's UserID -> Choose Tasks to be completed from the drop down -> Remove any date if mentioned -> Execute.
    3) Here if you can see the Leave request created, but not on the portal, it reflects some portal issue like sync.
    4) If no leave request work item is seen here, then there is a problem in the employee manager mapping or the workflow setup.
    5) In such cases, you can try to check the Swi1 and check the log of that workflow to understand the current status of the Leave request.
    Revert if further help is needed with more info.
    Reward points if found useful.
    Regards,
    Shri vidya S

  • Work items are not visible under UWL in portal ?

    Hi,
    We are upgrading from SRM 5.0 to SRM 7.0.
    We have observed one issue here. Workitems are not visible in UWL in portal.
    But workitems are available in SAP inbox. i.e SBWP.
    Completed items we can see in UWL.
    Could you please let me know any idea on this.
    Regards
    Venkatesh P
    Edited by: Venkatesh Padarti on Dec 9, 2010 8:28 AM
    Edited by: Venkatesh Padarti on Dec 9, 2010 8:29 AM

    Hi Venkatesh,
    Can you please share the solution? Which base URL was wrong and where did you correct that?
    Your help is really appreciated.
    I had post the same question at SRM workflow - work Item is not being displayed If you want to reply there. I will definitely, reward with points too.
    Thanks,
    Bhavik

  • Does anyone know why since upgrading to ML notes are not visible in Time Machine. They used to be part of mail and could be recovered from Time machine but since ML I don't seem to be able to access notes in Time Machine. Any help would be useful.

    Does anyone know why since upgrading to ML notes are not visible in Time Machine. They used to be part of mail and could be recovered from Time machine but since ML I don't seem to be able to access notes in Time Machine. Any help would be useful.

    Welcome to Apple Communities
    Mail doesn't support notes. If you use iCloud, you have them in it because Notes is an application

  • Re-publish site using 3rd party FTP Client-Changes are not visible

    I uploaded my Iweb site to the server using FileZilla. When I make changes in I-web and republish, the changes are not visible. I even tested it out by deleting the site folder and re-uploading everything after I re-published the site in IWeb...but the change still isn't visible. Any suggestions as to why?

    Apparently you publish to a folder.
    iWeb's job is done!
    What you do next with the files is your responsibility.
    Try uploading the changed files to their respective folders on the server.
    You can identify the changed files by the date/time.
    Then in the browser, clear the cache and reload the page.
    iWeb is not involved.

  • Why changes are not visible in alternate profit center heirarchy?

    Hi
    I did changes in the master data of profit center. I chaged the profit center group in the masterdata of profit center & the same change is visible in the standard heirachy but the changes are not visible in the alternative heirarchy.
    I think it should visible as I did changes in the master data.
    I just want to know why it is like so or there is some other way to change the master data.
    I know i can drag the profit center as well in t code KCH9 or KCH 2.
    After doing so i activated the same.
    Waiting for sugestions, comments.
    Edited by: Smruti Mohanty on Nov 13, 2008 1:47 PM
    Edited by: Smruti Mohanty on Nov 13, 2008 1:47 PM
    Edited by: Smruti Mohanty on Nov 13, 2008 2:03 PM
    Edited by: Smruti Mohanty on Nov 13, 2008 3:02 PM

    Hi,
    If your are using same profit center group(which is used in standard hierarchy) in alternate hierarchy,you will see change.
    if your using different groups in Standard hierarchy and Alternate hierarchy you will not see change in alternate hierarchy.
    hope this helps you.
    Thanks,
    Rau

  • Images are not visible in the iPhone.

    When I open iTunes there are number of images found in the iPhone, but the images are not visible in the iPhone actually.

    I using local deployment. I deploy my application directly from NWDS to a Mobile Client running also locally in my machine. Maybe I'm wrong, but I think that Mobile Client look for resources in NWDS workspace.
    This is the dpi file located in the Mobile Client inbox folder when I perform the deployment.
    <?xml version="1.0" encoding="UTF-8"?>
    <deployment>
    <device>
    <repository>
    <mcd name="IrviaDemoApp" namespace="" version="1">
    <action type="install"/>
    <location type="local">
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\MOBILE-INF\MCD.xml" property="mcd" type="file"/>
    <component name="hpcds.es~irvia_demo_app">
    <applications>
    <application deploy="true" name="IrviaDemoApp"/>
    </applications>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\bin" property="bin" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\gen_wdp" property="gen_wdp" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\src\mimes" property="mimes" type="dir"/>
    <source path="C:\Documents and Settings\oloranube\workspace.sr5.jdi\LocalDevelopment\DCs\company.es\irvia_demo_app\_comp\gen_wdp\application-j2ee-engine.xml" property="j2ee_xml" type="file"/>
    </component>
    </location>
    </mcd>
    </repository>
    </device>
    </deployment>
    There is a <source> entry for the mimes directory, where "Component images" are located.
    PD: Sorry about my poor english. I hope you to understand me.

  • The date update from TFS online are not visible on Project pro

    Hi everyone,
    I updated the start date and the finish date from TFS online, i saved and refresh the page. Then On the Project pro i clicked on refresh.  The update are not visible on project pro.
    I don't no why because when i change the title of the task from TFS online. the update is visble on Project pro.
    Someone to help me??
    Thanks for advance.
    rexcs

    Hi rexcs,
    Since this thread is more related to Visual Studio Online, I will move it to the right forum for a better response. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Modified changes to ESS DC are not visible

    Hello Experts,
    I have imported the DC and checked out. I have modified essusfam~sap.com by adding a text field and input label. Saved all my changes and tried to deploy the code from the context menu in webdynpro explorer. NWDS prompts for SDM pasword and later I see the deployment sucessfull. But, the changes are not visible. Just want to know if I am missing any steps before deployment. or do I need to follow any more steps.
    I am trying not to use NWDI deployment process
    Thanks,
    Sharath.

    Hi Sharath,
    When building, choose project then right click and select build... from Development Component section.
    Regards,
    Raj

Maybe you are looking for

  • InDesign Project Management Software

    We are working with inDesign CS4 on a 80 page field services industry publication.  We are struggling keeping articles and advertisements managed before, during and after editing and layout.  Does anyone now of a project management software for magaz

  • DNG converter error NEF- DNG

    I'm using the latest version of adobe DNG converter (6.6.0.261) to try and convert my .NEF files to .DNG so that I can use my Macbeth Color Checker on them. I keep getting an "error parsing the file" message. I had used an older version of DNG conver

  • Claim lock for dead process  in a trace file

    Has anyone seen messages like this in a trace file? Any clues on whats causing it? claim lock for dead process][lp 0x39dc41d50][p 0x39e626f70.7242][hist x49514951] [claim lock for dead process][lp 0x39de15308][p 0x39e626aa0.7179][hist x49514951] [cla

  • JSP from Java Script???

    Can I call any jsp method from javascript?? I have a jsp page that contains some java script code..and I want to call one method of it from javascript. Thanks

  • Consecutive numbers

    I have a requirement where I have to store consecutive numbers (permanently not virtual) for customers. I can 't use a sequence hence there is a possibility of rollback, I can't produce them at application level as concurrence strucked may way. any i