Button Color Mapping Difficulties

Can somebody clarify the steps and settings I need to go through to make changes in a simple color mapping scheme for buttons on a menu? I've done it before, no problem, but for some reason this time when I make changes in the inspector, they are not reflected on the editor (or in the simulator, for that matter). I've got a background and overlay set, I set the colors in the menu inspector, created buttons, and the buttons do not show up the same colors as what are in the inspector. I switch between normal, selected, and activated states, but either no color shows up, or it is a totally different color altogether. As far as settings, I've got "display composite" selected. If anybody can tell me what setting or preference I've got out of whack, that would be helpful.
Powerbook G4   Mac OS X (10.4.7)  

Once you set an Overlay file the Key colors (check the Menu>Colors>Key) are what colors DVDSP is now affecting (e.g. so it's the Black that is being turned White).
So, if your Overlay Layer is set so you want your Black Boxes to change color and your White background to disappear, you'll need to slide the Opacity to 0 next to the White Key box and the Opacity to 15 next to the Black Key box. Adjust the color next to the Black Key box and then click over to the Selected radial Selected State right above the Colors. Change the color of the Black buttons to whatever, and keep the Opacities the same as before.
Make sense? It's hard for me to explain, so I fear I'm doing a poor job of it.
~Luke

Similar Messages

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

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

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

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

  • Color Map not showing time-dependent change

    I am using the latest Sound and Vibration Measurement Suite in Signal Express.  I have a Spectral Map step in my program, which includes a Color Map.  I am recording an accelerometer's transient response to an impact, and want to see the time-dependent frequency intensity changes as a function of time, so a color map should be perfect.  I have no problem recording the accelerometer's transient response in a time graph, and I also see the power spectrum in another graph.  While the color map indeed shows various frequencies at different intensity levels, I don't see the intensity of any of the frequencies change over the course of the 200 ms that I'm recording, while the time graph clearly shows the decaying waveform.  Why doesn't the color map show a decrease in intensity of the respective frequencies as time progresses through the transient?  I have everything set up to display and record the first 200 ms of the impact.  At the end of this period, the intensity should go to almost zero.
    Please see the attached .seproj file to review the parameters I have set.
    Also, with the same .seproj file, I will occassionally get a Buffer Overflow error.  From this file, can you tell me what setting I need to change.  But I need to make sure that all data both displayed and recorded, is for the 200 ms timeframe specified (10 ms before the trigger and 190 ms after).  The ADC I'm using is an NI 9234 in a cDAQ-9172 chassis.
    Thanks,
    --Tim
    Attachments:
    golfclub_200ms_test.seproj ‏258 KB
    Log files.zip ‏200 KB

    Tim,
    I am trying to figure out where this would be able to recognize the changes since the data would be taken from an analysis of one .2 second signal. Have you tried to analyze more than the one signal taken in? When I ran this project I got the display on the bottom right to show one signal as having been read which makes sense when looking at the data. If you wanted to see the changes over the 200 ms timeframe I would have it run continuous DAQmx acquires for that timeframe. It appears the analysis that we see stays static because it is doing analysis of only one data set that came in. I would think that the change in time that you want to see would have to have analysis done on multiple sample sets to notice the differences from one set to the next. 
    Frank,
    National Instruments
    Staff Software Project Engineer

  • 3d graph color map help for cvi

    I've plotted my data to a 3d graph using CW3DGraphLib.  The data I am most interested in is the highest 10%.  I can change the Z axis to only show this 10%, but the colors are all red.  I would like to modify the color map so it maps only the data that I set in the max and min scale.  90 to 100%.  Does anyone know how to do this?  Also, I am looking for any additional help files on the CW3DGraphLib.  When you click on the function panel it says no help file available.

    Hello Keith,
        I think the following forum will be helpful.
        http://forums.ni.com/t5/LabWindows-CVI/the-method-CW3DGraphLib-DCWGraph3DPlot3DCurve-does-not-work/t...
    Daniel

  • Color map scale for 3d graph

    Hi
    I have a 3d graph with x,y,z having the surface co-ordinates and w matrix having a value at each co-ordinate. I am trying to scale the color map applied. I know the color map values and and color numbers can be called from the property mode, but how to draw the scale so that it inidcates the color of corresponding values on w matrix.
    Thanks
    Ankit

    Duplicate post see this thread
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=230349#M230349
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    You can change it with the App Button Color extension - https://addons.mozilla.org/firefox/addon/app-button-color

  • Saving color map from intesity graph to jpg

    Hi to all..
    I have 2D array ( of numbers) and I use intensity graph to convert the numbers to a color map.
    But I want to save this color map to jpg file (as image.. )
    How do I do that?
    Thanks
    Eruvi

    In that case, I would make a copy of the Intensity Graph, and deselect every option under the "Visible Items" right-click menu.  At that point, all that should be left would be the gray frame of the Intensity Graph.  At this point, you can use the Paintbrush Tool, right-click on the gray border, and choose the 'T' in the color picker to make it transparent.  At this point, your Intensity Graph should only show the colored graph region and nothing else.  Then you can use the method I described to export the image to disk.  I have attached a screenshot of a front panel of a VI with an Intensity Graph with all parts other than the graph region made non-visible.
    Hope this helps,
    -D
    Message Edited by Darren on 02-15-2006 11:00 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    int_graph.jpg ‏93 KB

  • Push Button Color

    Dear Sirs,
    How can I change the Push Button Color in Forms 6i?
    Thanks
    Rehman Ghani
    Pakistan

    Hi,
    try to search in PL/SQL code in your form by the button name... May be it is changed dinamically at execution time?
    In what environment are you developing? client/server application? Ebusiness suite?...
    Jose L.

  • Is it possible to display the color map of a 3D Surface plot on the Front Panel?

    This would be a very useful feature to include, especially if you are just displaying the top-down (XY) projection of your plot (otherwise there's no way to visualize the amplitude that a given color represents). I know that the Intensity Graph allows you to display the Z-axis color map, but I want to use the 3D Graph control for some of the other features it offers...

    I had the same question. After quite a bit of playing around with properties, methods, color ramps, viewing examples and reading a bit about it, I discovered a way to do this. Basically use the ColorMapValues and ColorMapColors properties from the 3D graph and modify them slightly and feed these into the ZScale.Marker.Vals[] on an intensity chart or the Scale.MarkerVals[] on the color ramp. See the attached example.
    I think the diagram is self-documenting and pretty darn simple. I have a couple of notes on the front panel that help explain the vi.
    Good luck.
    Attachments:
    3D_Intensity_ColorMap_Example.llb ‏51 KB

  • Button Color

    Hi !
    My program endlessly scans a jTable of 150 row indexes in lenth.
    This jTable directly relates to 150 jButtons ... that depending on the status of thier function at any given time ... each change in color to reflect thier status. The buttons change in color 6 times ie; RED, GREEN, YELLOW,BLUE, GRAY or BLACK.
    Currently I change the button color in this way :
    import java.awt.Color;
    //import .*;
    * @author  Rick
    public class ButtonColorYellow {
        /** Creates a new instance of ButtonColorYellow */
        public ButtonColorYellow() {
            String  F0 = AddRFSwitchMain.jButton500.getText(); // Source of the Room Numbers that equate to the jButtons
              if (F0.equals("101")){
                AddRFSwitchMain.jButton101.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("102")){
                AddRFSwitchMain.jButton102.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("103")){
                AddRFSwitchMain.jButton103.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("104")){
                AddRFSwitchMain.jButton104.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("105")){
                AddRFSwitchMain.jButton105.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("106")){
                AddRFSwitchMain.jButton106.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("107")){
                AddRFSwitchMain.jButton107.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("108")){
                AddRFSwitchMain.jButton108.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("109")){
                AddRFSwitchMain.jButton109.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("110")){
                AddRFSwitchMain.jButton110.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("111")){
                AddRFSwitchMain.jButton111.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("112")){
                AddRFSwitchMain.jButton112.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("113")){
                AddRFSwitchMain.jButton113.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("114")){
                AddRFSwitchMain.jButton114.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("115")){
                AddRFSwitchMain.jButton115.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("116")){
                AddRFSwitchMain.jButton116.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("117")){
                AddRFSwitchMain.jButton117.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("118")){
                AddRFSwitchMain.jButton118.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("119")){
                AddRFSwitchMain.jButton119.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("120")){
                AddRFSwitchMain.jButton120.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("121")){
                AddRFSwitchMain.jButton121.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("122")){
                AddRFSwitchMain.jButton122.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("123")){
                AddRFSwitchMain.jButton123.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("124")){
                AddRFSwitchMain.jButton124.setBackground(new Color(255,255,0)); // Yellow Color
            } if (F0.equals("125")){
    ..................  etc, etc, etc   ( room numbers are used for index references ie: 101,102, 103, etc)This code works well , but would think there must be a better wat to code it.
    I will make the color itself a var like this:
    AddRFSwitchMain.jButton124.setBackground(new Color( a , b , c ));...... but is there any way to adress the JButtons themselves in a var way??
    ie:
    AddRFSwitchMain.jButton( var X ).setBackground(new Color( a , b , c ));I know ya cant change the jButton lable itself ... but any way to reference the buttons in a like fashion ??
    THANKS !!

    You currently are creating 150 separate buttons each
    independent and unrelated to each other. I would
    reccomend creating an two arrays, one of buttons, and
    another of button status which you can then loop
    thorugh and change with logic
    Something like this:
    Button[] myButtonArray
    int[] myButtonStatus
    init() {
    Button[] myButtonArray = new Button[150];
    int myButtonStatus = new int[150];
    for (int i = 0; i < 150 ; i++)
    myButtonArray[i] = new Button("Button #" +
    n #" + (i + 1) );
    myButonStatus[i] = ** Get Status from
    tus from jTable
    then in Main Code soemthing like
    for (int i=0 ; i < 150 ; i++)
    if (myButtonStatus = 101) then
    ) then
    {myButtonArray.setBackGround(Color.Yellow);
    if (myButtonStatus = xyz ) then
    {myButtonArray[i].setBackGrondr(Color.Black);
    Hope this helps
    JavaPython ....
    Does not your code snip make for 150 lines of code entry listed below? : (
    if (myButtonStatus = 101) then
    ) then
    {myButtonArray.setBackGround(Color.Yellow);
    if (myButtonStatus = 101) then
    ) then
    {myButtonArray.setBackGround(Color.Yellow);

  • Change button color

    i have a group of buttons and when each one is clicked its color should change. when another button is clicked the color of previous button should change back to normal..plz help..thanks in advance

    Hi Srivatsa,
    You can do the same for chnanging your button icons if you have only tow icons to display ....one is default icon and the other one is the icon which you wnat to display when the button is clicked...
    Check the below code:
    Just replace the image path in the embed variable with your image path and check...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
      <![CDATA[
       private var previousButtonClicked:Button;
       [Embed("assets/Rose20Icon.jpg") ]
             [Bindable]private var buttonIcon:Class;
             [Embed("assets/arrowIcon.JPG") ]
             [Bindable]private var buttonIconDefault:Class;
       private function buttonClickHandler(event:MouseEvent):void
        if(previousButtonClicked)
         previousButtonClicked.setStyle("icon",buttonIconDefault);
        previousButtonClicked = event.currentTarget as Button;
        Button(event.currentTarget).setStyle("icon",buttonIcon);
      ]]>
    </mx:Script>
    <mx:HBox>
      <mx:Button id="btn1" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn2" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn3" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn4" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn5" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn6" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
      <mx:Button id="btn7" icon="{buttonIconDefault}" label="Button" color="green" click="buttonClickHandler(event);"/>
    </mx:HBox>
    </mx:Application>
    Thanks,
    Bhasker Chari 

Maybe you are looking for

  • OBIA Financial Analytics - ETL Incremental Load issue

    Hi guys I have an issue while doing ETL Incremental load in DEV. Source, Target ORACLE. issue with these two tasks: SDE_ORA_GL_JOURNALS and SDE_ORA_ImportReferenceExtract incremental load is holding at SDE_ORA_GL_JOURNALS.....on Database sessions the

  • Not able to see Print Preview of Purchase Order.

    Dear All ,                                                                    I m not able to see  the Print preview of Purchase Order , as the P.O is well release , but as i m click on Print Preview , an info displays in task bar , -> "  Error in OP

  • MBP weak battery...

    I've briefly looked through threads similar to this, but I don't think any of those apply. I bought my MBP in summer of 06 (so https://support.apple.com/macbookpro15/batteryexchange/ doesn't apply), and since then, it's run 353 battery cycles. It loo

  • Why does Adobe X not read an Adobe 9 file?

    I have an ISPL for a vehicle that could be read by Adobe Reader 9 (not 9.5). Since upgrading my computer and using Adobe Reader X, I no longer have access to my files. Does anyone have a copy of Adobe Reader 9. I've tried Adobe.com but the earliest v

  • Help with data access

    Hi, I am new to Java and stuck at a problem. Situation is like following- package X public abstract class A {      A(int a) { this.a=p; }      protected int p;      abstract int func(); package Y public class B extends A{      B(int b) { super(b); }