Help in Calendar popup please

Hi
i have a problem in calendar popup that is iam putting the calendar inside a Group Panel at the bottom of page and when i click on popup the page will be taller so please do any one know how to make popup visible above calendar component i tried to modify the theme by editing Calendar.js file but iam having an error in sun i can't run any page any more i need to reinstall IDE may be iam not putting the defaulteheme.jar in correct folder
any one help please
HEN

Hi
i have a problem in calendar popup that is iam
putting the calendar inside a Group Panel at the
bottom of page and when i click on popup the page
will be taller so please do any one know how to make
popup visible above calendar component i tried to
modify the theme by editing Calendar.js file but iam
having an error in sun i can't run any page any more
i need to reinstall IDE may be iam not putting the
defaulteheme.jar in correct folder
any one help please I'm not quite sure what you're asking for but I have a prototype sample calendar that might work better. See http://blogs.sun.com/roller/page/edwingo?entry=component_authoring_for_creator.
-Edwin
Creator team
http://blogs.sun.com/edwingo/

Similar Messages

  • I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have my Calendar app syncing with iCloud.  Every time I open it it says, "Moving Calendars to Server Account..."  It runs and runs and does not stop.  As a result, I cannot access my calendars.  Please help.

    I have the same problem, I tried the solution of Dr Cox but that didn't work as he said go to system preference then mail, contacts etc. but I don't have that.  Can someone help?
    Elaine

  • How can I open March 2013 in my iPad-calendar? please help me! Thanks

    How can I Open March 2013 in my iPad-calendar?
    Please help me!
    Thanks
    Susanne Schabel

    I get same Issue.
    is iCloud make this issue.
    Try Disable iCloud calender on you iPad and then go to March 2013 on you calender and then it not crash. after that go back and enable iCloud calender again.
    And then it work for me :-)
    best regards
    Lars Rasmussen

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • After upgrading my iphone to v5 software I have duplicate calendar entries - please help

    After upgrading my iphone to v5 software I have duplicate calendar entries - please help

    Have same issue, reset doesn't help (
    I can delete unwanted photos and albums following way:
    1) Backup all photos from device (Important!!)
    2) Connect to iTunes, enter managing device, select 'Photos' link
    3) Select checkbox Sync Photos from <My Pictures>, choose 'Selected folders' but select NONE of them
    4) Click Apply, agree to Delete All Photos from device
    5) Uncheck 'Sync Photos from', click Apply
    Now i have cleared all previous synced folders, that i unable to delete from device.

  • Calendar popup for a date field in ITS service

    Hi
    I am working with SRM EBP module we want to add date help(with calendar function) to existing date fields in Shopping cart and PO screens . I found some HTML and scripts in SYSTEM and BBPGLOBAL(assuming in regular ITS this service might be GLOBAL) services but not sure which ones to use if anyone used date functionality or even have access to Standard SAP ITS screens that already have date field with calendar functionality can you help???????????????
    Scenario what we are trying to do
    1) On the shopping cart details there is a require on field
    2) we are trying to add a f4 icon(which we did successfully)
    3) when a click happens on the icon a calendar popup should appear(for this we are trying to identify what standard SAP function we can use if not i got a JavaScript on the web trying to see how to integrate that script)
    Thanks in Advance

    Hi
    I browsed thru other services i found PZLE_06 and there is a date field with popup but difference between ESS and SRM is ESS i saw uses webgui concept and SRM has different approach if you can point me to the html template in one of the service where the calendar function is called that will be helpful i tried no luck i got the funciton issue is integrating it with existing code in HTML i mean calling the javascript from HTML i am not able to .
    Thank You
    Vineela

  • Af:inputDate not refreshing Calendar popup

    HI,
    I am facing one strange problem with af:inputDate component. When you click on calendar icon of this field it opens the Calendar popup to choose the date. Now it is allowing changing the date only one time. It allows me only to change year/month once. Now suppose it is displaying "January" month at the start, if i change the month to "May", it refreshes the calendar. But after that if i change year/month, it doesnt refresh the calendar.
    I think there is some problem with some scripts.
    Did any one come across such problem?
    - Sujay.

    Do you have your inputDate in a toolbar? I have almost the same problem when I try to use inputDate in a toolbar (in a dvt:schedulingGantt component if that matters), but not if I place it elsewhere on the page. The difference is that for me the calendar is never updated when I change anything. It seems to me that there is something wrong with the javascript part of it. I can pick any month from the drop-down, but only one month right/left with the arrows. In either case nothing happens in the calendar.
    This seems like a bug to me.
    Anyway, if you haven't solved this yet, try putting the inputDate somewhere else and see if that helps.

  • Refresh of report hides jQuery calendar popup anchors

    In an attempt to build an interactive tabular form in Oracle Apex 4.0.2.00.07, we have based an interactive report on a query containing:
    SELECT ...
         , apex_item.date_popup2( p_idx              => 11
                                , p_value            => to_char(..., 'DD.MM.YYYY')
                                , p_date_format      => 'DD.MM.YYYY'
                                , p_size             => 12
                                , p_maxlength        => 10
                                , p_attributes       => 'onchange="..."'
                                , p_item_id          => 'f11_' || to_char(deincno)      -- deincno = primary key column
                                , p_show_on          => 'both'
    FROM   ...This renders perfectly. However, any interactive change in the report (filtering, sorting, hiding/showing columns, ...) will hide the calendar popup anchors, reducing the field to a normal text box. Only when the page is reloaded do the calendar popup anchors reappear.
    Any help or advice on how to prevent these anchors from dissapearing would be greatly appreciated.

    You need to rebuild the date pickers after the apexafterrefresh jquery event
    If you look at your page source > scroll to the bottom and you will see some jquery code that builds date-pickers initially on the page load
    (function(){apex.widget.datepicker("#f11_7369", { buttonImage: "/i/asfdcldr.gif", buttonImageOnly: true,"buttonText":"Calendar","showTime":false,"defaultDate":new Date(1980,11,17),"showOn":"button","showOtherMonths":false,"changeMonth":false,"changeYear":false}, "dd.mm.yy", "en-gb");})();You can look into your above code and find some of the contextual/dynamic parameters into the date-picker widget such as date format,image path etc...
    You can use those values to add this code accordingly
    Add this to your page header javascript
    apex.jQuery('#apexir_WORKSHEET_REGION').bind("apexafterrefresh", function () {
         // loop through the actual f11 column
         jQuery.each($('input[name="f11"]'), function () {
              //rebuild the datepickers
              var vid = "#" + $(this).attr('id');
              (function () {
                   apex.widget.datepicker(vid, {
                        buttonImage : "/i/asfdcldr.gif",
                        buttonImageOnly : true,
                        "buttonText" : "Calendar",
                        "showTime" : false,
                        "showOn" : "button",
                        "showOtherMonths" : false,
                        "changeMonth" : false,
                        "changeYear" : false
                   }, "dd.mm.yy", "en-gb");
    OR create a dynamic action with event after refresh and with action execute javascript
    // loop through the actual f11 column
    jQuery.each($('input[name="f11"]'), function () {
              //rebuild the datepickers
              var vid = "#" + $(this).attr('id');
              (function () {
                   apex.widget.datepicker(vid, {
                        buttonImage : "/i/asfdcldr.gif",
                        buttonImageOnly : true,
                        "buttonText" : "Calendar",
                        "showTime" : false,
                        "showOn" : "button",
                        "showOtherMonths" : false,
                        "changeMonth" : false,
                        "changeYear" : false
                   }, "dd.mm.yy", "en-gb");
    });Edited by: VC on Jun 19, 2012 11:01 AM

  • Cal Day input help not calendar but list of entries in infoprovider?

    Good Day,
    is there any setting in BEX or on the infoobject defintion that changes the behaviour of the input help?
    We got the requirement that for a loaddate field (referencing 0CALDAY) not the calendar as input help should be displayed (when user clicks input help or presses F4 in the query filter) but a list of load dates that are in the info provider.
    All replies are appreciated and points assigned.
    Best regards,
    Axel

    Hello Axel,
    As long as the InfoObject is of Type Date or Reference a Date InfoObject, you will get a calendar popup when you try selecting the value in the Selection screen.
    If your requirement is to have a list format, then you could try creating a new InfoObject of Type DATS.
    Another approach would be to create a new InfoObject of Type CHAR 10. Write a routine in the transformation to populate this. You need to store it as YYYY.MM.DD, if you want it to appear in Chronological order in the Selection Screen.
    Hope this helps you out.
    Regards
    Zubin Kurian

  • F1 help on a popup window

    Hi All!
    How to populate documentation on f1 help of a popup window.
    Please advise..
    Regards
    Praneeth

    hi Praneeth,
    data: it_pcfiles type filetable,
          wa_pcfiles like line of it_pcfiles,
          lv_rc type i.
    parameters: p_pcpath type localfile.
    at selection-screen.
    at selection-screen on value-request for p_pcpath.
      call method cl_gui_frontend_services=>file_open_dialog
             changing
                file_table = it_pcfiles
                rc = lv_rc.
      read table it_pcfiles into wa_pcfiles index 1.
      if sy-subrc = 0.
        p_pcpath = wa_pcfiles-filename.
      endif.

  • JavaScript Calendar Popup 2.0 with Netscape 6.2

    The JavaScript Calendar Popup 2.0 doesn't work with netscape 6.2. Once u press any button on the popup, it goes in infinite loop. Anybody knows solution to that.

    Sundeep: both MM-to-CCM and CCM-to-MM integration is standard as of ECC 6.0.
    Check the following documentation (talks more about MM-to-CCM, but there's some info on Catalog-to-MM):
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/46/b596e138a941ce9fba8fc8533674ee/frameset.htm">Integration of Web-Based Catalogs in Purchasing</a>
    Cheers,
    Serguei

  • 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;

  • Need very basic help with calendar - I am such a beginner!!!

    OK, I apologize in advance if this is a very silly question. But I'm new to all this stuff and really have no clue as to what I'm doing.
    I just got a brand new iPhone. It's great! I am using the calendar feature that came with the phone. But I can't figure out how to make it "talk" to my husband's calendar. He uses Microsoft Outlook. I've skimmed through lots of articles about Microsoft Exchange... but I don't have any Microsoft programs. I am a stay at home mother, and have been out of the technology loop for a while. It looks like I need a Microsoft Exchange account? I can't figure out how to get Microsoft Exchange, and if it's going to cost a fortune.
    I'm not even sure where to find which software is on my phone! There is no "about this phone" button that I can find. It's brand new, I think it was 3S and is 16GB if that helps.
    Can someone please save me from myself?
    Thanks!

    You could have the TC join your existing wireless network as a client, or you can can connect the Time Capsule's WAN port to the modem/router.
    In both cases the TC's "connection sharing" should be set to "Off (Bridge Mode)".
    If the TC "joins" the wireless network you can only back up over your wireless connection, so the second option is preferable.

  • My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.

    My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.
    They error message I get is "An unexpected and unrecoverable problem has occurred. Photoshop will now exit."
    This only started after I upgraded my OS to Yosemite.

    The upgrade has been know to break Photoshop CS5 installs. An Uninstall/Reinstall may be necessary.

Maybe you are looking for

  • Network Installer has quit due to an unexpected error. (exit code 133)

    Hi guys. Our school just purchased some new 1.83 Intel Mac minis, and I'm trying to image them using our Powermac (running server 10.4.9). The minis won't boot from the net install image though, the spinning wheel just spins under the grey apple icon

  • GR for Sub con SA

    hi when am taking Gr for sub con SA its showing document does not have any selecatable items even i maintained 1.GR date is after Sch lines date 2.No confirmation control is there 3 SA released when am searching open SA in MB01 with ref to mat, vendo

  • How to erase all data on E71x ?

    I just bought an E71x and I really regret. Because : 1. batter--hard to take it in/out 2. Sync--no contact group function when sync with outlook. I have to group my contact manually 3. Voice command sucks 4. Very hard to hard rese/erase all data afte

  • Itunes won't start. and if it does it takes 20  minutes

    My itunes will not start, and it very rarely and randomly does after about 20-30 minutes after i try to open it. Ive tried repairing, redownloading, and removing both quicktime and itunes. ive ran compatibility mode in every type of windows os, as we

  • Socket Accept failure

    Hi, I am running 4.5.1 SP13. I have a startup class which registers itself as an RMI observer with a remote server. It initially connects, and receives the first message. Not long after receiving the first message, the following is output numerous ti