How can i only allow the activation of the JDialog on top?

Hi to all,
i have a problem with a mask swing
Well, my problem is this:
In a window, when i click on save button, it's open a customizing JDialog. But i would like how i can deny a click out of this JDialog, that is on top.
In other words, in this situation, with a jdialog on top, if the user click once again on the save button or out of this jdialog, the jdialog must stay on top and active.
How i can this?
Please help me!!
the code that realize my class is this:
public class ConsegnaOrdineDialog extends JDialog implements ActionListener {
     private JOptionPane optionPane;
     private String dataOrdine;
     private JButton si, no;
     private JTextField dataConsegna;
     public ConsegnaOrdineDialog(String dataOrdine) {
          this.dataOrdine = dataOrdine;
          dataConsegna = new JTextField();
          si = new JButton("Si");
          no = new JButton("No");
          si.addActionListener(this);
          no.addActionListener(this);
          JPanel panel = new JPanel();
             panel.setLayout(new BorderLayout(5, 10));
             panel.add(dataConsegna, BorderLayout.NORTH);
             panel.add(si, BorderLayout.WEST);
             panel.add(no, BorderLayout.EAST);
          Object[] options = {panel};
          optionPane = new JOptionPane("La data �:",
                JOptionPane.QUESTION_MESSAGE,
                JOptionPane.NO_OPTION,
                null,
                options,
                dataConsegna);
          setContentPane(optionPane);
     public void actionPerformed(ActionEvent e) {
          if (e.getSource() == si) {
          if (e.getSource() == no) {
               super.dispose();               
}

in the constructor
setModal(true);

Similar Messages

  • How can I only allow free apps to be downloaded?

    How can I only allow free apps to be downloaded to my IPhone 4S?

    Sorry, but there's no way I know of to restrict downloading to free apps only. You can turn off purchasing of apps completely, but if purchasing is allowed, it's open other than by age range. You can of course remove any purchase method, but I don't believe that blocks the purchase; you just end up owing money.
    Regards.

  • How can I only have my iphoto on the cloud and not in my HD?

    I ran out of HD on my Macbook Air. I want to have my photos only on iCloud. How can I do it?

    I want to have my photos only on iCloud. How can I do it?
    You can upload to iCloud Photo Library using the Photos.app at web interface at Www.icloud.com  .
    But if you do that, you cannot use the Photos for Mac app with iCloud Photo Library.
    If you want to use the Photos for Mac app with iCloud, your Mac will store at least  lightweight smaller versions of your iCloud photos on the Mac,so you can browse the photos, if no internet is available.

  • How can I only allow my Apple TVs access to my LAN?

    In my set-up, I have three Apple TVs in separate rooms all connected to a LAN via their ethernet ports. They are connected via a switch to my Airport Extreme and my Mac Mini is also connected to Airport as an iTunes server. The Airport runs a WiFi network for internet access but I don't want people to be able to plug their computers into my LAN and have access to the whole set-up.
    What can I do to achieve this?
    I don't want the Apple TV's to rely on the WiFi so I can use MAC Address Filtering, since it is patchy and streaming HD videos is more stable via ethernet. I have looked into setting-up an 802.1x network but when investigating the Configurator app to set-up the Apple TVs to access an 802.1x network it refers only to WiFi set-ups again. Also, I don't know much about RAIDUS servers and authentication, such as whether I'd need any additional hardware etc.
    Any help would be gratefully received.
    JB

    ...any app launched from /Applications holds only the permissions of the user launching the app, regardless of the owner (presumably because anyone, including "root" can install applications into /Applications).
    It has nothing to do with where the application is installed. Any executable runs with the permissions of the user who runs it. The only exception is a binary executable with the SUID or SGID bit set, and then only if it's on the root device, and only if it's not an Aqua application. The SG/UID bits are ignored otherwise.
    So, anyone who has installed Wireshark from the "native .dmg" by drag-and-dropping won't be able to use the suid trick because the OS will ignore the suid permissions.
    Sorry, I don't understand this at all. Wireshark invokes dumpcap as a child process to capture packets. If dumpcap is installed anywhere on the root device as SUID root, then it will run as root regardless of who invokes it.
    The suid method will only work for Macports and Fink installations...
    That's not correct. There are many SUID or SGID executables in a default installation of the Mac OS, and none of them comes from MacPorts or Fink.

  • We used to only need to enter a password to login, but we need to enter user name too now. how can we only enter password?

    we used to only need to enter a password to login, but we need to enter user name too now. how can we only enter password?

    Open the Accounts or Users & Groups pane of System Preferences and set the login options to show the list of users.
    (67582)

  • How can I not allow wireless access when extending a network?

    I have two Airport Extremes, one extends the network of the other. How can I not allow wireless access on the remote Extreme when extending a network? I could do it with Airport Utility 5.6, but not with version 6 on Mavericks.

    Correct. Use another Mac or even a PC running Airport Utility 5.x.  Once you have the extending Extreme configured the way you want, Mavericks will not change the setting on the extending Extreme.

  • Last month I was 1 day late paying my bill, so I tried to pay the full amount.  But the website would only allow me to pay the current bill amount.  Now, I show a past due amount.  If I tried paying it and Verizon didn't allow me, how is it past due?

    Last month I was 1 day late paying my bill, so I tried to pay the full amount.  But the website would only allow me to pay the current bill amount.  Now, I show a past due amount.  If I tried paying it and Verizon didn't allow me, how is it past due?

    I'm confused - If I go online to pay my bill, and it's one day after the due date, the current bill and full amount due would be the same?  If the current bill is not the "full amount due", then what is the extra amount that's snow showing past due?
    Also, when I go in to pay my bill, I show the Current bill amount, total amount due (which are the same), and then a box where I can type in the amount I am paying, with the default amount being already filled in with the total amount. 
    Is this a pre-paid or a post-paid (contract) account?

  • How to user can view only allow sessions in operator

    dear all
    how to user can view only allow sessions in operator, user has a right to execute only one package.
    kindly help asap.

    What Database privilege (not EM privilege) does the new user have?

  • How can I use apple gift card in the Philippines . It says it's only applicable in US storefront

    How can I use my gift card in the Philippines  when it says for US Storefront only

    You cannot use that card. iTunes gift cards are only valid in the country of original purchase.

  • I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one made AFTER the lost data. How can I access an older backup from the cloud?

    I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?

    Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.

  • HT201302 Hi People! please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other plac

    Hi People!
    Please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other place.

    Hi Alan,
    Thanks for the help, but i've actually done that before.
    It does not help, because it only shows the photos on the camera roll and do not show the photos synchronized with that pc that i dont have access anymore.
    The photos/albums all appear on the ipad, i can see it without problems but i cant get them out of the ipad to save onto pc for backup.
    And i reaaly need it, as it is the only place that i actually have these photos now...

  • When making a book, one of my photos selected appears only on the flap, how can I get it to be in the book also?

    1.  When making a book using Iphoto, one of my photos selected appears only on the back flap, how can I get it to be in the book also? I added an extra page thinking that would help, didn't! 
    2.  It says that you can photos anytime, can I add a photo that I did not select originally without starting completely over?
    ...any suggesstions for both problems would be appreciated. Thanks

    you can use a photo many time is the same book - simply drag it from the photo strip to the photo frame you want it in - even though you have used it before you can still use it again
    And adding photos is easy - go to the photo (in an album, event or photo view) and drag the photo(s) to the book under keepsakes - it will now be available to use
    LN

  • HT3771 I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc." or "Kyocera Inc."
    http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/25359/0/Mac Driver3SoftwareGuide1.1.pdf
    On the printer driver documentation, Page 5, in the Imaging setting, although the options are not specifically shown, there should be an option on that screen of the print driver to click and select "B/W" or 'black and white' or 'grayscale' or 'monochrome' as Print Mode rather than the "Full Color" option shown in the illustration below.
    You access these settings once you have selected 'Print' from an app.
    If necessary, you might need to click on the 'Down arrow' button next to the printer name (OS X 10.6), or 'Show Details' button at the bottom of the print dialog box (OS X 10.8) to see additional settings.

  • I only see the phone numbers of my contacts when using iMessage on my MAC, whereas I see the names on my iPhone. Why, and how can I make it so I see the names (and pics) on my MAC?

    I only see the phone numbers of my contacts when using iMessage on my MAC, whereas I see the names on my iPhone. Why, and how can I make it so I see the names (and pics) on my MAC?

    Thanks Eric, but that was already turned on. I just now tried turning it off and on again, no change. Actually, I"m more interested in seeing the names than the pictures. I now only see the phone numbers and generic avatars where pics would be.

  • My iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    my iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    I encountered a similar problem when finally (and with much regret) I was obliged to migrate my MobileMe to iCloud last month.
    Many years of iCal history vanished without trace during this automated transition by Apple and iCloud then kindly synched the resulting vacuum back to iCal on my Mac.
    Fortunately, iCloud wasn’t able to decimate iCal on my other Macs because (1) they are still running Snow and (2) I had switched them off as a precaution.  Good job I did.
    My solution was to export my iCal data on one of those other Macs to a backup file – then I imported that backup file into my Lion-updated Mac’s iCal. That restored all the iCloud-deleted iCal data back on to my Mac and this was promptly synched automatically to my Calendar on iCloud.  So now it’s all there and showing.
    Perhaps you could do something similar?  In the meantime, be very careful not to let iCloud’s amnesia get synched to your iPhone (and other devices).
    Experience has taught me never to trust an “upgrade” until it is proven to be working correctly and always to keep in reserve another Mac with a properly-functioning system and all synching to it switched off...

Maybe you are looking for

  • Error While activating master data

    Dear All, I am getting an error while updating the master data. Attributefrom characteristic A0SUBBRD not (actively) available Attribute A4INNOCAT from characteristic A0BRD not (actively) available Attribute A0BRD from characteristic A1MATR3 not (act

  • RPE-02040

    I received this RPE-02040 Internal Error while deploying a process flow. I was unable to find any good explanation in Metalink or here on OTN. This error accompanies a cryptic text message. This is what happened for me: I changed a mapping so that it

  • Automatic Discount for a combination of Line Items

    Dear Gurus, In my clients place they have some material with different colour. Like Pens in Black, Red, Green and so on.. Now the requirement is to give discounted price for every 10 pcs. of any colour. If customer takes 3 line items of Pens like: 4

  • TpT2 Stylus slot is broken and the stylus fell out.

    Hello, The stylus slot in the top left corner of my TPT2 is broken and thus keeps causing the stylus to fall out unexpectedly. The most recent time this happened, I couldn't find it anywhere. So I am hoping that the local Lenovo depot will be able to

  • Request

    hi iam updating dso from  source...when i am init without data transfer in the manage tab i can see request in the green but in the monitor tab of the same request getting red and throughing error msg as SUBRC=2 TYPE CONFLICT WHEN CALLING FUNCTION MO