Button Color is different in R12

Hi,
After R12 upgrade, One of my custom page button is looking different like disabled one. But the button is working fine. Only the display of the button is different.
Kindly share your suggestions.
Thank you very much.
Kind Regards,
Myvizhi

Hi Myvizhi ,
You have extend the controller class to get the desired color of submit button .
Add the below code in the ProcessRequest () of your controller class .
import oracle.cabo.style.CSSStyle;
CSSStyle customCss = new CSSStyle();
customCss.setProperty("background-color", "#FFFF00");
OASubmitButtonBean button = (OASubmitButtonBean) webBean.findChildRecursive("Submit");
if(button!=null)
button.setInlineStyle(customCss); //set custom css style
Alternately you can also try using custom look and feel administrator :
http://onlineappsdba.com/index.php/2008/10/20/custom-look-and-feel-claf-in-apps-11i-framework-pages/
Keerthi

Similar Messages

  • Help with getting button color.

    I'm trying to make a little paint program. i want to be able to click on a color button and then assign the color of that button to a variable Color brushColor.
    funny thing is, when i compile this, it tells me that
    C:\java\javaprograms\TryPainting.java:21: getBackground() in java.awt.Component cannot be applied to (java.awt.Button)
              brushColor = paintTheBrush(getBackground(source));
    strange, getBackground is explicitly listed as a method that Button inherits from Component in the API.
    any suggestions on a way to accomplish this?
    thanks in advance,
    jason
    ------code follows-------
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    //colored buttons of "paint"
    class OilPaint extends Button{
    Color brushColor = Color.white;
    OilPaint(String label, Color color) {
         setLabel(label);
         setForeground(color);
         setBackground(color);
         addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
         Button source = (Button)e.getSource();
         brushColor = getBackground(source);
         public Color paintTheBrush(Color color) {
              return color;
    // canvas to paint on - this isn't working yet. can't even get the
    // setSize to work, though it does compile.
    class Canvas extends JPanel{
         Canvas(){
              setBackground(Color.white);
              Dimension canSize = new Dimension(300,300);
              setSize(canSize);
    // displays the lsit of color button choices in a small panel at bottom
    // of window
    class ColorChoices extends JPanel{
         ColorChoices() {
              setBackground(new Color(220,255,255));
              add(new OilPaint("paint",Color.blue));
              add(new OilPaint("paint",Color.red));
              add(new OilPaint("paint",Color.green));
              add(new OilPaint("paint",Color.white));
              add(new OilPaint("paint",Color.black));
    //this is the main class of the program TryPainting.java
    class TryPainting {
         public static void main(String[] args) {
              JFrame window = new JFrame();
              Toolkit toolkit = window.getToolkit();
              Dimension winSize=toolkit.getScreenSize();
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              window.setBounds(5,5,winSize.width/2,winSize.height/2);
              Container content = window.getContentPane();
              content.setLayout(new BorderLayout());
              content.add("North",new Canvas());
              content.add("South",new ColorChoices());
              window.setVisible(true);

    duh.. thanks man, that did the trick. i'm pretty new at this. i really appreciate the help. i got stuck thinking of the getBackground() as a function, rather than a method. this oop stuff is wacky weird fun!
    jason

  • How to change button colors in a loop?

    I am working on a task that should imitate an elevator. I have two vertical
    rows of round buttons "Up" and "Down" When a circle is selected randomly by
    the program, the circle becomes yellow and the elevator moves to that
    button.
    Here is what I did:
    1. created a class Circle where I save buttons' parameters
    2. saved Circle objects in an array
    3. drew the buttons depending on their parameters
    4. generated a random number, matched it with an array index and assigned
    the object color to yellow.
    Everything is fine except that I can't figure out how to change colors of my
    buttons in a loop.
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class Elevator3 extends JPanel
    private int n = 40;
    private int width = 200;
    private int floors = 10;
    private int interval = 1000;
    private boolean selected = false;
    private Circle[] buttons = new Circle[2*(floors-1)];
    public Elevator3()
    build();
    JFrame frame = new JFrame("Elevator3");
    setBackground(Color.WHITE);
    setFont(new Font("SansSerif", Font.PLAIN, Math.round(n/3)));
    frame.getContentPane().add(this);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(width, n*(floors+2) );
    frame.setVisible(true);
    public void build()
    Random r = new Random();
    int buttonPick;
    int timeUntilNextButton = r.nextInt(interval);
    for (int k =0; ; k++)
    if (timeUntilNextButton-- ==0)
    buttonPick = r.nextInt(2*(floors-1));
    //populate my buttons array here - how??
    timeUntilNextButton = r.nextInt(interval);
    //adding "Down" buttons
    for (int i=1, count=0; i < floors; i++, count++)
    if (count == buttonPick)
    selected = true;
    else
    selected = false;
    buttons[count]= new Circle(n*2, n*i, selected, Math.round(n/2));
    //build an array of "Up" circles
    for (int i=2, count=floors-1; i < floors+1; i++, count++)
    if (count == buttonPick)
    selected = true;
    else
    selected = false;
    buttons[count]= new Circle(n, n*i, selected, Math.round(n/2));
    public static void main(String[] args)
    new Elevator3();
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    //draw buttons
    for (int i=0; i < buttons.length; i++)
    g.setColor(buttons.getColor());
    g.fillOval(buttons[i].getX(), buttons[i].getY(), buttons[i].getWidth(), buttons[i].getWidth());
    class Circle
    private int x;
    private int y;
    private Color c;
    private boolean pressed;
    private int width;
    public Circle(int xCoordinate, int yCoordinate, boolean selected, int diameter)
    x = xCoordinate;
    y = yCoordinate;
    pressed = selected;
    width = diameter;
    if (pressed)
    c = Color.YELLOW;
    else
    c = Color.LIGHT_GRAY;
    public Color getColor()
    return c;
    public int getX()
    return x;
    public int getY()
    return y;
    public int getWidth()
    return width;

    hi,
    am sorry, i couldn't make out what exactly the problem, but as ur subject line says...
    may be the code give below will help you to change button colors in a loop..
              for(int i = 0; i < button.length; i++){
                   int color1 = (int)(250*Math.random());
                   int color2 = (int)(250*Math.random());
                   int color3 = (int)(250*Math.random());
                   Color c = new Color(color1,color2,color3);
                   button[i] = new JButton("button name");
                   button.addActionListener(this);
                   //to check the r, g, b combination.
                   //System.out.println(c);
                   button[i].setBackground(c);
                   button[i].setForeground(Color.white);
    //adding into the panel
                   panel.add(button[i]);
    hope this would help you.

  • Same colors appearing different in the same document

    I have a document where I have filled different table cells with the same RGB color. However, they sometimes appear as two different shades, one darker than the other. I checked to be sure it was the same RGB color and it was, but it appears quite different both in InDesign and when I export it to pdf. Any idea why the same color is appearing differently in the same document?

    It doesn't appear to be a monitor problem, as the colors are different both on my laptop screen and on my external monitor. As I do not have the ability to print a hard copy before the file gets sent to the printer to make a proof, I need to know which is the "right" color (or at least the once closest to how it will print). Even if the colors are showing up differently on screen, if the swatch for both is exactly the same, will it show up as the same color once the actual hard copy is printed?

  • Colors look different in titler than on timeline

    Colors look different in titler than on timeline. Here's a screen grab. The upper image is the program monitor and the lower image is the titler. Both are on the same monitor.
    I guess it's a bug and I will report it but I wonder if anyone else is seeing this.

    What is your Premiere Monitor Playback Res set at?
    What is the Preview Setting?
    Jims advice is useless in this instance. He expects you to do an output file everytime you make a tweak in Titler or Sequence just to see what you might abitrarily be getting.

  • Change pressed button Color

    Hi,
    I want to change my pressed button Color and I haven't been able to find a way, I tried creating my own button and add a listener when it is pressed and then change its background color but it doesn't work! it works for enter and exit but not for pressed and released.
    any one has an idea?
    thanks
    Here's my code:
    package components;
    import javax.swing.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.*;
    * JButton con una nueva propiedad de Color presionado
    * @author Ana Mar�a Franco
    * @version 1.0
    public class PressedColorButton extends JButton
        // Atributos ************************************************************************
        private Color unpressedButtonColor;
        private Color pressedButtonColor;
        // Constructores ********************************************************************
        public PressedColorButton()
            super();
            this.addMouseListener(new PressedColorButton_this_mouseAdapter(this));
        // M�todos **************************************************************************
         * Obtiene el color sin presionar
         * @return Color
        public Color getUnpressedButtonColor()
            return this.unpressedButtonColor;
         * Define el color sin presionar
         * @param nuevoColor Color
        public void setUnpressedButtonColor(Color nuevoColor)
            this.unpressedButtonColor = nuevoColor;
         * Obtiene el color presionado
         * @return Color
        public Color getPressedButtonColor()
            return this.pressedButtonColor;
         * Define el color presionado
         * @param nuevoColor Color
        public void setPressedButtonColor(Color nuevoColor)
            this.pressedButtonColor = nuevoColor;
        public void this_mouseExited(MouseEvent e)
            this.setBackground(unpressedButtonColor);
        public void this_mousePressed(MouseEvent e)
            this.setBackground(pressedButtonColor);
        public void this_mouseReleased(MouseEvent e)
            this.setBackground(unpressedButtonColor);
        public void this_mouseEntered(MouseEvent e)
            this.setBackground(pressedButtonColor);
    // Escuchadores *************************************************************************
    class PressedColorButton_this_mouseAdapter extends MouseAdapter
        private PressedColorButton adaptee;
        PressedColorButton_this_mouseAdapter(PressedColorButton adaptee)
            this.adaptee = adaptee;
        public void mouseExited(MouseEvent e)
            adaptee.this_mouseExited(e);
        public void mousePressed(MouseEvent e)
            adaptee.this_mousePressed(e);
        public void mouseReleased(MouseEvent e)
            adaptee.this_mouseReleased(e);
        public void mouseEntered(MouseEvent e)
            adaptee.this_mouseEntered(e);
    }

    Swing related questions should be posted in the Swing forum. Try setting the following properties on the button:
    setContentAreaFilled( false );
    setOpaque(true);

  • Colors are different between Lightroom and Photoshop Elements

    I have a new monitor and I have the SyderPro4 calbration software.  My monitor is the Dell UltraSharp U2713HM.  When calibrated with the Syder my colors are different when I go into different programs.  The same photo looks different in Lightroom than it does in Photoshop Elements. When I export the picture from Lightroom to Elements the picture becomes very orange. I have already talked to Dell and to Datacolor about my issue and they both are telling me this shouldn't be happening. When I uninstall my calibration software my problem goes away, and the colors of the images stay consistant between the two programs. Does anybody have any advice to what maybe wrong?

    I am having this problem too.
    my site www.redsmartie.com looks fine on everyone elses computer but on mine the red background #660000 is not displaying right on the jpg images
    see here http://homepage.mac.com/redsmartie/colourerror.png
    I have rgb colour profiles managed by a Pantone Huey device and haven't previously noted a problem. This was added recently so I recreated the images which corrected things on my screen but made the red around the images too dark for everyone else.
    The images were created in Photoshop so I changed the photoshop profile back to CinemaDisplay that it previously was on and now everyone else is ok but my screen shows the red around the images much to light.
    I really need some help with this as its a disaster waiting to happen on work I do for other people, especially if I'm producing work that looks right on my setup but is wrong for everyone else!
    Dual 2GHz PowerMac G5 (plus 15" G4 PowerBook)   Mac OS X (10.4.6)   2.5 GB DDR SDRAM, 2x160GB SATA, 23" Cinema HD Display

  • New button colors hard to see

    The new light gray colors are now rather difficult to see at a glance which one is greyed out and which one is active. It is so bad that I even looked at the Universal Access System Prefs pane and bumped up the contrast but even that doesn't seem to help. Why on Earth did anyone thing this was a good idea or makes the interface more appealing in any way? Or more importantly, is there a way to bring back the old button colors?

    Most likely your home button is worn out. There is really nothing that you can do, it's just usual wear and tear. You could set up a repair through Apple. Your phone is probably out of warrany if you don't have a plan set up on your phone. You could do a repair through Apple, get a third party to repair it, or pony up and get the iPhone 5!

  • [Image publication]Thunderbolt Display!Color is different only lower right

    Color is different only lower right
    Please tell me
    Thanks in advance.
    I can understand a little English.

    Today!
    returned goods unsold.

  • Bizarre IRR Button Colors in IE (Only!)

    When we go to any "Action" dialog from an Interactive Report Region, the button colors, e.g. Apply, Cancel etc. are dark blue with brown writing in IE only We've tested with IE 8 and 9.
    This does not occur in FF, Chrome or Safari.
    Has anyone else encountered this and does anyone know of a fix. We are demoing this next week and; it isn't just aesthetic, the color combination is actually very difficult to read.
    (Yes, I, too, wish that IE would be forever stricken from the memory of Man)
    Thanks and Here's Hoping,
    -Joe

    Joe
    Ironically a combination of IE and Jive ate a lengthy response I made some hours ago, and I wasn't able to post again at that time.
    Joe Upshaw wrote:
    Sorry that this followup is more of a CSS question and less of an APEX question.That's OK. I know more about many aspects of CSS than I do about some of APEX!
    We have a CSS style sheet that we are including as part of the application (via a change to the template).When you say this do you mean that this style sheet replaces the default APEX theme CSS or that it is applied later in the cascade to augment/override the theme?
    However, we don't have any conditional* CSS formatting. I'm unsure of the syntax. I know I could paste the <style> section thgat you provided into the HTML Header section of the page but, as this is global, we'd prefer to do it in the CSS once for the whole app.There's no conditional processing in CSS. The browser applies the last rule it understands, which for this rule is roughly like this:
    /* Older IE & IE8/9/10 */
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#eee', endColorstr='#ddd');
    /* IE8/9/10 */
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#eee', endColorstr='#ddd')";
    /* Older Safari & Chrome */
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #EEE), color-stop(100%, #DDD));
    /* Safari & Chrome */
    background-image: -webkit-linear-gradient(top, #EEE,#DDD);
    /* Older Firefox */
    background-image: -moz-linear-gradient(top, #EEE,#DDD);
    /* Firefox 16 & IE10 */
    background-image: linear-gradient(top, #EEE,#DDD);So the problem with unconditionally including
    button.apexir-button {
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#eeeeee', endColorstr='#dddddd');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd')"
    button.apexir-button:hover {
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#ffffff', endColorstr='#eeeeee');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee')"
    }later in the cascade is that it will override <tt>background-image: linear-gradient(top, #EEE,#DDD)</tt> for IE10 as IE10 still supports Microsoft's proprietary <tt>filter</tt> property.
    That's why I suggested using conditional comments.
    I tried this:
    button.apexir-button {
    [if lt IE 10] filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#eeeeee', endColorstr='#dddddd');
    [if lt IE 10] -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd')"
    button.apexir-button:hover {
    [if lt IE 10] filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#ffffff', endColorstr='#eeeeee');
    [if lt IE 10] -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee')"
    }and it did not solve the problem.That's not valid CSS: there's no conditional processing in CSS. We have to use the IE conditional comments in HTML.
    I also directly pasted the style tag version that you pasted above into the example at apex.oracle.com in the HTML header of the page.
    It did not solve the problem there either. Works for me. Needs to pasted in the right place after the APEX theme style sheet to effect the override.
    My recommendation would be to put the override in an external style sheet that you feed to earlier IE versions using conditional comments in each page template, which is the approach that APEX takes for IE workarounds:
    <!--[if lt IE 10]><link rel="stylesheet" href="..." type="text/css" /><![endif]-->There also another alternative: fix the errant APEX CSS at <tt>/i/themes/theme_24/css/4_1.css</tt> if the powers that be will allow it.

  • Split line/tone Pantone swatches of same color look different

    QUESTION: In Illustrator I need to split a Pantone color into two different swatches (line and tone). When I duplicate the swatch and rename it with an "L" in front, the color looks different (with overprint preview)! Same CMYK values – I checked. I know it has something to do with how the swatch is named, because if I rename both swatches I don't have this problem. What's going on and how can I fix this?

    John Danek wrote:
    Not sure, but I would not recommend renaming Pantone Spot color swatches.  What's the point?  I mean, why would you mess with the names?
    I think they wants to use one swatch for certain parts of elements like the stroke and and perhaps the other for fills but of different and not necessarily common paths.
    Changing the name make it easier for them to know which is applied to the other. There coud be a reason to keep them separate and to have the names be different to make the work flow effiecient.
    I think the reason is that since they are now two different swatches it treats it as two different inks one from the book and the other from a CMYK mix.
    It simply does not recognize the second swatch as a book color which would have to be a second plate with the same ink.
    You cannot rename a book color.
    So unless you were planning to hit the piece with two plates with the same spot color what you want to do is not possible.
    I can see where you want this but I see no way of fixing it except a feature request.
    Perhaps placing the same swatch in two different color groups?

  • TS3682 I started updating my iPhone 4, but it went black screan and then started turning on and off non stop. I tried to hold the two buttons, but nothing different happened. Please, help! What should I do?!

    I started updating my iPhone 4, but it went black screan and then started turning on and off non stop. I tried to hold the two buttons, but nothing different happened. Please, help! What should I do?!

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

  • Need to color the  different textfield with different color in J2ME

    hi
    i am developing an application where i need to color the different textfield in the form with different color. but i am not able to do this even with the canvas class also. Can you please help me ? Thanks in advance..

    In J2ME, I don't think you can do that easily by setting color. If you want to use specific color in a text field, you need to construct the text box your own. Use Graphics object to draw text field (as image) and here specify a color of your choice.
    Hope this helps.
    Thanks,
    Mrityunjoy

  • Assigning different colors to different types of events

    Is it possible to assign different colors to different types of events within the same calendar?
    If so, how can that be done?
    Thanks for your feedback.

    Greetings,
    The color choices in iCal are defined by calendar. So events in the same calendar will all be the same color. If you want them to be a different color, move them to a different calendar and assign the color of your choice to that calendar.
    Hope that helps.

  • Same colors display differently between Illustrator and Photoshop

    Hi there,
    I would love to know why the same colors display differently between my Photoshop and Illustrator apps (CS3). For example, a logo will display much darker or more vividly in Illustrator than in Photoshop, same file, same colour values. My color settings are synchronized from Adobe Bridge to North American Pre Press 2. I've opened the logo file in RGB color mode, in both apps. It would be so helpful if both apps displayed the colours consistently.
    Any suggestions on how to do this would be wonderful!
    Thanks!
    Bobbie

    Hello Bobbie,
    I am using CS3 too and let me tell you that this Illustrator version is the worst ever. You best bet is to take the "Eye Drop" tool and select the Photoshop element to match the color.
    CS4 also have problems when handle placed items. Sadly I can tell you that CS2 is more reliable than CS3 and CS4.
    Not even if you use Pantone colors will match, Illustrator will change the colors making it impossible to match. "Adobe Quality"

Maybe you are looking for