JDialog.... functionality lost

Hi,
I have created a Frame that consist of 2 JPAnels.
I haev a button one one of the JPanel that whn pressed pops up a dialog box.
This works fine, but when I close the dialog box one of my panels in the frame will not work properly. i.e. one of the buttons functionality doesnt work.
Secondly I have a problem with a Icon image. I have the image displayed via IconImage and JLabel. But the image is never displayed to the screen unless i resize the window???
any ideas??
thansk in advance

I basically have 2 problems now. Firstly the image doesnt appear unless I resize the window, and when i move the dialog box off the screen, the image gets erased. similar to the eraser in paintbrush. I have tried doing repaint() and nothing.
And finally, the functionality is lost in the main frame when i close the dialog box
please help!!
thanks
This is a code snippet from the JFRAME that calles the dialog
class ButtonActionListener
implements ActionListener {
public void actionPerformed(ActionEvent event) {
DialogBox dialog = new DialogBox (frame, true);
dialog.setSize(100,100);
dialogsetVisible(true);
This is a snippet of the dialog. I have called this class DialogBox
private void buildGui() {
GridBagConstraints gc = new GridBagConstraints();
Container c = this.getContentPane();
c.setLayout(new GridBagLayout());
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
ImageIcon image;
String image= getPic(1);
ImageIcon icon = new ImageIcon(getClass().getResource(image));
JLabel iconLabel;
iconLabel = new JLabel(icon);
JPanel panel = new JPanel();
panel .add(iconLabel, BorderLayout.NORTH);
JButton button = new JButton("Answer");
gc.gridx = 0;
gc.gridy = 0;
c.add(panel , gc);
gc.gridx = 0;
gc.gridy = 1;
gc.ipady = 0;
c.add(button, gc);
this.pack();
}

Similar Messages

  • Check Box functionally lost when visiblity is turned off then back on

    Please pardon my attempt to ask a coherent question for I am new to Oracle Forms!
    I have created a canvas using the layout wizard against an Oracle table. I needed to provide the means to select mulitple records for DELETION; so, I created a check box item beside the database items to allow the ability to select records to delete. I also allow the user to query this table in query mode against a couple of columns to help isolate records to be deleted. So far, I have gotten the expected functionality from the check box on the initial query of this form.
    Now, heres my problem!
    When I try to reduce the query result while in "ENTER_QUERY" (F7) mode, I intentionally make my check box item invisible. The thought being "I should not allow users opportunity select records for deletion while in the process of querying the table to fetch the records you will be deleting from!" Once I press F8 to execute the my query, I issue the following statements in my KEY-EXEQRY trigger:
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', VISIBLE, PROPERTY_TRUE );
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', ENABLED, PROPERTY_TRUE );
    My results are displayed along with the check box to select records for deletion!
    At thsi point, the functionally of the check box no longer works!
    I get a forms error "(FRM-40200) Field is protected against update."
    I look in the Property Palette under the Physical section and the Visible attribute is set to "Yes"!
    Can someone tell me why turning the visible attribute "OFF*" and then back "*ON*" caused the lost functionity?*
    What must I do to get this functionally back without abandoning this design premise?+
    Is there some other attribute settings I must reset in addition to the two set_item_property issued above?+
    Thanks in advance!
    Les

    Add to your code following statement
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', UPDATE_ALLOWED, PROPERTY_TRUE );
    and hopefully that should take care of your problem.

  • Epson Scan function lost when I switched to Win7.

    I used PSE2 for a long time with my Epson Stylus Photo RX620. It had a very user-friendly Photomerge function and I used the File>Import to scan with my printer heavily. When I bought PSE8, I found that neither of these things were user-friendly anymore, and some functionality was missing, so I continued to user PSE2 for photo editing. Recently I upgraded from Win XP to a new laptop with Win7. I've lost the Epson Scan completely, in PSE2 and PSE8. The folks at Epson tell me that (although their website says differently) the Epson Stylus Photo RX620 is incompatible with Win7, and indeed, we have tried every driver we can get our hands on without success. I asked them what model might be compatible with PSE2/PSE8/Win7 and they were not willing to recommend. I would like to hear from anyone who is familiar with the features of PSE2 and might advise me on what I can and cannot get back in either 2 or 8, and what printer might be compatible. 

    You can try VueScan for Windows 7 to see if it works with your scanner.
    <VueScan Scanner Software for Windows, Mac OS X and Linux>
    Also, for Windows 7, did you try installing a driver for Vista?  I have noticed that Vista drivers always work in Windows 7.  It is worth a try.
    Good luck.

  • HP Deskjet 3055A scan functions lost.

    I have recently bought my first Macbook Pro (yey) and I can't get my HP Deskjet 3055A to scan.
    My Macbook will recognise it as a printer fine but I seem to have lost all Scanning functions which is rather annoying.
    Is it something Im doing wrong or is it an 'Apple'ism??? Ive tried searching for a driver to download from the HP website but there is none to download.
    Your help is appreciated

    Hey PGTwits,
    Congratulations on getting your new MacBook Pro. Let's see if we can get you up and running on using your scanner.
    There are a few articles related to scanning from a Mac that I would suggest you read -
    OS X Yosemite: Set up a scanner - Apple Support
    OS X Yosemite: Scan images or documents
    OS X Yosemite: Scanning troubleshooting
    If you are still having issues after going through those, please repost with more details about what is not working and we will continue to assist.
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • [SOLVED] hostname functionality lost

    After a recent update I see that most of hostname's functionality is lost.  Unfortunately I use it in many scripts etc.  What is the "correct" alternative now?  I installed yp-tools but it does not include any hostname binary (or variant thereof).
    I obviously can compile net-tools (and/or it's components) myself but is there a formal package (or AUR) with the original functionality?
    Last edited by lefallen (2011-06-20 00:46:56)

    karol wrote:I think keeping net-tools for now would be the best choice.
    I think you misunderstand.  The issue is caused by the OFFICIAL ArchLinux changes within the net-tools package that provides hostname.  Specifically, this change I believe:
    http://projects.archlinux.org/svntogit/ … e7496e09cb (1.60-15).
    EDIT: Ah.  NVM, it appears 1.60-18 rectified this: http://projects.archlinux.org/svntogit/ … 478efd36ce
    Just another pacman -Suy required
    Last edited by lefallen (2011-06-20 00:46:00)

  • Email functionality lost in IOS5

    I lost email function for all my accounts on my IPad after ios5 upgrade.  I, like a bunch of other people, am having problems with apps and new features on the iPad. iPhone is working ok but not as fast as I expected.  Is apple working on an update to fix the update? :)

    Lost what email functionality (sending, receiving, reading ...), what problems with apps, and what needs fixing ? Nobody on here knows what Apple are or aren't working on. If you say what problems that you've got then someone on here might be able to help

  • DISGUSTED! ImageReady functionality lost for producing smart objects in GoLive!

    It is ABSURD that the rollover/layer-based slice capabilities feature of ImageReady was eliminated and instead replaced by way of mediocrity using manual copy and paste functionality within Dreamweaver. What kind of step-backward mentality is this? I am beyond disappointed and feel betrayed by Adobe, not to mention unbelievably, inconsiderately inconvenienced. Does the title "industry standard" require bowing to irrational development or is this mere laziness on Adobe's part?
    Previously I had been able to develop multiple series of rollovers within Photoshop using layers and then switch to ImageReady in order to automatically produce rollover code for a set of images...AS ONE IMAGE FILE. These images could then be placed into GoLive (another hot-button issue!) as SMART OBJECTS - gee, what a concept! - where the targets, if necessary and not already entered within ImageReady, could be linked to any page within the the site folders. Now I can't access the secondary image anywhere at all. It appears that the only solution for us lowly GoLive CS2 users is now to be required to TRIPLE THE AMOUNT OF WORK AND place multiple objects within a page layout, leaving (no pun intended) room for pixel space errors and requiring multiple manual page adjustments when the work was ALREADY DONE IN PHOTOSHOP! Layer-based slices are a work of genius, but NOT without the added capability of automatic rollover detection. How am I supposed to work this out in GoLive?
    NOW, only NOW am I discovering that this "merged capability" within Photoshop is missing one of THE MOST INGENIOUS FEATURES EVER and now I am scrambling to find some garbage workaround in order to capacitate the need for a string of visual interface objects. This is the kind of move I EXPECT from Microsoft, but NEVER have I been this put out with Adobe. NEVER.
    Is this the only solution? Bend to the will of the Dreamweaver cabal and join the ranks of the Microsuck copy-and-paste zombies? Not only is the new CS3 series "upgrade" cost-prohibitive for most anyone that isn't within the realm of the design elite or corporate ladder-climbing ranks of internal design group budgets, the tools appear to force anyone without the time necessary to learn the intricacies of manual HTML tagging to create nothing but the same garbage website in an infinite spectrum of ineptitude.
    Is the new GoLive 9 supposed to accommodate this ridiculous shot-in-the-foot move or am I REALLY going to have to resort to a complete reload of CS2?

    Dave and Buko, that's my entire point...I shouldn't have to be using CS2 after purchasing CS3. I have full versions for both thankfully and for this very reason but I don't know if I can install CS2 in addition to CS3 without causing some system file issues. I did briefly read about someone else trying that in another forum.
    IR does indeed work great with GoLive CS2. My issue is that the rollovers in the extended Photoshop CS3 do NOT work and don't export code at all. It's damn frustrating that after making the purchase, I feel duped.
    And Buko, no, I never even bothered with Dreamweaver. I attempted to learn it several times and was just put off completely. I previously owned both Macrodmedia Studio Professional and the complete Adobe CS2, but the upgrades for the combined product sets which made sense for me and didn't break the bank like purchasing the "Master Suite" didn't even include things like Fireworks, which supposedly has some sort of workaround for rollovers when setting multiple targets in an image file.

  • Why are calculation functions lost from Reader Extended PDF when downloaded from website?

    I am creating PDF forms with most fields performing calculations. I am saving the forms out as Reader Extended PDF> Enable Additional Features. When I email the form there is no problem with the person using the form, all calculations work. The person is able to save the form and all info is present.
    However, when the same file is posted on a website with a clickable link to download, once downloaded, all the calculation functions are missing from the fields. Additionally, when the user fills the form out anyway, the info in the fields is invisible.
    I am on a MAC OS 10 using Acrobat X Pro. The majority of the people going to the website and using the forms are on Windows. What am I doing wrong?

    It sounds like you're actually using the Preview application when viewing the form on your Mac. It does not support JavaScript, which is how the automatic calculations are implemented. It also corrupts forms when it saves them. A result of this corruption is when the form is subsequently opened in Acrobat/Reader, the fields are blank unless a field has the focus. For more information, see: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

  • Help! Typewriter function lost in Acrobat X Std

    I use Acrobat X Standard on a PC to fill in interactive forms created by the Cook County Probate Court.  I have been doing this since before Acrobat X came out.  They are interactive forms, but sometimes there are notations that don't go into a pre-created field, so I have used the typewriter function.  Now I find that if I open a form in which I used the typewriter function previously, it is still there and can be used: I can create a typewriter entry, edit old ones, delete, etc.  But, if I open a form in which I have not previously used the typewriter function, it is not available.  That is, it appears on the Tools list, but is not in bold print and if I click on it, nothing happens.  I really miss this feature.  Using the old IBM Selectric just ruins my day.  HELP?

    Thanks.  I repaired the install and no changes.  The earlier point, however, about some of the forms not allowing commenting might be a clue.  I went into the Count Clerk's website and downloaded one of the forms in which I have been able to add typewritten comments in the past.  The form was revised in 9/6/13 and it no longer allows any comments.  However, the difference is that in this form the Tools menu -- and therefore typewriter -- does not appear at all. 
    The form I have been having trouble with is a newer form and may not allow commenting -- altho the Tools menu does show up.  It was revised 9/4/13 -- two days before the above form.  I hope this isn't supposed to be progress.
    Thank you all for your help. 

  • IPhone timer functionality lost with latest update

    The latest iPhone update has seemingly eliminated the ability to set the timer for anything other than full minutes. I utilized the "seconds" feature very frequently, and this change is an annoyance. Sadly, thoughtless changes by Apple seem to be becoming SOP. I don't suppose anyone knows of a "fix" for this, do they? (I'm still very frustrated over the change to FaceTime on my laptop which mutes all other sounds, limiting the program's functionality; this seems to be a developing pattern.)

    Why this function disappeared for awhile, I don't know, but the seconds option is now back. I don't get it...

  • Previous Page and Next Page functions lost

    The Previous Page and Next Page icons suddenly vanished with only the Reload Page and Add Bookmark icons showing. The only way I am able to return to a previous page is through History. Will I have to reintall Safari? and, if so, can I just install Safari without jeopardizing my data not only in Safari but other applications? I have original OS X 10.2 and 10.3 discs. Can I reintall over the existing Safari app?
    Thanks much.
    TeddyZ
    G4   Mac OS X (10.4.3)  

    Sorry, but this didn't work at all. I think Safari has been corrupted and think I'll have to reinstall.
    Do I deinstall? or can I reinstall over the existing Safari? And can I isolate Safari with my existing OS discs (I have both OS 10.2 and 10.3.5)?
    I have an external hard drive. Could that be helpful in this process?
    (I suspect that all my bookmarks will be lost, but can compensate by printing them out in hard copy).
    G4   Mac OS X (10.4.3)  

  • Is functionality lost by not using 'contract', but instead info records?

    My company is going through a data cleansing, and we would like to prioritize info records. What's the benefit of using "contract" over "info record" and vice versa? Do we lose functionality by dismissing contract completely? (Certainly, we would have contracts, but the legal agreement would be handled externally.)

    Hi,
    PIR Serves as a source of information for Purchasing. It contains information on a specific material and a vendor supplying the material. For example, the vendor's current pricing is stored in the info record.
    The info record allows buyers to quickly determine:
    Which materials have been previously offered or supplied by a specific vendor
    Which vendors have offered or supplied a specific material
    A contract is a type of outline purchase agreement against which release orders (releases) can be issued for agreed materials or services as and when required during a certain overall time-frame.
    Contracts are of two types:
    1. Quantity contracts - Use this type of contract if the total quantity to be ordered during the validity period of the contract is
    known in advance.
    2. Value contracts - Use this type of contract if the total value of all release orders issued against the contract is not to exceed a certain predefined value.
    Thanks
    Chandru

  • Search function lost in new itunes Store

    You used to be able to search podcasts and get lists that you could rank by popularity. The search function has been severely reduced in the newest itunes store.
    Now all you can get is thumbnails with no details.

    I'll echo this. Look up Classical Music, anything there is nigh impossible to find. Telling me that a song is "symphony no. 9 movem...." is useless. I don't care, I know that. What I want to see is the movement. But I can't. Or how about dance remixes? I know the name of the song, I'd like to be able to see the actual remix name.
    On top of that, you can't even choose what you want to view by. If I am searching for all the U2 songs, I don't need to see that the artist is U2. I'd much rather use that space for more productive things.
    I simply cannot understand who at Apple thought this was a "better" user interface. Sacrificing user operability for a "spiffy" new makeover is not what I would expect from Apple.

  • Curve 8330 all functionality lost on keypad and track-ball

    after my blackberry boots up i lose all functions with all buttons i tried to redownload software now its stuck on license agreement page.  i get phone calls and messages still but i cannot answer or recieve either of them due to this, any suggestions please?

    Yes this is completely normal, the track ball has to be fairly loose to allow movement without any catching or need to use pressure, the keypad is slightly lose purely because this is how the phone is built, however it does not in any way affect the stability or performance of the phone. Enjoy your new BlackBerry & welcome to the support forums, any more troubles, don't hesitate to come back!
    -Zoey

  • Dreamweaver CS5.5 and up - functionality lost

    Prior to Dreamweaver 5.5, I could work on a page during FTP transfer of other files with almost no loss of functionality.
    As of CS5.5 CS6, I can't assign a value to a link using the properties/Link/"Point to File" tool any longer.  It remains crippled until the FTP transfer completes.
    I thought this broke in 5.5 and would be fixed in 6, but apparently not.  Is this a permanant step back?

    I tried it with a simple pre-built template, and didn't have any effect - you mentioned in the video you were going to assign each to some pre-built corresponding css files... did they already have additional attributes in them not highlighted in the video? I can't seem to get my layout to change in the mobile and tablet sizes...?

Maybe you are looking for

  • Imovie crashes when I want to share with idvd

    I have made a fairly large Imovie with .jpeg, .mov and .mp4  . When I go to share with idvd or finalize, imovie keeps crashing.  I am desparate to resolve, b/c I have to get this dvd sent out for duplication asap.  below is the log.  I have over 200G

  • Urgent : pROBLEM IN CONDITIONS in smart forms

    Hello abapers I am giving condition for displaying of a text in smart form . the text is in secondary window. Previously I have given 3 conditions as var1 = value or val2 = value or val3 = value. but now when i am adding 4th condition i am getting wr

  • Fld selection for mvmt type-561/acc399999 differs for ext GA amount in lc

    Dear pp experties When i am doing MB1C mvmt type 561, in repetitave manufacturing, i am facing one error message, the error message is (fld selection for mvmt type-561/acc 399999 differs for ext.GA amount in LC(023),I already checked g/l acc(fs00), a

  • VAT in CIN- Business Place

    Hi,    In VAT, business place concept is there in India. where are the settings for business place is done. regards

  • 2D Matrix, Compacting problem

    Hi! I'm about to implement a matrix class that need som kind of "compacting" support, meaning: If the the following matrix (3x4) is compacted: [1][0][2][8] [7][0][3][9] [0][0][0][0] The resulting matrix (2x3)would be: [1][2][8] [7][3][9] Column 2 wil