Change Color on selected date in APEX calendar

Hello all,
Does anyone know that how to change the background color of the date once it has been clicked?

Swetha
I created an application using Apex. It is a calendar application to show events that are happening. I ran into an issue with it
If there is an event that occurs during an interval like August15 - August22, the event is shown only on August15, which is the first day of the event. I would like to show it in all days from August15-22.
Here are the items coming from the page
event_id number,
employee_id number
date_from date,
date_to date,
due_date date,
act_id number,
act_loc varchar2,
reminder varchar2,
frequency varchar2,
division varchar2,
event_status varchar2
I am looking to write a process / procedure where it can show the same event on all the days it is occurring
Thanks in advance
Latha

Similar Messages

  • Q10 - I tap the screen to select, the icon changes color (indicating selection) but nothing happens...

    I notice an issue that predominantly happens when I use my thumbs to tap but does happen with fingers from time to time. 
    When I select an icon (say, for instance the lower-right corner icon to jump into camera settings), the icon changes color slightly when my thumb touches the glass, and then when I remove my thumb, nothing happens. 
    Sometimes this happens more than 5 times in a row.  It's one thing if the screen never recognized my finger/thumb in the first place.  It is a bit more madening when I KNOW that there was recognition (icon changing color) and yet nothing happens.. 
    Anyone else having this problem?  Is there some way to recalibrate the screen? 
    Right after I posted this message I tried that camera setting button - 7 tries before anything happened with my right thumb, one try with right index finger, then again it took 5 tries with index finger.  The frustrating thing is that the icon to load the camera in the first place (lower right corner)... that one almost always works with the first tap... 

    Perform a Reset...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • Translate daynumber to date in APEX calendar

    Hello all,
    I've got a problem with a query for a calendar.
    My current customer has two tables to see wether or not an employee is available.
    One to see if an employee has parttime hours.
    EMP_CALENDAR
    - empno number
    - day_name varchar2(24)
    - day_number number
    - work_hours number
    - non_work_hours number
    Each employee gets 5 rows. One for each workday of the week showing 0 to 8 in the work_hours and non_work_hours column.
    And one to see if an employee has time-off.
    EMP_NON_AVAILABILITIES
    - empno number
    - start_date date with timestamp
    - duration number
    - description varchar2(255)
    My predicament is that I have to build screens with monthly calendars and week calendars to show both data.
    A query for the non-availabilities is easy enough, because I have a date field available. Using the timestamp I can show it correctly in a week calendar. But showing the part-time hours is a bit more challenging.
    Can anybody help me with this? I don't have a clue how to transform the EMP_CALENDAR data to integrate with the EMP_NON_AVAILABILITIES data when using an APEX calendar.
    The trouble is that I can translate a single date to a workday without a problem, but the APEX calendar only gives me 1 date; the CALENDAR_DATE. The other days of the week aren't available in an ITEM as far as I know.

    I've found a solution myself. I don't think it's very pretty, but it does the trick.
    select empno display_value
         , start_date return_value
      from emp_non_availabilities
    where empno = :APP_USER
    union all
    select empno display_value
         , dd.return_date return_value
      from emp_calendar
         , (SELECT (to_date(:P110_CALENDAR_DATE,'YYYYMMDD') + (LEVEL-7)) return_date
              FROM DUAL
           CONNECT BY LEVEL < 14) dd
    where day_number = to_char(dd.return_date,'D')
       and empno = :APP_USERI have to select 14 days from 7 days before :P110_CALENDAR_DATE until 7 days after, so I can get all data for my weekcalender. I don't know in advance which day of the week my CALENDAR DATE will be.

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • How to restrict user to select date from the calendar into a text item

    Hi All,
    I am using oracle 10g.IN a form i am having a block 'client_block' in that i am having a text_item ' entry_date' which is a datebase item and i have set enabled false in property palette and i created an image item on the same form and i have an calendar icon on it .In when_image_pressed trigger for image item i have written this code
    SET_ITEM_PROPERTY('CLIENT_BLOCK.ENTRY_DATE',ENABLED,PROPERTY_TRUE);
    DATE_LOV.Get_Date(sysdate,'CLIENT_BLOCK.ENTRY_DATE');
    This is working perfectly but user can enter or delete date into the text_item through keyboard i want to restrict that they can only select date from calendar.
    I have tried setting item property enabled false in triggers but it is not working.
    Can someone help me what trigger i have to use and how?.
    Thanks
    Sri

    Hi,
    This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
    In ON-ERROR Trigger::
    BEGIN
    DECLARE
    err_code CONSTANT NUMBER := error_code;
    err_type CONSTANT VARCHAR2(3) := error_type;
    BEGIN
    IF (err_type = 'FRM'
    AND err_code IN (40200)) THEN
    Message('Updates Not allowed, Please Select Your Date from Calendar');
    Message(' ');
    ELSE
    NULL;
    END IF;
    END;
    END;
    Thanks,
    Bhujendra

  • Button change color on select, then change back

    I have 3 buttons, named but,but2,but3. What I want is if you
    click a button it changes color to show what page your on. But when
    you click a different button now that one is highlighted and the
    original one goes back to the original color. Here's the code.
    but3.onPress = function () {
    _root.createEmptyMovieClip("container", 1);
    loadMovie("banner3.swf", "container");
    container._x = 0;
    container._y = 0 ;
    I figure I have to add some kind of if statement?
    }

    I got it. I added this code for each button.
    but.gotoAndStop(2);
    but1.gotoAndStop(1);
    but2.gotoAndStop(1)

  • How do you change color of an event in a calendar in ical

    how do I change the color of an EVENTt in ical

    boivinr wrote:
    PLEASE APPLE ADD COLOR TAGGING TO EVENTS!!!
    Um, color tagging events has always been a feature of iCal. Go into iCal. In the upper left-hand corner it says "Calendars." Go under "File" and create a new Calendar--iCal will give it a color, but you can change that. If you do this in iCloud, you simply pick "edit" and click on the color, and you've a huge range of choices as to what color you want it to be.
    So, now you've got calendars--the family events calendar (named "Family") the "Days Off" calendar and the "Appointments" calendar...each with their own color. You can see them all when you click on "calendars" there on the left-hand side. And, in your case, can create calendars for each person at your work to know when they'll be on or off work. "John's calendar" and "Susan's calendar."
    You create an event, and among the choices you have (date, time, alert, notes) is one that says: "Calendar." It will show the default calendar with it's color, but offer you up and down arrows to pick a different calendar (you can change the default calendar, by the way, under preferences). You use those arrows and pick "John" calendar and the "event" of John being on-shift from 10pm-10am on December 12th appears on the calendar in orange. Create an event and give it the "Susan Off" calendar and her time off will appear in green. Give several events the "appointment" calendar and they'll all be blue (or whatever colors you've picked for these things).
    Yes?
    Now whether you can sync your iCal to Google and match up the colors is a whole other story. But you can--and have for as long as I can remember---color code your iCal events. 

  • Java-specific way to show and select dates on a calendar in JSP?

    I need my JSP to show a calendar and let a user choose a date. However, I know this is normally done in Javascript and I don't want to use Javascript ever. Is there an all-Java/HTML way to do this? Thanks.
    Ken

    try dis code out this may help....
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="iCardsErrorPage.jsp" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
         <title>Choose Day</title>
         <script language="javascript">   
              function gotoPage()
                   var year = document.selectdate.year.options[document.selectdate.year.selectedIndex].value;
                   var month = document.selectdate.month.options[document.selectdate.month.selectedIndex].value;
                   if ((month=="")||(month==null))
                        alert("Please enter a month and year.");
                        return false;
                   if ((year=="")||(year==null))
                        alert("Please enter a month and year.");
                        return false;
                   document.location = 'selectdate.jsp?year='+year+'&month='+month+'&formName=<%= request.getParameter("formName")%>&where=<%= request.getParameter("where")%>';
         </script>
    </head>
    <body bgcolor="#999999">
         <%@ page import="java.util.Calendar" %>
         <%@ page import="java.util.Date" %>
         <%@ page import="java.util.GregorianCalendar" %>
         <form name="selectdate">
         <%
              Calendar calendar = new GregorianCalendar();
              Date trialTime = new Date();
              calendar.setTime(trialTime);
              Calendar calendar2 = new GregorianCalendar();
              calendar2.set(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), 1);
              int today = calendar.get(Calendar.DAY_OF_MONTH);
              int currentYear = calendar.get(Calendar.YEAR);
              String Month = "";
              int daynum= 1;
              int column = 1;
              int row = 1;
              int year = 0;
              int month = 0;
              String y = request.getParameter("year");
              if (y==null)
                   year = calendar2.get(Calendar.YEAR);
              else
                   year = Integer.parseInt(y);
                   calendar2.set(year,calendar2.get(Calendar.MONTH),1);
              String m = request.getParameter("month");
              if (m==null)
                   month = calendar2.get(Calendar.MONTH);
              else
                   month = Integer.parseInt(m);
                   calendar2.set(calendar2.get(Calendar.YEAR),month,1);
              int firstDay = calendar2.get(Calendar.DAY_OF_WEEK);
              switch (month)
                   case Calendar.JANUARY: Month = "January";break;
                   case Calendar.FEBRUARY: Month = "February";break;
                   case Calendar.MARCH: Month = "March";break;
                   case Calendar.APRIL: Month = "April";break;
                   case Calendar.MAY: Month = "May";break;
                   case Calendar.JUNE: Month = "June";break;
                   case Calendar.JULY: Month = "July";break;
                   case Calendar.AUGUST: Month = "August";break;
                   case Calendar.SEPTEMBER: Month = "September";break;
                   case Calendar.OCTOBER: Month = "October";break;
                   case Calendar.NOVEMBER: Month = "November";break;
                   case Calendar.DECEMBER: Month = "December";break;
              }      %>
                <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="200" ALIGN="LEFT" >
                  <TR>
                         <TD ALIGN="CENTER" COLSPAN="4" >
                             <SELECT NAME="month" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="0" <% if (month==0){%>SELECTED<% } %>>Jan</OPTION>
                                  <OPTION VALUE="1" <% if (month==1){%>SELECTED<% } %>>Feb</OPTION>
                                  <OPTION VALUE="2" <% if (month==2){%>SELECTED<% } %>>Mar</OPTION>
                                  <OPTION VALUE="3" <% if (month==3){%>SELECTED<% } %>>Apr</OPTION>
                                  <OPTION VALUE="4" <% if (month==4){%>SELECTED<% } %>>May</OPTION>
                                  <OPTION VALUE="5" <% if (month==5){%>SELECTED<% } %>>Jun</OPTION>
                                  <OPTION VALUE="6" <% if (month==6){%>SELECTED<% } %>>Jul</OPTION>
                                  <OPTION VALUE="7" <% if (month==7){%>SELECTED<% } %>>Aug</OPTION>
                                  <OPTION VALUE="8" <% if (month==8){%>SELECTED<% } %>>Sep</OPTION>
                                  <OPTION VALUE="9" <% if (month==9){%>SELECTED<% } %>>Oct</OPTION>
                                  <OPTION VALUE="10" <% if (month==10){%>SELECTED<% } %>>Nov</OPTION>
                                  <OPTION VALUE="11" <% if (month==11){%>SELECTED<% } %>>Dec</OPTION>
                           </SELECT>
                             <SELECT NAME="year" SIZE="1" ONCHANGE="gotoPage();return false;">
                                  <OPTION VALUE="<%= currentYear-2 %>" <% if (year==currentYear-2){%>SELECTED<% } %>><%= currentYear-2 %></OPTION>
                                  <OPTION VALUE="<%= currentYear-1 %>" <% if (year==currentYear-1){%>SELECTED<% } %>><%= currentYear-1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear %>" <% if (year==currentYear){%>SELECTED<% } %>><%= currentYear %></OPTION>
                                  <OPTION VALUE="<%= currentYear+1 %>" <% if (year==currentYear+1){%>SELECTED<% } %>><%= currentYear+1 %></OPTION>
                                  <OPTION VALUE="<%= currentYear+2 %>" <% if (year==currentYear+2){%>SELECTED<% } %>><%= currentYear+2 %></OPTION>
                           </SELECT>
                        </TD>
                  </TR>
                  <TR valign="top" >
                         <TD valign="top" align="left" class="header" WIDTH="20%"> </TD>
                         <TD valign="middle" colspan="2" ALIGN="CENTER" class="header" WIDTH="60%">
                             <font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="font-size:12px" style="font-weight:normal" style="color:#FFFFCC" style="vertical-align:middle"><%= Month %> <%= year %></font>
                        </TD>
                         <TD valign="top" align="right" class="header" WIDTH="20%"> </TD>
                  </TR>
                  <TR>
                         <TD CLASS="FORMTABLE" COLSPAN="4">
                             <TABLE border="0" cellpadding="0" cellspacing="0" WIDTH="100%" >
                             <!--<TR>
                                       <TD CLASS="FORMTABLE" ALIGN="RIGHT"><B>Year</B></TD>
                                  <TR>
                                       <TD COLSPAN="7" ALIGN=center CLASS="FORMTABLE"><B>
                                       <%= Month %> <%= year %></B></TD>
                                  </TR>-->
                                  <TR>
                                    <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sun</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Mon</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Tue</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Wed</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Thu</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Fri</font></TD>
                                       <TD ALIGN=center><font style="font-family:Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" style="font-size:14px">Sat</font></TD>
                                  </TR>
                                  <TR>
                               <%
                                       int maxdays = calendar2.getActualMaximum(Calendar.DAY_OF_MONTH);
                                       String max = String.valueOf(maxdays);
                                       while (daynum<=maxdays)
                                            if (row==1)
                                                 for (int j=1; j<firstDay; j++)
                                                 { %>
                                                   <TD ALIGN=center> </TD>
                                                   <%
                                                           column++;
                                            while ((column<8)&&(daynum<=maxdays))
                                            { %>
                                              <TD ALIGN="CENTER"><font style="font-family:Verdana, Arial, Helvetica, sans-serif" style="color:#FFFFFF" style="font-size:14px" style="cursor:hand"><A onclick="sendDate('<%= daynum %>'); return false;"
                                                 <%
                                                      if ((calendar.get(Calendar.MONTH))==(calendar2.get(Calendar.MONTH)) &&
                                                         (calendar.get(Calendar.YEAR))==(calendar2.get(Calendar.YEAR)) &&
                                                         (calendar.get(Calendar.DAY_OF_MONTH))==daynum)
                                                      { %>
                                                           CLASS="RED"
                                                  <% } %>><%= daynum %> </A></font></TD>
                                                   <%
                                                      column++;
                                                      daynum++;
                                            if (column!=8)
                                                 for (int j=column; j<8; j++)
                                                 { %>
                                                   <TD ALIGN="CENTER" > </TD>
                                         <%  }
                                            } %>
                                  </TR>
                                  <%
                                       if (daynum<maxdays)
                                       { %>
                                            <TR>
                                    <% }
                                       column=1;
                                       row++;
                                       } %>
                           </TABLE>
                        </TD>
                  </TR>
                </TABLE>

  • Skin or change color of selected radio button or selected checkbox

    I'm creating a custom CSS and I want to change the color of the checkmark (or the icon used) for selected radio buttons/checkboxes. Right now it's green (because it's using the simple stylesheet) but I don't know what element I can use to change the color or skin it. I've tried the af:selectBooleanCheckbox and af:selectBooleanRadio (even though they say they are only for disabled and read-only) but they don't appear to do anything... what do I use?

    Have a look at
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/skin-selectors.html
    Searh e.g for
    af:selectBooleanCheckbox Component
    to learn how to work with custom images
    Frank

  • Change Color of SELECTION-SCREEN COMMENT

    Hello!
    I want to change the color of the text of my comments for parameters in my selection-screen. Is that possible?
    What kind of design option do I have within the selection-screen? (Background, Colors, etc...)
    Regards Michael

    check out this sample code.
    REPORT YRJKSJKJFKD
           NO STANDARD PAGE HEADING.
    SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(30) comm2.
    SELECTION-SCREEN ULINE /1(50).
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    AT SELECTION-SCREEN OUTPUT.
      comm1 ='Selection Screen'.
      comm2 ='Select one'.
      LOOP AT SCREEN.
        IF screen-group1 = 'MG1'.
           screen-intensified = '0'.
           screen-color = '0' .
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    for screen-color the possible values are
    Syntax of color value in col color
    { COL_BACKGROUND } 0 GUI-specific
    { 1 | COL_HEADING } 1 Gray-blue
    { 2 | COL_NORMAL } 2 Light gray
    { 3 | COL_TOTAL } 3 Yellow
    { 4 | COL_KEY } 4 Blue-green
    { 5 | COL_POSITIVE } 5 Green
    { 6 | COL_NEGATIVE } 6 Red
    { 7 | COL_GROUP } 7 Violet
    Regards
    Raja

  • Changing Colors of selected tab in JTabbedPane.

    Do someone has some code that can show how to
    change the color of the selected tab with JTabbedPane.
    I can change the other tabs colors with setBackground and setForeground, setBackgroundAt........ but it is the selected
    tab that will not change from the default grey color.
    thanks

    try this code, it works.
    public class TabBackgroundChange extends JFrame {
    private JTabbedPane tabPane = null;
    public static final Color selTabColor = Color.red;
    Color nonSelectedTabColor = null;
    public TabBackgroundChange() {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception ex) {
    ex.printStackTrace();
    tabPane = new JTabbedPane();
    tabPane.add("One", new JPanel());
    tabPane.add("Two", new JPanel());
    tabPane.add("Three", new JPanel());
    this.getContentPane().add(tabPane);
    this.setSize(200, 200);
    this.setVisible(true);
    tabPane.addChangeListener(new TabChangeListener());
    tabPane.setSelectedIndex(1);
    tabPane.setSelectedIndex(0);
    public static void main(String[] args) {
    TabBackgroundChange tabBackgroundChange1 = new TabBackgroundChange();
    private class TabChangeListener implements ChangeListener {
    public void stateChanged(ChangeEvent ce) {
    int iSelTab = tabPane.getSelectedIndex();
    Color unSelectedBackground = tabPane.getBackgroundAt(iSelTab);
    for(int i=0; i<tabPane.getTabCount(); i++) {
    tabPane.setBackgroundAt(i, unSelectedBackground);
    tabPane.setBackgroundAt(iSelTab, Color.red);
    }

  • Able to have a Submit button that changes color after selection

    Curious if this can be done..

    Things that you can control the color of include the border, label text, and background. You can also change the button label and icon (if present). This can all be done when it is clicked. You can also set the mouse down and rollover appearances. Some of this is controlled via JavaScript and others by setting the corresponding options. If you explain exactly what you'd like, we can provide specific guidance.

  • I need help highlighting an expiration date on my Numbers '09 spreadsheet. I want the text/fill of a cell to change color when the expiration date of an item is within 180 days of the current date.

    I need help highlighting cells on my Numbers '09 spreadsheet.  I want the cell text/fill to change color when the date is 180 days or less from the current date.  I already have a cell with the current date in it.  I also know how to change the fill/text colors.  All the cells have been formatted to show date only.  I am having trouble with the formula.  I can get to the Conditional Formatting menu and select "With Dates" but after that I am lost.  Can anyone help?
    Thank you for any assistance.
    B

    Set a Conditional Format rule as shown in the illustration below. The rule has been applied to all dates in column B of the table.
    Regards,
    Barry

  • Change colors in the calendar

    I saw that there is the possibility to change color to present a variety of calendars.
    My webcal in particular should be on existing services WEBCAL, eg, the lunar calendar.
    I change color, but every time my iPad or iPhone sync, returns the default color!
    What can I do?

    Yep, I just noticed this behavious on my iPhone 4 as well. Built-in calendars ("On My iPhone") stay locked in their colours, but subscribed calendars keep changing theirs. It's quite annoying.

  • I have more than 1 calendar on Iphone how to change color of the calendars.

    I have more than 1 calendar on my iphone, but 2 of them have the same color when viewing on the list. But both belong to 2 separate individuals. Is there some way of chaning the default color of each calendar?

    I believe that if you set up your Google calendars using CalDAV rather than exchange the colors you select in your Google calendar preferences will sync to your phone.  To set up your calendars using CalDAV, see http://support.google.com/calendar/bin/answer.py?hl=en&answer=151674, then go to your gmail exchange account and turn calendar syncing to off.

Maybe you are looking for