JDialog Notification Problem

I have a class that makes a JDialog popup notification display, letting you know that you have new email. I have set the popup to be always on top. The problem is, I can't figure out how to keep the popup dialogs from making the current window, for example FireFox, become deactivated. When the Firefox window becomes deactivated, you need to click inside the window for it used again.
Is there anyway to make the popups always display on top of other windows but force them to display in a 'ghosted out' state until the user clicks on them?
Thanks in advance,
Garrett

SettingsWindow settings = new SettingsWindow(new JFrame());You don't use "new JFrame()". A new frame is not visible anywhere. You use your current application frame.

Similar Messages

  • I reset my iPhone 4 Network settings to fix the push notification problem, but I lost my internet connection. How do I fix it?

    I tried to solve the "connect to iTunes to receive push notifications"-problem by resetting my network settings, but it only caused me to lose my internet connection when using 3G. Now I can't do anything with this stupid phone. How do I fix it? I don't want to reset anything anymore, I'm sick of this new iOs update, it seriously messed up my phone and I can't do anything properly anymore. Any help?
    And btw, I would also like to get the push notifications back on. Connecting to iTunes did absolutely nothing. Resetting the network settings only made my situation worse. Help please!

    Hi there Julia,
    Ahh The iPhone isn't "stupid" it's been called "stupid" because you are frustrated at the situation , but try
    Load iTunes. Backup your phone. Make sure it is backed up !! Run restore. This will get rid of the error! And please what ever you do , do not skip the back up!
    Thanks,

  • ICal Notifications (problems)

    I'm having a heck of an introduction into the world if notifications, and I can honestly say, I'm frustrated, so I apologize if this comes off sounding short.
    I received an important notification from a business partner of mine with all of the details of the meeting enclosed in an iCal Invitation attached to an email from them. The attachment seemed fine, the icon displayed inline with the attached message. (using Mail.app). I clicked on it, and was taken to iCal.
    The notification appeared in the notification box in iCal.
    Clicking on the invite, iCal spat back the error: "Someone invited you to an event using an email address that isn’t on your “me” card in Address Book. Find your email address in the following list and add it to your card in Address Book."
    Unfortunately there is no email address listed for me to add to my Me card. I've looked all over the web, and no one seems to have a fix.
    1. Tried recreating card in Address book and re-associating it to me
    2. Tried making a card with JUST the email address the invite was sent to
    3. Searched the web and found a few references on how frustrating it is, no answers
    4. Submitted a bug report to Apple (4/29/07)
    Any help would be most appreciated.

    I have this exact same problem, and I cannot figure out what to do. My "me" address card now includes 3 versions of the e-mail address receiving he invitation:
    [email protected]
    <[email protected]>
    My Name <[email protected]>
    iCal still will not recognize it, and will not accept the invitation.
    What can I do?

  • Extended notifications problem

    Hi experts,
    I am trying to configure extended notifications for around 7 to 8 different taks
    pertaining to different workflows.
    I could successfully do it for 1 task.
    Then after successful testing I did add more filters to the same configuration
    under same subscription and delivery.
    I even created new schedules for the new filters. But unfortunately it is not working.
    I could debug the standard program SWN_SELSEN and found that the particular WAPI call to
    select the delta Work Items from SWWWIHEAD and SWWWIHIST is failing because of some
    timestamp mismatch.
    Can you please provide me some help regarding this ?
    Thanks,
    Deb

    Hi Purvesh,
    You can find the step by step procdure in the following blog.
    How to get Work items @ your Outlook Inbox
    You can find all the definitions and theories in the SAP Help link provided in the same blog.
    I initially followed the above and could successfully do it for 1 task.
    However, I was stuck in achieving the same for multiple task belonging to different workflows.
    Here is how I did it:
    1)  Do the configuration in SWNCONFIG as per the blog and SAP Help
         A)  Create your own delivery schdule
         B)  Create your own subscription using the above delivery schedule
         C)  Create your own filters
         D)  Create your own selection schedule
    2) Then run the report SWN_SELSEN to do the actual selection and delivery based on the schedules    you created.
    The key is creating the filters. Follow the SAP Help link closely and try it. If you face any problems
    the please let me know.
    Please award appropriate points.
    Thanks & Regards
    Deb
    Edited by: debabrata mohanty on Dec 10, 2008 11:26 AM

  • Speaker and notification problem on my iPod touch...?

    Earlier today, I was listening to music on my ipod when it suddenly turned off. This confused me, so I just turned it back on- the only problem is that it didnt work. I pressed the play button, and it showed the song was playing, but it wasnt. I did not have headphones in. After a few minutes of trying, I just tried to turn it up, resulting in the discovery that my volume buttons were not working, and on my music app the music bar didnt show up. Also, after this happened, I realized that when my ipod was locked- I was no longer getting my notifications alerting me. The ipod music works fine with headphones plugged in, and now the volume buttons are working but the only time sound comes out is from the settings volume when I tested it.
    I have already reset my ipod, both ways. I reset it just by pressing the home and power button and then reset it by resetting all settings. I really need help, I don't know what's going on with it.

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so.
    Try the following to rule out a software problem
    - Check also Settings > General > Accessibility > Hearing. Make sure that the sound balance is not set all the way to "R".
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

  • Workflow Notification problem

    Hello,
    I have a problem with WorkFlow Notification.
    When a send a workflow test notification. I reveive the mail, in my inbox. I use Webaccess. The notification server works. But in the body of the mail, i don't have the Acknowledge button, I have only &MAILTO....
    I have three tiers for OCS 10.1.2.3 and the OID is separate of the Store database. I have run the Worflow Assistant configuration on my middeltier, and I have change the password on OID for the user owf_mgr to be the seem that in the store database.
    I have a single box installation and is work proprely...
    Can I help me ?
    Message was edited by:
    user473198
    The middle tier has been Migrate to a v2 installe (9i) to a 10.1.2.0 ... and the schema of OWF_MGR cannot be removed... it's the problem ?

    Hello Deepika,
    I don't know, how to integrate the
    <a href="http://...">URL-description</a>
    into the notification, but when using plain text, most of the email clients suppress the line-breaks when the URL is fit in-between of < and >
    <http://www.long-url-here-with-a-line-break-in-the
    middle-of-nowhere.com>
    Maybe this gives you a quicker help.
    Best wishes,
    Florin

  • Nokia lumia 520 push notification problem with wha...

    I have a Lumia 520, and i find that i do not receive push notifications for my whatsapp messages. I have to open the application before the messages come through. I would like to know how to correct this. I have checked all my settings.

    On a HTC-forum I saw the next solution, and it works also for Nokia Lumia!  That means it is a Microsoft Issue!
    1) Unpin Windows store from start
    2) ERASE Internet Explorer History
    3) ADD new language to the keyboard (Settings-->keyboard-->add keyboards
        (CHOOSE A LANGUAGE THAT REQUIRE DOWNLOAD)
    4) When downloading is finished, it will ask to restart and install
    5) After installation and restart do the following;
         A) UNINSTALL WHATSAPP
         B) REINSTALL WHATSAPP (you can get conversation history back when asked, so no problem)
    After this the push function works, but there is still a delay up to 10 minutes! So when you test, be patient.
    NO BETTER PRESSURE MEDIUM THAN ANTI ADVERTISING SO AFTER THIS EXPEDITION PLEASE CHANGE YOUR STATUS TEXT TO:
    USING WINDOWS; THAT MEANS DELAY UP TO 10 MINUTES
    When all Window Phone users display that message, Microsoft has to come with a final solution! 
    Please spread the word

  • Community boards notification problem.

    Didn't quite know where to post this, hope here is okay!
    Although I have all the various options for notifications by email selected in the board preferences, I am not getting any sent through, the email address is correct. Any one else having this problem and/or know how to rectify the problem?
    Cheers.

    Thank you, Andrew.
    I have reported the matter to the hosts.   As you will understand, they operate in their own way and we cannot guarantee they will reply.   But my experience is they are very helpful and usually resolve matters like this.

  • Web Expense Notification problem in 11.5.7

    Hi all,
    When we create an Internet Expense with 40 lines the notification does not reach the manager for approval but it can be approved from Workflow Administrator responsibility.
    The problem does not occur for Expenses upto 30 lines.
    We are doing this on 11.5.7.
    Your valuable suggestions are appreciated.
    Regards,
    Avi

    This may seem a bit silly but could you install a 10g/11g database somewhere and then create a plsql package/function on the new rdbms to call the webservice? Then access the function via a dblink? I haven't done it with webservices but we do access plsql programs over dblinks all the time (we usually do keep them at the same rdbms version though).
    Edited by: mcharchu on Jan 8, 2009 8:56 AM

  • LMS 3.2 DFM email notification problem

    Hi,
    I got a problem in a newly installed LMS 3.2 with the DFM email notification.
    I can see the alerts appering on Alerts&Activities, but DFM would not send any emails.
    I can get emails from other moduls of LMS. CS sends me emails from successfully backups.
    The SNMP Server works fine. The settings are ok.
    I already reinstalled DFM.
    I have seen a thread exists on supportforum.cisco.com with the same problem.
    (https://supportforums.cisco.com/message/3033101#3033101)
    Maybe anyone have the answer to this problem.
    Thanks,
    C8-Netzwerk

    This looks like an issue I am currently tracking.  I have written a patch which should correct this.  You can get the patch by opening a TAC service request, and having your engineer contact me directly.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • Email notification problems

    Used to be the email notification appeared in my outlook in box and then disappeared when the message was delivered. Now it just stays there and also appears in my 8830. How can I fix this problems? Thanks.

    This is the notification that is also appearing in the blackberry:
    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]
    Sent: Saturday, August 02, 2008 07:05
    To: Dale Brown
    Subject: [NEWSENDER] - RIM_bca28a80-e9c0-11d1-87fe-00600811c6a2 -
    Message is from an unknown sender
    This message is used to carry data between the BlackBerry handheld and
    an associated server. Please do not delete, move or respond to this
    message - it will be processed by the server.
    BEGINETP 10
    A4kFAAAAAAAAAQ!!
    ENDETP 505820133

  • Notification Problem on: Calendar Server 6.0 and IMServer 6.1

    Hello everybody,
    I have a very confusing problem with the Instant Messenger notification feauture for the Sun ONE Calendar server. I have set up both servers and the jms can communicate with ens and the other way round. But if a event occours I get the following Message in the /var/opt/SUNWiim/default/log/server.log file:
    [19/Mar/2004:15:35:00 +0100] WARNING: CalendarReminder: User [email protected] Does not exist. (xxx is username and domainname)
    But now its getting confusing, if I send myself an Alert message over the IMS client applet I can see the following Message:
    [19/Mar/2004:17:53:00 +0100] DEBUG: [Realm] getUser: [email protected]
    [19/Mar/2004:17:53:00 +0100] DEBUG: [Realm] found user in cache: [email protected]
    [19/Mar/2004:17:53:00 +0100] DEBUG: Sending Alert/Invite
    Any ideas what I could have done wrong?
    Many thanks in advance
    Stefan Peinkofer

    I have the same problem... any forward in Struts after a call to WebLogic 8 session EJB will give me the same AccessControlException in HttpRequestFacade.getHttpRequestBase.
    It seems that after WebLogic EJBs is called, the security policy gets all mixed up. You can fix this by granting in code the correct policy just before the forward... but this is a workaround not a fix (and a potential security hole).
                Policy.setPolicy(
                    new Policy() {
                        public PermissionCollection getPermissions(CodeSource cs) {
                            Permissions perms = new Permissions();
                            perms.add(new AllPermission());
                            return(perms);
                        public void refresh() {
                return actionMapping.findForward("success");           

  • JDialog sizing problems

    First of all, just let me say I have read everything there is available on layout managers and how pack() and validate() work.
    My problem is simply that my JDialog appears far longer than its components, and I can't see why.
    I've created screenshots of the desired appearance and the actual appearance:
    http://www.komododave.co.uk/gallery/main.php?g2_itemId=167
    The first 'undesired' screenshot shows what the JDialog looks like upon instantiation. The second shows what it looks like once you manually shrink it in the Y direction by more than about 10 pixels.
    I don't understand how the maximum size can exceed the Dimension I set with 'dialog.setMaximumSize(...', since I'm using BoxLayout for the JDialog and that respects a given maximum size.
    The constructor creating the JDialog is shown here:
              public AbstractSelectionDialog(Vector<String> argVector, String title,
                        String message) {
                   Vector<String> vector = argVector;
                   // create new modal JDialog
                   final JDialog dialog = new JDialog(Silk.getFrame(), title, true);
                   // set boxlayout for dialog frame
                   dialog.getContentPane().setLayout(new BoxLayout(dialog.getContentPane(),
                             BoxLayout.Y_AXIS));
                   // set default close operation
                   dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                   // create ButtonGroup to enforce exclusive collection choice
                   final ButtonGroup buttonGroup = new ButtonGroup();
                   // initialise other components
                   // use fake space for label rather than use another HorizontalGlue
                   JLabel label = new JLabel("   " + message);
                   // panel containing collection selection
                   JPanel selectionPanel = new JPanel();
                   // run initialiser methods
                   JPanel buttonPanel = (JPanel) createButtons(buttonGroup, dialog);
                   AbstractButton selection[] = createSelection(vector, buttonGroup,
                             selectionPanel);
                   // scrollPane containing collection panel
                   JScrollPane scrollPane = new JScrollPane(selectionPanel,
                             JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                             JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
                   // panel containing scroll pane
                   JPanel scrollPanel = new JPanel();
                   scrollPanel.setLayout(new BoxLayout(scrollPanel, BoxLayout.X_AXIS));
                   selectionPanel.setLayout(new GridLayout(vector.size(), 1));
                   // assemble component structure
                   scrollPanel.add(Box.createHorizontalGlue());
                   scrollPanel.add(scrollPane);
                   scrollPanel.add(Box.createHorizontalGlue());
                   dialog.add(label);
                   dialog.add(scrollPanel);
                   dialog.add(buttonPanel);
                   // set all components to be left-justified
                   label.setAlignmentX(0.0F);
                   scrollPanel.setAlignmentX(0.0F);
                   selectionPanel.setAlignmentX(0.0F);
                   buttonPanel.setAlignmentX(0.0F);
                   // set higher-level component sizes
                   Silk.setSizeAttributes(label, 300, 30, true);
                   selectionPanel.setMaximumSize(new Dimension(250, 400));
                   scrollPane.setMinimumSize(new Dimension(250, 50));
                   scrollPane.setMaximumSize(new Dimension(250, 400));
                   dialog.setMinimumSize(new Dimension(300, 200));
                   dialog.setMaximumSize(new Dimension(300, 500));
                   dialog.pack();
                   // set components to be opaque
                   label.setOpaque(true);
                   scrollPane.setOpaque(true);
                   selectionPanel.setOpaque(true);
                   // display dialog frame
                   //dialog.setResizable(false);
                   dialog.setVisible(true);
              }The 'createButtons' method it uses is here:
         public JPanel createButtons(ButtonGroup bg, JDialog jd) {
                   final ButtonGroup buttonGroup = bg;
                   final JDialog dialog = jd;
                   // confirmation buttons
                   JButton okBtn = new JButton();
                   JButton cancelBtn = new JButton();
                   JButton newBtn = new JButton();
                   // panel containing OK and CANCEL buttons
                   JPanel bothPanel = new JPanel();
                   // panel containing NEW COLLECTION button
                   JPanel newPanel = new JPanel();
                   // panel to contain all other button panels
                   JPanel confPanel = new JPanel();
                   confPanel.setLayout(new BoxLayout(confPanel, BoxLayout.X_AXIS));
                   newPanel.setLayout(new BoxLayout(newPanel, BoxLayout.X_AXIS));
                   bothPanel.setLayout(new BoxLayout(bothPanel, BoxLayout.Y_AXIS));
                   // definition of button Actions
                   okBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                             Actions.addScript(buttonGroup.getSelection()
                                       .getActionCommand(), null);
                             dialog.dispose();
                   cancelBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                             dialog.dispose();
                   newBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                             dialog.dispose();
                             new Actions.NewCollectionAction().actionPerformed(ae);
                             new Actions.NewScriptAction().actionPerformed(ae);
                   // override action-set button text
                   okBtn.setText("Ok");
                   cancelBtn.setText("Cancel");
                   newBtn.setText("Add New Collection");
                   // set button sizes
                   Silk.setSizeAttributes(okBtn, 115, 30, true);
                   Silk.setSizeAttributes(cancelBtn, 115, 30, true);
                   Silk.setSizeAttributes(newBtn, 250, 35, true);
                   // set opaque buttons
                   confPanel.setOpaque(true);
                   okBtn.setOpaque(true);
                   cancelBtn.setOpaque(true);
                   // assemble components
                   confPanel.add(Box.createHorizontalGlue());
                   confPanel.add(okBtn);
                   confPanel.add(Box.createRigidArea(new Dimension(20, 0)));
                   confPanel.add(cancelBtn);
                   confPanel.add(Box.createHorizontalGlue());
                   newPanel.add(Box.createHorizontalGlue());
                   newPanel.add(newBtn);
                   newPanel.add(Box.createHorizontalGlue());
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 10)));
                   bothPanel.add(confPanel);
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 5)));
                   bothPanel.add(newPanel);
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 10)));
                   bothPanel.setMaximumSize(new Dimension(300, 100));
                   return bothPanel;
              }And the createSelection() method it uses is defined here:
         public AbstractButton[] createSelection(Vector<String> argVector,
                        ButtonGroup buttonGroup, JPanel selectionPanel) {
                   Vector<String> vector = argVector;
                   JRadioButton selection[] = new JRadioButton[vector.size()];
                   for (int i = 0; i < vector.size(); i++)
                        selection[i] = new JRadioButton(vector.get(i));
                   AbstractButton current;
                   for (byte i = 0; i < selection.length; i++) {
                        current = selection;
                        // set action command string to later identify button that's
                        // selected
                        current.setActionCommand(vector.get(i));
                        // fix button's size
                        Silk.setSizeAttributes(current, 250, 30, true);
                        // set button's colour
                        current.setBackground(Color.WHITE);
                        // add button to buttongroup
                        buttonGroup.add(current);
                        // add button to appropriate JPanel
                        selectionPanel.add(current);
                   // ensure one button is selected to prevent pressing OK with no
                   // selection
                   selection[0].setSelected(true);
                   return selection;
    Please help if you can.
    Thank you.
    - Dave

    Yeah sorry camickr, I need to get into the habit of posting SSCCEs.
    Here it is in SSCCE form:
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.AbstractButton;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.ButtonGroup;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    import javax.swing.JScrollPane;
    import java.util.Vector;
    public class Testing {
         // prevent instantiation
         private Testing() {
         public interface SelectionDialog {
              // produces a component containing all dialog buttons
              public Component createButtons(ButtonGroup bg, JDialog jd);
              // produces an array of the selection buttons to be used
              public abstract AbstractButton[] createSelection(
                        Vector<String> selectionVector, ButtonGroup buttonGroup,
                        JPanel selectionPanel);
         abstract static class AbstractSelectionDialog implements SelectionDialog {
              public AbstractSelectionDialog() {
                   Vector<String> vector = new Vector<String>();
                   String title = "Broken dialog box";
                   String message = "Why is the maximum size exceedable, hmm?";
                   /* for sscce */
                   vector.add("choice 1");
                   vector.add("choice 2");
                   vector.add("choice 3");
                   vector.add("choice 4");
                   vector.add("choice 5");
                   vector.add("choice 6");
                   vector.add("choice 7");
                   vector.add("choice 8");
                   vector.add("choice 9");
                   vector.add("choice 10");
                   vector.add("choice 11");
                   vector.add("choice 12");
                   vector.add("choice 13");
                   vector.add("choice 14");
                   vector.add("choice 15");
                   vector.add("choice 16");
                   vector.add("choice 17");
                   vector.add("choice 18");
                   // create new modal JDialog
                   final JDialog dialog = new JDialog(Silk.getFrame(), title, true);
                   // set boxlayout for dialog frame
                   dialog.getContentPane().setLayout(new BoxLayout(dialog.getContentPane(),
                             BoxLayout.Y_AXIS));
                   // set default close operation
                   dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
                   // create ButtonGroup to enforce exclusive collection choice
                   final ButtonGroup buttonGroup = new ButtonGroup();
                   // initialise other components
                   // use fake space for label rather than use another HorizontalGlue
                   JLabel label = new JLabel("   " + message);
                   // panel containing collection selection
                   JPanel selectionPanel = new JPanel();
                   // run initialiser methods
                   JPanel buttonPanel = (JPanel) createButtons(buttonGroup, dialog);
                   AbstractButton selection[] = createSelection(vector, buttonGroup,
                             selectionPanel);
                   // scrollPane containing collection panel
                   JScrollPane scrollPane = new JScrollPane(selectionPanel,
                             JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                             JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
                   // panel containing scroll pane
                   JPanel scrollPanel = new JPanel();
                   scrollPanel.setLayout(new BoxLayout(scrollPanel, BoxLayout.X_AXIS));
                   selectionPanel.setLayout(new GridLayout(vector.size(), 1));
                   // assemble component structure
                   scrollPanel.add(Box.createHorizontalGlue());
                   scrollPanel.add(scrollPane);
                   scrollPanel.add(Box.createHorizontalGlue());
                   dialog.add(label);
                   dialog.add(scrollPanel);
                   dialog.add(buttonPanel);
                   // set all components to be left-justified
                   label.setAlignmentX(0.0F);
                   scrollPanel.setAlignmentX(0.0F);
                   selectionPanel.setAlignmentX(0.0F);
                   buttonPanel.setAlignmentX(0.0F);
                   // set higher-level component sizes
                   Silk.setSizeAttributes(label, 300, 30, true);
                   selectionPanel.setMaximumSize(new Dimension(250, 400));
                   scrollPane.setMinimumSize(new Dimension(250, 50));
                   scrollPane.setMaximumSize(new Dimension(250, 400));
                   dialog.setMinimumSize(new Dimension(300, 200));
                   dialog.setMaximumSize(new Dimension(300, 500));
                   dialog.pack();
                   // set components to be opaque
                   label.setOpaque(true);
                   scrollPane.setOpaque(true);
                   selectionPanel.setOpaque(true);
                   // display dialog frame
                   // dialog.setResizable(false);
                   dialog.setVisible(true);
         protected static class ChooseCollectionDialog extends
                   AbstractSelectionDialog implements SelectionDialog {
              public ChooseCollectionDialog() {
                   super();
              public JPanel createButtons(ButtonGroup bg, JDialog jd) {
                   final ButtonGroup buttonGroup = bg;
                   final JDialog dialog = jd;
                   // confirmation buttons
                   JButton okBtn = new JButton();
                   JButton cancelBtn = new JButton();
                   JButton newBtn = new JButton();
                   // panel containing OK and CANCEL buttons
                   JPanel bothPanel = new JPanel();
                   // panel containing NEW COLLECTION button
                   JPanel newPanel = new JPanel();
                   // panel to contain all other button panels
                   JPanel confPanel = new JPanel();
                   confPanel.setLayout(new BoxLayout(confPanel, BoxLayout.X_AXIS));
                   newPanel.setLayout(new BoxLayout(newPanel, BoxLayout.X_AXIS));
                   bothPanel.setLayout(new BoxLayout(bothPanel, BoxLayout.Y_AXIS));
                   // definition of button Actions
                   okBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                             dialog.dispose();
                   cancelBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                             dialog.dispose();
                   newBtn.setAction(new AbstractAction() {
                        public void actionPerformed(ActionEvent ae) {
                   // override action-set button text
                   okBtn.setText("Ok");
                   cancelBtn.setText("Cancel");
                   newBtn.setText("Add New Collection");
                   // set button sizes
                   Silk.setSizeAttributes(okBtn, 115, 30, true);
                   Silk.setSizeAttributes(cancelBtn, 115, 30, true);
                   Silk.setSizeAttributes(newBtn, 250, 30, true);
                   // set opaque buttons
                   confPanel.setOpaque(true);
                   okBtn.setOpaque(true);
                   cancelBtn.setOpaque(true);
                   // assemble components
                   confPanel.add(Box.createHorizontalGlue());
                   confPanel.add(okBtn);
                   confPanel.add(Box.createRigidArea(new Dimension(20, 0)));
                   confPanel.add(cancelBtn);
                   confPanel.add(Box.createHorizontalGlue());
                   newPanel.add(Box.createHorizontalGlue());
                   newPanel.add(newBtn);
                   newPanel.add(Box.createHorizontalGlue());
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 10)));
                   bothPanel.add(confPanel);
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 5)));
                   bothPanel.add(newPanel);
                   bothPanel.add(Box.createRigidArea(new Dimension(0, 10)));
                   bothPanel.setMaximumSize(new Dimension(300, 100));
                   return bothPanel;
              public AbstractButton[] createSelection(Vector<String> argVector,
                        ButtonGroup buttonGroup, JPanel selectionPanel) {
                   Vector<String> vector = argVector;
                   JRadioButton selection[] = new JRadioButton[vector.size()];
                   for (int i = 0; i < vector.size(); i++)
                        selection[i] = new JRadioButton(vector.get(i));
                   AbstractButton current;
                   for (byte i = 0; i < selection.length; i++) {
                        current = selection;
                        // set action command string to later identify button that's
                        // selected
                        current.setActionCommand(vector.get(i));
                        // fix button's size
                        Silk.setSizeAttributes(current, 250, 30, true);
                        // set button's colour
                        current.setBackground(Color.WHITE);
                        // add button to buttongroup
                        buttonGroup.add(current);
                        // add button to appropriate JPanel
                        selectionPanel.add(current);
                   // ensure one button is selected to prevent pressing OK with no
                   // selection
                   selection[0].setSelected(true);
                   return selection;
         public static void main(String args[]) {
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new ChooseCollectionDialog();
    I considered that the GridLayout might be a problem, but surely the fact that it's ultimately contained in a BoxLayout (which [i]does respect maximum size) means the maximum size still shouldn't be exceedable?
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Notifications problem in Mountain Lion

    I have Calendar notifications set to Alerts. When I receive several Alerts at once, then try to close one, I am locked out of notifications, and attempts to close the Alerts produces only the dreaded spinning beach ball. I suspect some kind of third party software conflict, but don't know what it might be.
    At present the only remedy seems to be to restart the iMac (mid 2011) Logging out and back in does not resolve the issue.  I am going to try changing the Calendar notification from Alerts to Banners and see if that works better.
    Has anyone else had this problem or found a solution? Any help would be appreciated.
    Thanks,
    Keith

    I have exactly the same problem waking up my mid-2011 MBA (updated from factory Lion to OS X 10.8.2): multiple calendar alerts will appear together with alert e-mails from Yahoo account.  Clearing the alerts or deleting the alert e-mails will lead to spinning beach ball.  Remaining alerts at Notification Center cannot be cleared.
    The only alternative to shut down or restart the OS is to launch Activity Monitor via Spotlight, from filter search for and select Notification Center, click Quit Process and confirm Quit.  Spinning beach ball and orphan alerts will disappear.  Notification Center will remain working.  Extremely annoying but beats having to reboot.
    Cheer!

  • EWA Report Issue: Email notification problem

    Hi,
    I am running into a problem while sending EWA notifications to the concerned members. I have defined the needed user ids in table "DSWP_SYS_EMAIL" and all the members are duly getting all the EWA alerts defined against respective systems except one user. I have checked in SOST, this user name is not displayed every monday when these EWA reports are sent. I am not sure where else I have to look for solving this error. May any one please help and guide me in this?
    Regards,
    Faisal

    Hi Tim,
    Thanks for your reply. I had updated the respective user id in the above way mentioned by you last week and it seems now the user has received it (checked in SOST and user was sent EWA report).
    However, if the BADI is acitivated (as we are specifying the user ides for each system) why I need to mention this user in separately? I believe, any one of them will be active...Am I correct in this/
    PLease clarify.
    Regards,
    FAisal

Maybe you are looking for

  • I want to cancel

    please help me cancel my subscription. I used it for a month last year....I don't need it now.

  • Help for inserting/updating new record

    hi, i am trying to insert new data in account record in CRM OD from java using (web service v2.0 ) following methods AccountInsertInput accountinsert=new AccountInsertInput(); accountinsert.setListOfAccount(accountDataList); Here accountDataList is o

  • Sending a Message  in Exception Handler

    Is it possible to have a Send Step in an Exception Handler? How can I instantiate the Interface assigned to the Send step? Regards Mike

  • Waveform IRE Level Over 100 on Sony A77 but not for Canon T2i

    Why does the Sony A77 have a white IRE level over 100 while the Canon T2i max out at 100? You can view this larger if you like so you can see the graph better, http://www.flickr.com/photos/davedugdale/6326846722/. On my Canon I have highlight tone pr

  • Does EBS license include tools for reporting and extracting data (queries)

    Hello, I'm recommending Oracle EBS to a customer and I need to mention what tools for reporting and extracting data (queries) are included in a Oracle EBS license. I hope you can help me with that information, or at least with providing me the place