JButton disappear after minimizing the window

Hello,
I am working on a project where user can create JButton dynamically using drag-and-drop. Now the issue is that when I minimize the window and then maximize it, the dynamically created JButton disappear whereas the static ones remain as it is. Is there a way by which I can solve the issue of the dynamically created buttons.
Thanks.

Is there a way by which I can solve the issue of the dynamically created buttons.[_Probably_|http://catb.org/~esr/faqs/smart-questions.html].
db

Similar Messages

  • If Adobe Digital Edition 4.0.3 is open and no book is opened, it crashes when minimizing the window

    I am trying to find a fix for this issue and I saw on a lot's of post, that people are having the same problem as I am with Adobe Digital Edition 4.0.3. If I open Adobe Digital Editions 4.0.3 with no book opened and I minimized the window, then it crashes and it give's me the following error message:

    note to moderator -   this is MY response to MY own posting.  How can this be a duplicate.
    success.  ADE 4.0 is to be avoided. It crashed after my solution.
    The solution is trash the activation.dat preference file.
    Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash.
    If you are using 10.7, see Access hidden library files | Mac OS 10.7 and later.
    I reinstalled ADE 3.0 and life is good.
    The Error getting License. License Server Communication Problem: E_ACT_NOT_READY

  • HT5639 After installing the windows 7 64 bit, it will restart automatically with error in blue screen. in this case what should i do?  i have using bootcamp 5

    After installing the windows 7 64 bit, it will restart automatically with error in blue screen. in this case what should i do?  i have using bootcamp 5

    if it's restarting directly into an error, you can try troubleshooting (might be painful) or re-install windows with boot camp

  • Microphone not working after installing the windows 8.1 on HP TOUCH SCREEN IQ 524

    Microphone not working after installing the windows 8.1 on HP TOUCH SCREEN IQ 524,
    The system shows everything is ok.
    Please any help greatly apreaciated.
    Thank you
    Valentin

    ValentinT, welcome to the forum.
    There are no drivers available for Windows 8.  I suggest checking in the Control Panel/Sound/Recording to assure that your microphone is selected.  It seems that the Sound is one area that gets changed when updating to Win 8.1.  At least, this is what happened to me.
    Please click "KUDOS" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • URGENT: I lost the Lion Partition after repairing the Windows 7 partition

    URGENT: I lost the Lion Partition after repairing the Windows 7 partition
    I have recent bought a new Macbook Pro and then I start doing all the necessary setup. This is the first time I do such setup with bootcamp myself anyway.
    1st: normal MacOS setup, the Lion version has been setup perfectly.
    2nd: run the bootcamp and setup the Windows 7, done perfectly as well.
    3rd: try to partition and resize the harddrive with the Lion installed and create 2 new FAT partitions (now 4 partitions in total: 1 for Lion, Journaled, 1 for Windows 7 in NTFS, 2 for file sharing purposes in FAT). See if I can have better partitioning to do necessary organisations.
    4th: When I want to restart in Windows to see if the newly created 2 FAT partitions can be read in Windows environment and can function norally, the Windows setup does not show at the start up page when I hold the "Option" key during the startup. I then try to restart again, still no such partition but boot directly to Lion.
    5th: I tried to repair the Windows 7 with the start up disc and then it worked. I can also see the 2 newly partitioned FAT drive work normally.
    6th: When I want to restart in Lion, I cannot boot the Lion OS and I cannot find the start up icon on the startup page even with me holding the "Option" Key.
    7th: "MacOS Installation Utility" appears. I tried to repair but cannot as I have neither the Lion setup disc with me (coz the Lion has been pre-installed) nor a time machine backup/ any other backup image to load from.
    8th: Tried to "erase and install a new copy of Lion", the partition where the Lion has been previously installed cannot be shown, now indicate itself as "freespace" and not able to be selected for my "erase and reinstall" process.
    9th: so I go to 2 other FAT drives to do as the instructions to try "erase" and hope the "reinstall" process can be started. But the Disk Utility ends up saying the drive cannot be dismounted/ cannot verfy...
    At the end of the many tries, I tried to shut the computer down and restart again, hopefully something will work still.... the startup page now shows a disk image with ?, I guess NO OPERATION system/ drive detected for booting. So I got a piece of metals without any use now...
    Anybody help? Thanks alot!!

    In Windows, go to Control Panel -> System. Do you see a Boot Camp option? If you do not, please download BC drivers as appropriate for you specific Mac year/model System requirements to install Windows on your Mac via Boot Camp - Apple Support
    and Boot Camp: Install or repair Boot Camp drivers.
    The other option is to use
    Intel-based Macs: Resetting the System Management Controller (SMC) - Apple Support
    How to Reset NVRAM on your Mac - Apple Support

  • After installing the windows 7 on the Macbook pro, i accidentally disabled the Macintosh hd and Recovery Hd and now now cant see them on start up

    After installing the windows 7 on the Macbook pro, i accidentally disabled the Macintosh hd and Recovery Hd and now now cant see them on start up
    I need to boot to macintosh but i cant see the drive nor to restore to the fastory settings through recovery HD, What can i do

    hold down the option key during boot it give you the option of what parition you wish to boot into

  • I run 3 email accounts on Mac Mail, all 3 disappeared after doing the latest OS X update. I have tried adding the accounts back but no mail appears. Help!

    I run 3 email accounts on Mac Mail, all 3 disappeared after doing the latest OS X update. I have tried adding the accounts back but no mail appears. Help!

    The mailbox list is divided into categories with headings in caps, such as ON MY MAC. When you hover the cursor over one of those headings (except for MAILBOXES), you should see the word Show or Hide on the right. Click Show. The  MAILBOXES category can't be hidden.
    In each category, the mailboxes are arranged in groups, such as Inbox. To the left of each group is a small disclosure triangle. If the triangle points to the right, click it so that it points down.

  • Lines disappearing from the frame when minimizing the window

    I drew some lines on a frame but when I minimize the window , the lines disappear. I dont know why. Please help me. My code is as follows: (Sorry...I dont know how to tag the code to make it more readable)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.geom.*;
    public class Pos extends Container {
    public static void main(String args[]) {
    Pos p = new Pos();
         p.getPosition();
    JButton bn = new JButton("Draw Line");
    int posx=0;
    int posy=0;
    int i=0;
    int x[] = new int[4];
    int y[] = new int[4];
    public void getPosition() {
    final JFrame frame = new JFrame("Mouse Position");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JLabel label = new JLabel();
    label.setHorizontalAlignment(JLabel.CENTER);
              MouseListener mouseListener = new MouseListener(){
                   public void mouseEntered(MouseEvent evnt){
                   public void mouseExited(MouseEvent evnt){
                   public void mousePressed(MouseEvent evnt){
                   public void mouseReleased(MouseEvent evnt){
                   public void mouseClicked(MouseEvent evnt) {
                        showMousePos(evnt);
                   private void showMousePos(MouseEvent evnt) {
    JLabel src = (JLabel)evnt.getComponent();
                   posx = MouseInfo.getPointerInfo().getLocation().x;
                   posy = MouseInfo.getPointerInfo().getLocation().y;
    System.out.println("x-coordinate="+posx);
                   System.out.println("y-coordinate="+posy);
                   x=posx;
                   y[i]=posy;
                   i=i+1;
              ActionListener actionListener = new ActionListener(){
                   public void actionPerformed(ActionEvent ae)
                        Object o = ae.getSource();
                        if (o==bn)
                             Graphics g= frame.getGraphics();
                             Graphics2D g2D = (Graphics2D)g;
                             g2D.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 0.0f));
                             g2D.setColor(Color.red);
                             g2D.drawLine(x[0],y[0],x[1],y[1]);
                             i=0;
              label.addMouseListener(mouseListener);
              bn.addActionListener(actionListener);
    frame.add(label, BorderLayout.CENTER);
              bn.setSize(10,10);
              frame.add(bn, BorderLayout.NORTH);
    frame.setSize(300, 300);
    frame.setVisible(true);

    Graphics g= frame.getGraphics();
    is your problem
    which will appear like this
    Graphics g= frame.getGraphics();if you highlight the code, then click the 'code' button, above the editor area
    solution is to use a JPanel for your graphics, and override its paintComponent()
    JPanel p = new JPanel(){
      public void paintComponent(Graphics g){
        super.paintComponent(g);
        //other graphics stuff here
    };

  • Email folders disappeared after upgrading to Windows 10

    After upgrading to Windows 10 (and using Edge rather than IE), all of the folders etc. on the left side of my Verizon email disappeared.  I can move emails to folders but I can't see the folders.  Does anyone know how to fix?

    A VZ DSL Tech told me last week to use Google Chrome or another browser (other than I.E. 11) since I Upgraded to WINDOWS 10 on Aug 3.  I think he said this issue also affects FiOS users. In I.E. 11, I see NO Folders on left, and NO New eMails.  Only page headers. In MICROSOFT's new EDGE, the Folders are missing on the LEFT but the NEW eMails show. The VZ Tech said VZ know about this issue but that VZ cannot resolve it.  It is a MICROSOFT issue.  My hunch is that IF IT IS a MICROSOFT issue, a "FIX" will come out in a WINDOWS 10 UPDATE.  The VZ Tech could NOT give me a time frame.  So for now, I use CHROME to check my VZ Email.  I've read posts where some are able to use Firefox. Best wishes.

  • ICloud Group contacts disappeared after upgraded to Windows 8.1.

    After upgrading to Windows 8.1 received message "The set of folders cannot be opened.  The information store could not be opened."  When opening the iCloud contacts in Outlook 2010.  I performed the fix of signing out of the iCloud control panel and back in to resolve the above error message and was able to access my addresses.  However, all of the iCloud Group contacts disappeared from Outlook and from iCloud.  Is there any way to restore the iCloud contacts back to a point when the Group contacts still existed.

     Hi @Tomhum2010 ,
    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP ENVY 14t-1200 CTO Beats Edition Notebook PC and issues after an Windows 8.1 update. I recommend to restore the BIOS defaults.You could restore the BIOS with this document selecting the reloading the BIOS default settings which should resolve the fan issue.
    Here is a link to the HP Support Assistant. Just download and run the application and it will help with the software and drivers on your system. If the drivers are not updated this could cause this same issue.
    If that does not help at the end of the document it shows you to do a hardware test.
    Please note remove any and all USB devices before troubleshooting. Disconnect all non-essential devices
    Hope this helps you out.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • How do I get back my bookmarks and history which disappeared after downloading critical Windows Updates?

    On 10/16/14 I downloaded 11 critical Windows Updates (I have the 64-bit version of Windows 7 Pro).
    All updates ran successfully, but after the updates, Firefox would not run. Instead I got the error “Couldn’t Load XPCOM”. Internet Explorer was working. I reinstalled Firefox . I did not delete it and then reinstall it, I just downloaded Firefox.
    That worked and I can now use Firefox, but I have several other problems:
    • I lost all my Bookmarks
    • I lost some of my History. I can only view history for “Today” and “Yesterday” in the Library. I am missing “Last 7 days” (except for 10/16 and later) and “This Month” history view.
    I have been trying to research how to fix this on my own for the past several days, even though I am very non-tech savy.
    I tried the following, but none of these things has corrected the bookmarks or history problem:
    • I did a System Restore to 10/13/14
    • I tried to do a System Restore to 10/12/14. I got the error “Did not complete successfully. Unspecified error 0x8000ffff”.
    • I reset Firefox to its default state.
    • I tried to change the Privacy setting for Firefox history from “Remember History” to “Use custom setting for history” followed by checking “Remember my browsing and download history”, “Remember search and form history”, and “Accept cookies from site”. I am unable to change this. It always reverts back to “Remember History”.
    I located only one Profile Manager, which I found by going through the Windows start menu with "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" –p.
    I found "bookmarkbackups" under my Profile Folder. The oldest bookmark folder listed is from 10/16/2014.
    Could someone please help me get all my Bookmarks and History back from before the 10/16/2014 updates? Thank you.

    Hi askmozilla, yes, the Previous Versions tab in the Properties dialog for the places.sqlite files in the oldest of those folders.
    I'm not sure whether Windows can match that file up with earlier restore points once the folder is moved from its original location to the desktop.
    I wonder whether there is any way to access the restore point created on 10/16 just before Windows installed the updates. That really would be the best place to look if possible.

  • Values disappear after saving the Purchase Order and Goods Receipt PO

    HI,
    Our client is using SAP Business One 2007 A(8.00.181) SP 00 PL 47, When they raise Purchase Order for service item, the details and amount disappears automatically after adding the document and similar case for Good Receipt PO. But when they book directly in AP invoice the details and amount will appeared.So please help on solution for the above problem.
    Best Regards,
    Grayson

    Dear Mr Burton,
    If I understood correctly you cannot see the information inside the document you added. This made me think that it is a GUI issue.
    In the second answer you specified that when you try to open it again you'll receive the error message saying that there is no total value or total and I assume there is no information in the document.
    I believe the second issue is a consequence of the first one.
    I was suggesting to open a message on the portal (the message that requires the S number from the partners) in order to investigate the issue better.
    However, as you have an error message that pinpoints to certain fields it could be possible to see the information in the tables. Do you have this information?
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Black window remains open even after closing the window programatically

    I have an application which has multiple windows. From mainwindow button click event I am closing the child form of the application. The child window is opened after a successful socket, serial or gateway connection attempt, after which the application
    do work with some threads and while clicking on a button on mainwindow I am closing this child window after disconnecting the respective connection mode. But after the close event the child window background gets black and it remains open unless and until
    I just do a minimize and maximize the application. Please help me on this to get this issue fixed.

    Well the details are rather going to depend on what it's doing.
    It's a very open ended question really.
    But...
    Your options include.
    Background worker.
    https://msdn.microsoft.com/en-us/library/cc221403(v=vs.95).aspx
    DIspatcherTimer
    https://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer(v=vs.110).aspx
    Async Await
    https://msdn.microsoft.com/en-us/library/hh191443.aspx
    Tasks
    Task.Factory.StartNew(() => { Dosomething(); });
    Or just a plain thread
    using System.Threading;
    new Thread(() =>
    Thread.CurrentThread.IsBackground = true;
    // DoSomething();
    }).Start();
    Where DoSomething is a method.
    You can also have inline code of course instead of a method.
    Whilst on a different thread to the UI you can't update UI objects.
    You'll get a thread affinity error message if you try.
    That means you either return your results to the ui thread and process them there ( particularly convenient with async await ).
    Or you update something which doesn't have thread affinity.
    An observablecollection bound to an itemssource doesn't have thread affinity eg.
    You do need to raise property changed at the end of your processing with that option because it notifies collectionchanged on the wrong thread and the UI won't know it changed.
    Or you can dispathcher.begininvoke to get back to the UI thread.
    All depends what you're doing but hopefully one of those options there will suit you.
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

  • Changes in Bundle.js file are disappear after restarting the UCM

    Good Day,
    I add some javascript code in bundle.js file within the following path: domain_home\ucm\cs\weblayout\resources\bundle.js .
    the changes are reflected fine on the UCM, but once the UCM Server restated the changes are gone and the file revert back as is; without my changes.
    the code that i want to add is:
    if ((typeof Range !== 'undefined') && !Range.prototype.createContextualFragment) {
    Range.prototype.createContextualFragment = function(html) {
    var frag = document.createDocumentFragment();
    var div = document.createElement('div');
    frag.appendChild(div);
    div.outerHTML = html;
    return frag;
    i want to add it because i have a javascript error like this: Object doesn't support property or method 'createContextualFragment', this erro occured when the used version of Internet Explorer is V.9. ; no javascript errors appears on Version 8. when i add this piece of javascript to the bundle.js file, it the error is gone and everything goes fine, but as i said earlier after restarting the UCM the added javascript code is gone and disappear from the bundle.js file.
    For that reason i want to ask, is there is a way to keep my code and stay as is even after restarting? Or is the file uploaded on restart from another path?
    Any Suggestions?

    This is actually quite simple to explain:
    - domain_home\ucm\cs\weblayout\resources is a directory that holds runtime version of resources
    - if you want to make your changes persistent, you will need to do it in a source directory. In 11g there are two source directories; one for standard components, and the other for custom ones. You should use the latter
    - in fact, if you create a custom component with Component Wizard, make your changes there and activate the component, you should be done. The only another thing you should pay attention to is the loadOrder parameter of your resource - it should be higher to get applied.
    For more details, see http://docs.oracle.com/cd/E23943_01/doc.1111/e10807/part4_customize_comp.htm#sthref522

  • Folder Redirection policy is not applied to a user, when the server target is changed, but works after resetting the windows profile.

    Folder Redirection policy is not applied to a user, when the server target is changed. 
    After server target is changed via group policy, when user login  (roaming profile)first time, the the new server target has not been applied, instead it's pointing to the old folder redirection path.
    But if we reset the windows profile (roaming ), the new folder redirection works, can you please specify a solutions that the new folder redirection works when the user login for the first time. so it reduce the time on resetting users profile.
    it seems that we need to delete the old folder redirection path from the user profile (roaming user profile) via group policy or similar solutions..
    Many Thanks

    >   But when the specific users login they all get the same error, it
    Is the old server removed from the domain? Seems so - or some other
    authentication related issue, hard to tell from here...
    > seems that the roaming user profiles still keeps the old server details,
    Yes - if you change redirection targets, FR moves content from old to
    new, and only if this ends sucessfully, it will update the redirection
    target.
    Make the old redirection target accessible to the user and you'll be fine.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

Maybe you are looking for

  • Report with information about release documents in VKM1

    Hello I need to know if exists some report that gives me more information about release documents in transaction VKM1. What user releases some document? How many documents a credit account had been release or block in a year or between dates? The tra

  • Quicksilver Freezes After 1 Minute (Full Boot)

    Booting normally lets the user use the system for 1 minute. After 1 minute, it beachballs and then freezes entirely, but no kernel panic. Booting into safe mode has the system running fine. PRAM and everything else has been reset, machine contains no

  • Employees are not listed in PPOME or HIS ?

    Hi, I used BDC to migrate personnal data with PA40 . ( Hire person where I fill the position ) , But then I can not see that person in PPOME or reporting tool HIS , Although these persons are assigned well with approriate position & Org unit . Even I

  • DB_ACTION_STATNEW - Error - How to increase shared memory in shadow instanc

    Hi all, We are facing the below error in the DB_ACTION_STATNEW phase: TRACE-INFO: 82:                                                                                13  4.822960 TRACE-INFO: 83:  [developertra,00000]   WHERE TABNAME = :A0;            

  • Burning problem with gneux.exe

    hi, this is the problem with gui can any body suggest me how to download a file with name c:\program Files \sap\frontend\sapgui\gneux.exe its very urgent pls respond immediately