Calendar popup  window

I have searched the forums to try to find an answer to my question with no luck.
In our application, the reps need to be able to use the date popup window to specify a date range. We need the ability to choose a date range for last year and this year. We are using a model node for our data. When we select the date pop up the window only shows 3 weeks of dates. We can scroll forward and backward by months, but the buttons are not visible. We found this by accident. Is there a way to control the size, functionality and visibility of the calendar pop up window?
Thanks…..Tommy

Thanks for your response.
The fields we are using are of type date.
I also tested the change in a test project. I created a value attribute of type date. I created an input field on my view and use bound the field to the date attribue (I hope I said that right. I am fairly new to web dynpro).  When I executed the test view, I got the same result. The arrows are not present and the 4th week is half cut off.
Another developer has also been researching the issue. He believes there may be a bug with the java version we are using. Is this possible? We are using Java 1.4.2 and the Web Dynpro version is 7.0.09
Thanks....Tommy

Similar Messages

  • I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' it won't go away-'delete' is greyed out-can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

  • Calendar input help blinking on popup window

    Hi experts,
    I have strange behavior of input field with data element of type DATS assigned. Field is on popup window and when I try to pick a date value calendar input help blinks and hide, so it is not possible to pick a value. Any ideas why? Thank you.
    BR
    Paul

    Hi,
    solved, when popup window is smaller than calendar input help it blinks.
    BR
    Paul

  • I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup?

    I'm using "window.open()" to show one Calendar in a popup window. I can see that the popup is re-sizable. How can I prevent the user from re-sizing the popup? I have tried "resizable=yes|no|1|0" and that seems to be not working.

    You can't prevent users from resizing a pop-up.
    *https://developer.mozilla.org/en-US/docs/Web/API/window.open

  • Datepicker PopUp opens in the calling PopUp window

    Hey Guys, I need some help on this...
    I have a button that opens a PopUp window, and in this PopUp I have a "Date Picker" item,
    And when I want to select a date, the calendar shows up in the same PopUp window, and I m loosing the calling PopUp(the first one).
    How can I do so, that to have my PopUp window, and the calendart to show up in another PopUp?
    Thanks in Advance

    Hi,
    that's because of the Window Name you specified. Specify another one or use the popUp2 method which will create a unique name.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • Add a Scrollbar to a popup window

    Hello,
    I have a calendar in an application that lists appointments.  The appointment is a link that opens a popup windows that gives the appointment details.  The problem is the popup window does not have a scrollbar and for some users all of the text is not visible.  Is there an easy way to add a vertical scrollbar to a popup window in APEX?
    I am using APEX 4.1 on an Oracle 11g database.
    Thanks,
    Bob

    The overflow:scroll; is a css rule.  The way your page is written, if you simply put this rule in here
    body,td,th {
        font-family: Comic Sans MS, cursive;
        font-weight: bold;
        font-size: 14px;
        color: #5A1E02;
    I think it will cause you problems.
    I would say create a class, like so
    .scroll     {
         overflow:hidden;
    You would put this in your css.
    Then in the html, I would add the class the the <td> that you want to scroll.  So change this
    <td height="422"><img src="http://www.bearground.com/exads/alicanad/images/programagrizzly.jpg" width="599" height="637" /></td>
    to this
    <td class="scroll"><img src="http://www.bearground.com/exads/alicanad/images/programagrizzly.jpg" width="599" height="637" /></td>
    See what that does for you.
    Gary

  • Opening Date Picker in popup window

    Hi All,
    I'd like to be able to use a Date Picker in a custom popup window that I've developed. When I open the date picker however, because I'm already in a popup window the date picker fills the whole of the custom popup, rather than opening in its own window.
    Is there a way to force the date picker into using a new window?
    Thanks,
    Mike

    Hi Mike;
    Thanks for the responce. My Tabular (Popup) form is wizard generated. This is the code I use to call the Popup:
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function callACNEPopup (formItem1) {
    var formVal1 = document.getElementById(formItem1).value;
    var url;
    url = 'f?p=&APP_ID.:60:&FLOW_SESSION.::::P60_ACAC_UID:' + formVal1;
    wACNE = open(url,"winLov","Scrollbars=1,resizable=1,width=675,height=300");
    if (wACNE.opener == null)
    wACNE.opener = self;
    wACNE.focus();
    </script>
    The Calendar is simply a date picker.

  • Tabular form on page popup with calendar popup

    Hi,
    i have a main page forrm (P5005)
    i have a botton for calling a tabular form on popup window (P5035)
    target is a: URL
    URL Target:
    javascript:popupURL('f?p=&APP_ID.:5035:&APP_SESSION.::::P5035_IDENTIF:&P5005_IDENTIF.',100,100)
    tabular form (P5035)
    i have a botton for close popup
    target is a: URL
    URL Target:
    javascript:close();
    on the same tabulare form for ogni row i have a date item with
    display as: data picker
    data picker format mask: Data Picker(DD-MON-RR)
    1. issue
    click on day calendar don't return pick value
    2. click on close button
    return on page P5005 (main form) no on popup form (P5035) (calling caledar form)
    Any help?
    Thanks in advance
    km

    Hi,
    Ummm... OK - the same thing started happening to me as well :(
    I've tried various things, and the following seems to work ok:
    &lt;a href="javascript:openPage2();"&gt;Open page 2&lt;/a&gt;
    &lt;script type="text/javascript"&gt;
    function openPage2()
    var x = open('page2.html', 'x', 'height=200,width=400,status=yes,toolbar=no,menubar=no,location=no', false);
    if (x.opener == null) {x.opener = self;}
    x.focus();
    &lt;/script&gt;and the Close option should be:
    &lt;button onclick="javascript:window.close();"&gt;Close&lt;/button&gt;So, change the url to call a function and make sure the function is defined in a similar way to the above.
    Andy

  • Problem with af:selectInputDate (no calendar popup)

    Hi All,
    I have a problem with the af:selectInputDate component and the calendar popup when using a custom converter. My converter converts the date in a way, that it always has a four digit year depending on the short date format and the corresponding locale, e.g. 01/18/2007 instead of 01/18/07 for en-us. It looks like when I am using my converter with the component in the following way some javascript is not generated by the af:selectInputDate which results in an javascript error when clicking on the popup button:
    <h:panelGroup>
    <af:selectInputDate id="idPatientBirthDate" columns="12" simple="true" value="#{PatientDetails.patient.birthDate}">
    <f:converter converterId="BirthdateConverter" />
    </af:selectInputDate>
    <h:message for="idPatientBirthDate" errorClass="errorMessageStyle"></h:message>     
    </h:panelGroup>
    The following javascript is not generated using the above jsf:
    <script>
    if(window['_dfs'] == (void 0)){var _dfs=new Object();}_dfs["_id43:general:idPatientBirthDate"]='M/d/yyyy';function __id43Validator(){return true;}
    </script>
    I am using version 10.1.3.0.4 of ADF faces.
    My BirthdateConverter is a standard converter that implements the Converter interface and is not doing any magical. It works perfectly for other components. An interesting fact is, that the above javascript gets generated when I am using no converter at all or the standard date/time converters like f:convertDateTime provided by the RI. However, these don't provide the functionality I need.
    I have the bad feeling, that I am missing something. Does anyone else ran across this problem?
    Thanks,
    Herbert

    Frank,
    Thank you for your answer. I'm not using ADF BC, so is there a possible workaround? My model provides a standard java.util.Date. My converter looks like:
    public class BirthdateConverter implements Converter {
      public Object getAsObject(FacesContext facesContext, UIComponent uIComponent, String sDate) {
        Locale locale = facesContext.getCurrentInstance().getExternalContext().getRequestLocale();
        String pattern = AppUtil.getFourDigitYearPattern(DateFormat.SHORT);
        SimpleDateFormat sdf = new SimpleDateFormat(pattern, locale);
        java.util.Date d = sdf.parse(sDate);
        // converter logic
        return d;
      public String getAsString(FacesContext facesContext, UIComponent uIComponent, Object object) {
        if (object == null)
          return null;
        if (!(object instanceof Date))
          return object.toString();
        Locale locale = facesContext.getCurrentInstance().getExternalContext().getRequestLocale();
        String pattern = AppUtil.getFourDigitYearPattern(DateFormat.SHORT);
        SimpleDateFormat sdf = new SimpleDateFormat(pattern, locale);
        return sdf.format((java.util.Date)object);
    }AppUtil.getFourDigitYearPattern(DateFormat.SHORT) provides a date pattern, e.g. "M/d/yyyy" for locale en-us. In the above code I did not include try-catch blocks to make it more readable.
    Herbert
    Message was edited by:
    user575859

  • Calendar Popup Formatting

    Is there some way I can adjust the Calendar Popup formatting, especially the background colour.
    I imagine these formats are set in a CSS file somewhere, but would appreciate some help in finding them.
    Thanks

    From what I can tell when you place a date picker item on a page htmldb writes a script that calls the popup window. In this script it specifies the background color. I cannot see any way to change this though.
    When you inspect the source of the calendar popup there is not a link to any css file so that is not an option either.
    It looks like the background color is hard-coded somewhere in the htmldb engine. It would be a useful enhancement to add a link to a css file so we could customize the calendar.

  • Anyone built date/calendar popup??

    I have a third party calendar popup set of classes that I wish to use in a JTable.
    The JTable editor/renderer does not seem to work with this class. (Third party components fault)
    Has anyone developed their own calendar popup that can be used within a JTable to set dates.
    I'm working with JDK1.3, therefore cannot use JFormattedTextField, mores the pity!!!
    Any help/tips appreciated.
    Thanks,
    Rachel

    I did this about a year ago. I used Claude Dugay's JMaskField instead of JFormattedTextField. It's easy to find, but it needs to have some patches for a few quirks. You will probably recognize a lot of the code. I tried to make it handle a variety of Object types (Date, String, Calendar). I also needed an extra value (N/A for example). Here's the main class.import com.bbritta.jmaskfield.JMaskField;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.Border;
    import javax.swing.border.EmptyBorder;
    import javax.swing.border.EtchedBorder;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import javax.swing.plaf.basic.ComboPopup;
    import javax.swing.plaf.ComboBoxUI;
    import javax.swing.plaf.basic.BasicComboBoxEditor;
    import javax.swing.plaf.metal.MetalComboBoxUI;
    import com.sun.java.swing.plaf.motif.MotifComboBoxUI;
    import com.sun.java.swing.plaf.windows.WindowsComboBoxUI;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import java.util.Vector;
    import java.util.EventListener;
    public class DateComboBox extends JComboBox {
        private final static SimpleDateFormat defaultSDF = new SimpleDateFormat("MM/dd/yyyy");
        SimpleDateFormat sdf;
        Class returnClass=null;
        FormattedCalendar fc = new FormattedCalendar(sdf);
        Object alternate=null;
        MyComboBoxEditor mcbe;
        KeyAdapter ka = new KeyAdapter() {
         public void keyReleased(KeyEvent ke) {
             JTextField jtf = (JTextField)ke.getSource();
             switch (ke.getKeyCode()) {
              case KeyEvent.VK_ESCAPE:
                  jtf.setText(fc.toString());
                  break;
              case KeyEvent.VK_ENTER:
                  setValue(jtf.getText());
                  javax.swing.FocusManager.getCurrentManager().focusNextComponent(jtf);
                  break;
        JMaskField jmf = null;
        JTextField editorComponent;
        boolean blockItemStateEvent=false, blockActionEvent=false;
        private DatePopup datePopup;
        public DateComboBox(JMaskField JMF, SimpleDateFormat SDF) {
         this(SDF);
         setEditor(mcbe = new MyComboBoxEditor(jmf=JMF));
         ((JTextField)getEditor().getEditorComponent()).addKeyListener(ka);
        public DateComboBox(JMaskField JMF) { this(JMF, defaultSDF); }
        public DateComboBox(SimpleDateFormat SDF) {
         setFormat(sdf=SDF);
         editorComponent = (JTextField)getEditor().getEditorComponent();
         addItem(fc);
         editorComponent.addKeyListener(ka);
        public DateComboBox() {
         this(defaultSDF);
        // JComboBox source code sez not to override this, but waddahell
        public void actionPerformed(ActionEvent ae) {
         setValue(getEditor().getItem());
        public void setReturnClass(Class aClass) {
         if (aClass==null || aClass==String.class || aClass==Date.class ||
                       aClass.isAssignableFrom(Calendar.class)) {
             returnClass=aClass;
         } else throw new IllegalArgumentException("Invalid return class");
        public Class getReturnClass() { return returnClass; }
        public void setSelectedItem(Object item) { setValue(item); }
        public void setValue(Object value) {
         ((JTextField)getEditor().getEditorComponent()).setEditable(true);
         Object oldSelectedItem = super.getSelectedItem();
         blockActionEvent=true;
         blockItemStateEvent=true;
         dataModel.setSelectedItem(null);
         blockActionEvent=false;
         blockItemStateEvent=false;
         if (value instanceof Date) {
             if (jmf!=null) jmf.setMaskDocument();
             fc.setTime((Date)value);
             super.setSelectedItem(fc);
         } else if (value instanceof Calendar) {
             if (jmf!=null) jmf.setMaskDocument();
             fc.setTime(((Calendar)value).getTime());
             super.setSelectedItem(fc);
         } else if (alternate!=null && alternate.toString().equalsIgnoreCase(value.toString())) {
             if (jmf!=null) jmf.setOrigDocument();
             super.setSelectedItem(alternate);
             ((JTextField)getEditor().getEditorComponent()).setEditable(false);
         } else if (value instanceof String) {
             try {
              fc.setTime((String)value);
              super.setSelectedItem(fc);
              if (jmf!=null) jmf.setMaskDocument();
             catch (ParseException pe) {
              if (jmf!=null) jmf.setMaskDocument();
              super.setSelectedItem(value);
              fireInvalidDate(new InvalidDateEvent(this, value));
         } else {
             if (jmf!=null) jmf.setMaskDocument();
             fireInvalidDate(new InvalidDateEvent(this, value));
        public void addInvalidDateListener(InvalidDateListener l) {
         listenerList.add(InvalidDateListener.class, l);
        public void removeInvalidDateListener(InvalidDateListener l) {
         listenerList.remove(InvalidDateListener.class, l);
        protected void fireInvalidDate(final InvalidDateEvent e) {
         final Object[] listeners = listenerList.getListenerList();
    //     System.out.println("SI="+super.getSelectedIndex()+", lc="+listeners.length);
         SwingUtilities.invokeLater(new Runnable() { public void run() {
             for (int i=listeners.length-2; i>=0; i-=2 ) {
              if (listeners==InvalidDateListener.class ) {
              ((InvalidDateListener)listeners[i+1]).invalidDate(e);
    protected void fireActionEvent() {
         if (!blockActionEvent) super.fireActionEvent();
    protected void fireItemStateChanged(ItemEvent e) {
         if (!blockItemStateEvent) super.fireItemStateChanged(e);
    public Object getValue() {
         Object selectedItem = super.getSelectedItem();
         if (selectedItem==fc) {
         if (jmf != null) jmf.setMaskDocument();
         if (returnClass==null || returnClass==Calendar.class) return fc;
         if (returnClass==Date.class) return fc.getTime();
         if (returnClass==String.class) return fc.toString();
         } else if (selectedItem==alternate) if (jmf!=null) jmf.setOrigDocument();
         else if (jmf!=null) jmf.setMaskDocument();
         return selectedItem;
    public void setAlternate(Object Alternate) {
         if (alternate != null) super.removeItem(alternate);
         datePopup.setAlternate(Alternate);
         alternate = Alternate;
         super.addItem(alternate);
    public Object getAlternate() { return alternate; }
    public void updateUI() {
         ComboBoxUI cui = (ComboBoxUI) UIManager.getUI(this);
         if (cui instanceof MetalComboBoxUI) { cui = new MetalDateComboBoxUI(); }
         else if (cui instanceof MotifComboBoxUI) { cui = new MotifDateComboBoxUI(); }
         else if (cui instanceof WindowsComboBoxUI) { cui = new WindowsDateComboBoxUI(); }
         setUI(cui);
    class MetalDateComboBoxUI extends MetalComboBoxUI {
         protected ComboPopup createPopup() { return datePopup = new DatePopup(comboBox, sdf); }
    class WindowsDateComboBoxUI extends WindowsComboBoxUI {
         protected ComboPopup createPopup() { return datePopup = new DatePopup(comboBox, sdf); }
    class MotifDateComboBoxUI extends MotifComboBoxUI {
         protected ComboPopup createPopup() { return datePopup = new DatePopup(comboBox, sdf); }
    public void setFormat(SimpleDateFormat SDF) {
         datePopup.setFormat(SDF);
         fc.setFormat(SDF);
    public SimpleDateFormat getFormat() { return sdf; }
    class DatePopup implements ComboPopup, MouseMotionListener, MouseListener,
                   KeyListener, PopupMenuListener, ActionListener {
    private static final SimpleDateFormat defaultSDF = new SimpleDateFormat("MM/dd/yy");
    // protected SimpleDateFormat dateFormat = new SimpleDateFormat("MMM d, yyyy");
    protected SimpleDateFormat dateFormat;// = new SimpleDateFormat("MM/dd/yy");
    protected DateComboBox comboBox;
    protected Calendar calendar;
    protected JPopupMenu popup;
    protected JLabel monthLabel;
    protected JPanel days = null, alternatePanel = new JPanel(new FlowLayout());
    protected JButton alternateButton = new JButton();
    protected Vector listenerComponents = new Vector();
    protected SimpleDateFormat monthFormat = new SimpleDateFormat("MMM yyyy");
    protected void setFormat(SimpleDateFormat SDF) { dateFormat=SDF; }
    protected Color selectedBackground, selectedForeground,
                   background, foreground;
    public DatePopup(JComboBox comboBox) {
         this(comboBox, defaultSDF);
    public DatePopup(JComboBox comboBox, SimpleDateFormat SDF) {
         dateFormat = SDF;
         this.comboBox = (DateComboBox)comboBox;
         calendar = Calendar.getInstance();
         // check Look and Feel
         background = UIManager.getColor("ComboBox.background");
         foreground = UIManager.getColor("ComboBox.foreground");
         selectedBackground = UIManager.getColor("ComboBox.selectionBackground");
         selectedForeground = UIManager.getColor("ComboBox.selectionForeground");
         alternatePanel.setBackground(background);
         alternatePanel.setOpaque(true);
         alternateButton.setBorder(BorderFactory.createRaisedBevelBorder());
         alternatePanel.add(alternateButton);
         alternateButton.addActionListener(this);
         initializePopup();
    //========================================
    // begin ComboPopup method implementations
    public void show() {
         try {
         // if setSelectedItem() was called with a valid date, adjust the calendar
         calendar.setTime( dateFormat.parse( comboBox.getSelectedItem().toString() ) );
         } catch (Exception e) {}
         updatePopup();
         popup.show(comboBox, 0, comboBox.getHeight());
    public void hide() {
         for (int i=0; i<listenerComponents.size(); i++) {
         Component c = (Component)listenerComponents.get(i);
         EventListener[] l = c.getListeners(MouseListener.class);
         for (int j=0; j<l.length; j++) c.removeMouseListener((MouseListener)l[j]);
         listenerComponents.removeAllElements();
         popup.removePopupMenuListener(this);
         popup.setVisible(false);
    protected JList list = new JList();
    public JList getList() { return list; }
    public MouseListener getMouseListener() { return this; }
    public MouseMotionListener getMouseMotionListener() { return this; }
    public KeyListener getKeyListener() { return this; }
    public boolean isVisible() { return popup.isVisible(); }
    public void uninstallingUI() { popup.removePopupMenuListener(this); }
    // end ComboPopup method implementations
    //======================================
    //===================================================================
    // begin Event Listeners
    // MouseListener
    public void mousePressed( MouseEvent e ) {}
    public void mouseReleased( MouseEvent e ) {}
    // something else registered for MousePressed
    public void mouseClicked(MouseEvent e) {
         if ( !SwingUtilities.isLeftMouseButton(e) ) return;
         if ( !comboBox.isEnabled() ) return;
         if ( comboBox.isEditable() ) {
         comboBox.getEditor().getEditorComponent().requestFocus();
         } else comboBox.requestFocus();
         togglePopup();
    protected boolean mouseInside = false;
    public void mouseEntered(MouseEvent e) { mouseInside = true; }
    public void mouseExited(MouseEvent e) { mouseInside = false; }
    // MouseMotionListener
    public void mouseDragged(MouseEvent e) {}
    public void mouseMoved(MouseEvent e) {}
    // KeyListener
    public void keyPressed(KeyEvent e) {}
    public void keyTyped(KeyEvent e) {}
    public void keyReleased( KeyEvent e ) {
         if ( e.getKeyCode() == KeyEvent.VK_SPACE ||
         e.getKeyCode() == KeyEvent.VK_ENTER ) {
         togglePopup();
    * Variables hideNext and mouseInside are used to
    * hide the popupMenu by clicking the mouse in the JComboBox
    public void popupMenuCanceled(PopupMenuEvent e) {}
    protected boolean hideNext = false;
    public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
         hideNext = mouseInside;
    public void popupMenuWillBecomeVisible(PopupMenuEvent e) {}
    // end Event Listeners
    //=================================================================
    //===================================================================
    // begin Utility methods
    protected void togglePopup() {
         if ( isVisible() || hideNext ) hide();
         else show();
         hideNext = false;
    // end Utility methods
    //=================================================================
    // Note *** did not use JButton because Popup closes when pressed
    protected JLabel createUpdateButton(final int field, final int amount) {
         final JLabel label = new JLabel();
         final Border selectedBorder = new EtchedBorder();
         final Border unselectedBorder = new EmptyBorder(selectedBorder.getBorderInsets(new JLabel()));
         label.setBorder(unselectedBorder);
         label.setForeground(foreground);
         label.addMouseListener(new MouseAdapter() {
              public void mouseReleased(MouseEvent e) {
              calendar.add(field, amount);
              updatePopup();
              public void mouseEntered(MouseEvent e) {
              label.setBorder(selectedBorder);
              public void mouseExited(MouseEvent e) {
              label.setBorder(unselectedBorder);
         return label;
    protected void setAlternate(Object Alternate) {
         if (Alternate != null) {
         alternateButton.setText(Alternate.toString());
         if (alternatePanel.getParent()!=popup) popup.add(alternatePanel, BorderLayout.SOUTH);
         } else popup.remove(alternatePanel);
    protected void initializePopup() {
         JPanel header = new JPanel(); // used Box, but it wasn't Opaque
         header.setLayout(new BoxLayout(header, BoxLayout.X_AXIS));
         header.setBackground(background);
         header.setOpaque(true);
         JLabel label;
         label = createUpdateButton(Calendar.YEAR, -1);
         label.setText("<<");
         label.setToolTipText("Previous Year");
         header.add(Box.createHorizontalStrut(12));
         header.add(label);
         header.add(Box.createHorizontalStrut(12));
         label = createUpdateButton(Calendar.MONTH, -1);
         label.setText("<");
         label.setToolTipText("Previous Month");
         header.add(label);
         monthLabel = new JLabel("", JLabel.CENTER);
         monthLabel.setForeground(foreground);
         header.add(Box.createHorizontalGlue());
         header.add(monthLabel);
         header.add(Box.createHorizontalGlue());
         label = createUpdateButton(Calendar.MONTH, 1);
         label.setText(">");
         label.setToolTipText("Next Month");
         header.add(label);
         label = createUpdateButton(Calendar.YEAR, 1);
         label.setText(">>");
         label.setToolTipText("Next Year");
         header.add(Box.createHorizontalStrut(12));
         header.add(label);
         header.add(Box.createHorizontalStrut(12));
         popup = new JPopupMenu();
         popup.setBorder(BorderFactory.createLineBorder(Color.black));
         popup.setLayout(new BorderLayout());
         popup.setBackground(background);
         popup.addPopupMenuListener(this);
         popup.add(BorderLayout.NORTH, header);
    private SimpleDateFormat dowSDF = new SimpleDateFormat("EEE");
    public void actionPerformed(ActionEvent ae) {
         comboBox.setSelectedItem(comboBox.getAlternate());
         hide();
    // update the Popup when either the month or the year of the calendar has been changed
    protected void updatePopup() {
         monthLabel.setText( monthFormat.format(calendar.getTime()) );
         if (days != null) {
         popup.remove(days);
         days = new JPanel(new GridLayout(0, 7));
         days.setBackground(background);
         days.setOpaque(true);
         Calendar setupCalendar = (Calendar) calendar.clone();
         setupCalendar.set(Calendar.DAY_OF_WEEK, setupCalendar.getFirstDayOfWeek());
         for (int i = 0; i < 7; i++) {
         int dayInt = setupCalendar.get(Calendar.DAY_OF_WEEK);
         JLabel label = new JLabel(dowSDF.format(setupCalendar.getTime()));
         label.setHorizontalAlignment(JLabel.CENTER);
         label.setForeground(foreground);
         days.add(label);
         setupCalendar.roll(Calendar.DAY_OF_WEEK, true);
         setupCalendar = (Calendar) calendar.clone();
         setupCalendar.set(Calendar.DAY_OF_MONTH, 1);
         int first = setupCalendar.get(Calendar.DAY_OF_WEEK);
         for (int i = 0; i < (first - 1); i++) days.add(new JLabel(""));
         for (int i = 1; i <= setupCalendar.getActualMaximum(Calendar.DAY_OF_MONTH); i++) {
         final int day = i;
         final JLabel label = new JLabel(String.valueOf(day));
         label.setHorizontalAlignment(JLabel.CENTER);
         label.setForeground(foreground);
         listenerComponents.add(label);
         label.addMouseListener(new MouseAdapter() {
              public void mouseReleased(MouseEvent e) {
                   label.setOpaque(false);
                   label.setBackground(background);
                   label.setForeground(foreground);
                   calendar.set(Calendar.DAY_OF_MONTH, day);
                   comboBox.setSelectedItem(calendar);
                   hide();
                   comboBox.requestFocus();
              public void mouseEntered(MouseEvent e) {
                   label.setOpaque(true);
                   label.setBackground(selectedBackground);
                   label.setForeground(selectedForeground);
              public void mouseExited(MouseEvent e) {
                   label.setOpaque(false);
                   label.setBackground(background);
                   label.setForeground(foreground);
         days.add(label);
         popup.add(BorderLayout.CENTER, days);
         popup.pack();
    class MyComboBoxEditor extends BasicComboBoxEditor {
    public MyComboBoxEditor() {}
    public MyComboBoxEditor(JMaskField JMF) {
         super.editor = JMF;

  • Vba: separate popup windows for messages and reminders?

    One of the things I miss, and know that many probably don't, but I do, is the separate popup windows that Outlook used to deploy for reminders and incoming email notifications.  They weren't all lumped in together as in recent Outlook versions. 
    I'm sure this new way works for many people but for power users such as myself, it was much easier to control things when each reminder or notification was separate.  Tedious, sure, when there were a lot, but certainly much easier than today's environment,
    ultimately.
    As I've found and implemented more and more vb, I'm getting back a lot of lost functionality from the past.  I went looking and thought I'd found a macro a couple of weeks ago that would do the job but it's actually not turned as I'd hoped.  Here
    it is, the one that I use for emails from the folks, to give an example; it's invoked through a rule:
    ' HOME Emails:
    Sub CustomMailMessageRule_Mom_or_Dad(Item As Outlook.MailItem)
    MsgBox "Mail Received from Mom or Dad: " & Item.Subject
    End Sub
    The above does sort of give me a separate window popup but it's one that stops everything else in its tracks.  I have to accept it before more notifications pop up but they also stop any notifications from Outlook, period, yet don't give me separate
    notification popups that can then be snoozed or even just minimized! Not good.
    Can anyone suggest something that would help?  I recently moved all my reminders that were on a third party application to a secondary calendar that I created in Outlook where I saw, to my delight, that now will fire up reminders - something that wasn't
    possible in the past (one tiny good thing we've received in exchange for so much lost functionality from a user standpoint! <g>).  It's just now even more difficult to work through everything that is lumped in under one window - And no custom boxes
    with different colours or _anything_ to help differentiate them.
    So, is there any way, perhaps vb, to have notifications fired from different popup windows somehow, emulating older Outlook versions?
    Thanks so much!

    Hello SGFan,
    The MsgBox call stops the current thread until it is closed, i.e. the modal form is displayed. But you are interested in a non-modal form which doesn't stop the thread.
    You can try to display a user form instead using the Show method.
    UserForm1.Show vbModeless
    However, it will not let the Outlook running. You need to display the form on another thread, it is possible with add-ins (not VBA).  See  Modeless
    form that still pauses code execution for more information.
    So sorry for the delay.  I'm still with the same problem so the above was not encouraging.  Though we come here to this forum to deal with vba, unlike the old NGs, it seems there are less users and more real developers, which I am not.  Just 
    a power user.  And the above is not something I have yet crossed into.  It sounds like, but I'm guessing here, that this method requires a form (am I right)?  I haven't a clue how to do those yet, if that's the case <sigh>.  All I
    know is that there are too many emails coming in with no easy way to make sure we don't miss something important.
    This answer shows me that this particular approach isn't the solution.  This type of message box wasn't ideal, either.  Lordy but I miss so many features of Outlook 2000 all the time.  All these popups getting launched together is great for
    a lot of people, but I'm not one of them.
    Okay, back to trying to find a solution.
    Thank you!!

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please help me.

    Hi - Even though block popup windows is unchecked in content tab of options, I am still not getting any popups. Please suggest how to over come this problem.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Did you make sure that your security software isn't blocking the pop-ups?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

Maybe you are looking for

  • Took a new photo while in *contact* page; now where is it??

    Today, while inputting a friend's email address, I decided to take a pic to attach to his contact. Normally, I'd take a pic using the Camera app, but since I was already on his contact page, I took it from within the Contacts app, by tapping "add pho

  • House bank and accountID

    Hello, In transaction FBZP I have a house bank with three account ID. My client wants to pay with tha same payment method, the same currency and the same house bank ( but sometimes with one accountID and others time with different account ID). In ord

  • Handle multiple material numbers as import parameter in a function module

    Hello Folks, I want to handle multiple material numbers as import parameters.. I have tried using table types but having problem while reading the data.... My requirement is user will input say 10 materials , now i need to get all the information for

  • VBA script for automatically indexing topics

    A big disadvantage with InDesign's indexing system is that you cannot automatically index all occurences of topics currently in the index. Instead, you have to find an occurence of each topic in the document itself and go to the Index menus and then

  • Create temporary table to physical table.

    i have created one physical table using temporary table. columns are like this create hi table as(no number, name varchar2(20), da date)); again do some transaction in my DB i need insert the temporary table values to physical table IF the no,name,da