BackgroundColor of JScrollBar

Hello everybody,
I tried to change the color of an JScrollBar, but id didn't work.
I used scroll.setBackground(Color.red);
Anyone an idea?

try:UIManager.put("ScrollBar.track", new Color(0, 0, 0));

Similar Messages

  • Jscrollbar problem

    Hii there,
    I'm having a JInternalFrame, and within that frame, I added a jlabel. the jlabel contains several images that is being added dynamically. I've added a horizontal scrollbar that is working. but my problem is with the vertical scrollbar. The thing is whenever an image added to jlabel, height of the label increases and the label exceeds to internalframe. The vertivcal scrollbar does not working to see the exceeded part of the jlabel,
    My code is something like this:
                            dpane.setDesktopManager(new DefaultDesktopManager());
                            iframe=new JInternalFrame("Image Frame" ,true,true,true,true);  
                            vScrollBar = new JScrollBar(JScrollBar.VERTICAL);
                            vScrollBar.setValue(jLabel.getHeight());
                            vScrollBar.setValueIsAdjusting(true);                      
                            iframe.getContentPane().add(vScrollBar,BorderLayout.EAST);
                            iframe.getContentPane().add(jLabel,BorderLayout.CENTER);                                                                                                        
                            dpane.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
                            dpane.add(iframe);               
                            iframe.setVisible(true);
                            add(dpane);could you else please help me!
    thanks in advance...
    Dev

    You haven't written the code that links scroll bar and its target view component.
    Use JScrollPane and a simple container JPanel.
    Forget your scroll bar and the label.

  • Changing Arrows and Color of a JScrollBar inside of a JScrollPane

    Hi. I can't believe this hasn't been asked and answered before but I can't find it in these forums if it has.
    I am trying to create a JScrollPane in a touchscreen based application - no mouse... The default scrollbar
    in my JScrollPane is too small for large fingers. I have successfully increased the size of the scrollbar
    to a usable size using: UIManager.put("scrollbar.width", 75).
    My next problem is two-fold.
    1) The arrows at top and bottom of the scrollbar are now heavily pixelated (i.e. jagged and blocky) and
    look like we zoomed in too much on a bitmap. How can I change these arrows to a graphic that is
    more related to the current size of my scrollbar?
    2) The color of the scrollbar is shades of 'baby blue'. My color scheme for my application is shades of
    beige or brown. This makes the scrollbar stand out like a sore thumb. How can I change the color
    of the scrollbar?
    Note: This is being coded in NetBeans 6.7.1 but I can't find any property in the visual editor that covers
    my problems.
    Also, I came across the UIManager.put("scrollbar.width", xx) from googling. Is there an official (complete)
    list of the properties available to the UIManager?
    Thanks

    To help out anyone who has been struggling with this as I have, here is the final solution we were able to use. We only needed to work with the vertical scroll bar, but it should be easy to work with now that a better part of the work is done. I do hope this is helpful.
         public ReportDisplayFrame()
              UIManager.put( "ScrollBar.width", 75);
              RDFScrollBarUI rdfScrlBarUI = new RDFScrollBarUI();
              rdfScrlBarUI.setButtonImageIcon( new ImageIcon( "C:/company/images/upArrow.jpg") , rdfScrlBarUI.NORTH);
              rdfScrlBarUI.setButtonImageIcon( new ImageIcon( "C:/company/images/downArrow.jpg") , rdfScrlBarUI.SOUTH);
              tempScrlBar = new JScrollBar();
              tempScrlBar.setBlockIncrement( 100);
              tempScrlBar.setUnitIncrement( 12);
              tempScrlBar.setUI( rdfScrlBarUI);
    // other constructor code //
              rdfScreenRedraw();
         private void rdfScreenRedraw()
              String methodName = "rdfScreenRedraw()";
              logger.log(Level.INFO, methodName + ": Revalidating: mainPanel Thread = ["+Thread.currentThread().getName()+"]");
              jPanelRpt.revalidate();
              jPanelRpt.repaint();
         class RDFScrollBarUI extends BasicScrollBarUI {
              private ImageIcon decImage = null;
              private ImageIcon incImage = null;
              public void setThumbColor(Color thumbColor) {
                   this.thumbColor = thumbColor;
              public void setThumbDarkShadowColor(Color thumbDarkShadowColor) {
                   this.thumbDarkShadowColor = thumbDarkShadowColor;
              public void setThumbHighlightColor(Color thumbHighlightColor) {
                   this.thumbHighlightColor = thumbHighlightColor;
              public void setThumbLightShadowColor(Color thumbLightShadowColor) {
                   this.thumbLightShadowColor = thumbLightShadowColor;
              public void setTrackColor(Color trackColor) {
                   this.trackColor = trackColor;
              public void setTrackHighlightColor(Color trackHighlightColor) {
                   this.trackHighlightColor = trackHighlightColor;
              public void setButtonImageIcon( ImageIcon theIcon, int orientation)
                   switch( orientation)
                        case NORTH:
                             decImage = theIcon;
                             break;
                        case SOUTH:
                             incImage = theIcon;
                             break;
                        case EAST:
              if (scrollbar.getComponentOrientation().isLeftToRight())
                                  decImage = theIcon;
                             else
                                  incImage = theIcon;
                             break;
                        case WEST:
              if (scrollbar.getComponentOrientation().isLeftToRight())
                                  incImage = theIcon;
                             else
                                  decImage = theIcon;
                             break;
              @Override
              protected JButton createDecreaseButton(int orientation) {
                   JButton button = null;
                   if ( decImage != null)
                        button = new JButton( decImage);
                   else
                        button = new BasicArrowButton(orientation);
                   button.setBackground( new Color( 180,180,130));
                   button.setForeground( new Color( 236,233,216));
                   return button;
              @Override
              protected JButton createIncreaseButton(int orientation) {
                   JButton button = null;
                   if ( incImage != null)
                        button = new JButton( incImage);
                   else
                        button = new BasicArrowButton(orientation);
                   button.setBackground( new Color( 180,180,130));
                   button.setForeground( new Color( 236,233,216));
                   return button;
         }

  • Scroll bar....isn't in the JScrollBar...why?

    Hey, Ive created a perfect scroll bar, in a swing app, it looks perfect...except in my JScrollBar, there are no bars....why?
    Here's my code...
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Beginning of Code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * Summary description for gui
    public class MapEditor extends JFrame
    private JScrollPane jScrollPane1;
    private JScrollPane jScrollPane3;
    private JButton jButton2;
    private JButton jButton3;
    private JButton jButton6;
    private JButton jButton7;
    private JButton jButton8;
    private JButton jButton9;
    private JButton jButton10;
    private JButton jButton11;
    private JButton jButton12;
    private JPanel contentPane;
    // TODO: Add any attribute code to meet your needs here
    public MapEditor()
         super();
         initializeComponent();
         // TODO: Add any constructor code after InitializeComponent call
         this.setVisible(true);
    private void initializeComponent()
         jScrollPane1 = new JScrollPane();
         jScrollPane3 = new JScrollPane();
         jButton2 = new JButton();
         jButton3 = new JButton();
         jButton6 = new JButton();
         jButton7 = new JButton();
         jButton8 = new JButton();
         jButton9 = new JButton();
         jButton10 = new JButton();
         jButton11 = new JButton();
         jButton12 = new JButton();
         contentPane = (JPanel)this.getContentPane();
         // jScrollPane1
         // jScrollPane3
         // jButton2
         jButton2.setText("Rock");
         jButton2.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton2_actionPerformed(e);
         // jButton3
         jButton3.setText("Grass");
         jButton3.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton3_actionPerformed(e);
         // jButton6
         jButton6.setText("Grass2");
         jButton6.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton6_actionPerformed(e);
         // jButton7
         jButton7.setText("Water 1");
         jButton7.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton7_actionPerformed(e);
         // jButton8
         jButton8.setText("Path");
         jButton8.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton8_actionPerformed(e);
         // jButton9
         jButton9.setText("Water 3");
         jButton9.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton9_actionPerformed(e);
         // jButton10
         jButton10.setText("Dirt");
         jButton10.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton10_actionPerformed(e);
         // jButton11
         jButton11.setText("Snow");
         jButton11.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton11_actionPerformed(e);
         // jButton12
         jButton12.setText("Water 2");
         jButton12.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent e)
                   jButton12_actionPerformed(e);
         // contentPane
         contentPane.setLayout(null);
         addComponent(contentPane, jScrollPane1, 0,0,476,408);
         addComponent(contentPane, jScrollPane3, 476,86,248,290);
         addComponent(contentPane, jButton2, 476,1,83,28);
         addComponent(contentPane, jButton3, 559,1,83,28);
         addComponent(contentPane, jButton6, 643,1,83,28);
         addComponent(contentPane, jButton7, 476,30,83,28);
         addComponent(contentPane, jButton8, 476,58,83,28);
         addComponent(contentPane, jButton9, 643,30,83,28);
         addComponent(contentPane, jButton10, 643,58,83,28);
         addComponent(contentPane, jButton11, 559,58,83,28);
         addComponent(contentPane, jButton12, 560,30,83,28);
         // gui
         this.setTitle("gui - extends JFrame");
         this.setLocation(new Point(0, 0));
         this.setSize(new Dimension(729, 627));
    /** Add Component Without a Layout Manager (Absolute Positioning) */
    private void addComponent(Container container,Component c,int x,int y,int width,int height)
         c.setBounds(x,y,width,height);
         container.add(c);
    // TODO: Add any appropriate code in the following Event Handling Methods
    private void jButton2_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton3_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton6_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton7_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton8_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton9_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton10_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton11_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    private void jButton12_actionPerformed(ActionEvent e)
         // TODO: Add any handling code here
    // TODO: Add any method code to meet your needs in the following area
    public static void main(String[] args) {
              new MapEditor();
    }

    Hi,
    please use code tag when posting so much code.
    It eases a lot reading your code.
    Hey, Ive created a perfect scroll bar, in a swing app,
    it looks perfect...except in my JScrollBar, there are
    no bars....why?basically because there is nothing to scroll and even to view !!
    nowhere in your code appears a call to :
    jScrollPane1.setViewportView(Component view);
    Moreover the scroll bar appearance policy, by default is when needed.
    When needed means that if the component prefered size you wish
    to view is greater than the one of the JScrollPane, they will appear
    otherwise they won't.
    So, what would you like to see in you JScrollPane ? the buttons ?
    regards,

  • Using JScrollBar with JTextArea

    hey!
    i'm using JDev 10g, creating a Swing Application
    i have a JTextArea and a JScrollBar (both which I have dragged down from Component Palette)
    how to I use JScrollBar with the JTextArea, such that the JScrollBar response to the JTextArea
    help me out...
    Cheers,
    Shivek

    this is the problem:
    i have a JTextArea and a JScrollBar which I have "DRAGGED" down from the component pallette in JDev...
    how do I make the JScrollBar work for the JTextArea... because right now the JTextArea is not responsing to the JScrollBar...
    so when the text is flooded in the JTextArea, scrolling the JScrollBar doesnt work
    this is my code:
    private JTextArea jTextArea1 = new JTextArea();
    private JScrollBar jScrollBar1 = new JScrollBar();
    private void jbInit() throws Exception
    this.getContentPane().add(jScrollBar1, null);
    this.getContentPane().add(jTextArea1, null);
    can u tell me wat code is missing! I've tried everything... read many tutorials some of them uses a panel...
    cheers,
    Shivek

  • JScrollBar inside a JTable

    I've got a JScrollBar inside a JTable, but the L&F is completely different to other JScrollBars that are not in a table.
    I'm using the WindowsLookAndFeel (through getSystemLookAndFeelClassName()) on Win2k. While progress bars displayed normally have a solid, light-blue bar, the ones in the tables are black and dashed.
    Any clues why it's happening or how to get the in-table bars looking a bit more normal?

    Still puzzled over this one, if anyone has any solutions or wild suggestions, they would be appreciated. ;)

  • Jscrollbar doesn't work

    ADF BC Swing Application
    JDeveloper 10.1.3
    ?? beginner question...
    i have my principal pane (jpane1) with null layout and a lot of components.. the size is bigger than my screensize, i add a jscrollbar to jpane1, but doesn't work, maybe because i need some code lines to do the relation between jpane1 and jscrollbar, but i don't know how to do this, can somebody help me?

    Hi,
    To make this work you need to add JScrollPane (see Swing Containers) first and then drop your jpane1 into it.
    JScrollBar does not scroll a panel but a record set. These are two different conponents.
    Frank

  • Theme Editor: where to change backgroundcolor of editable table cells?

    Hi all,
    I need to change the color of an editable table cell.
    I navigated to the theme editor --> tables.There is a section "Editable Tables". The preview shows an example with three columns and tree rows. I want to change the backgroundcolor of the cell in the first row, third column (in SAP standard it is lightgrey).
    The backgroundcolor of the rows beneath can be changed in section "Selected Cells", the backgroundcolor of the first two columns in the first row can be changed by "Background Color of Standard Table Cell" but I can't find the field where I can change the color of the last cell.
    Best regards,
    Sandra

    Hi,
    The blue color come from your definitions on "Labels and Fields" to read-only color of input field.
    Regards,
    F.F

  • Determine preferred size to be set for the JPanel attached to JScrollBar

    Determine what preferred size to be set for the JPanel attached to JScrollBar.
    Hello all, I am having a JPanel, where new components will be added into it during run-time. When there are too many components inside the JPanel, I need to re-set the JPanel preferred size so that the JScrollBar is scrollable.
    I was wondering what is the good method to determine the preferred size of JPanel during runtime?
    Currently, I am using
    myJPanel.setPreferredSize(new Dimension(
    numberOfNewComponent * preferred width of each component,
    numberOfNewComponent * preferred height of each component
    ));Is there any better alternative?
    Thank you very much.
    yccheok

    Usually a container such as JPanel will calculate its own preferred size from its layout manager - calling setPreferredSize is often unnecessary.
    When you add a component to your JPanel its preferred size will change automatically.
    What's wrong with the behaviour when you simply add your JPanel to a JScrollPane and let it manage its own preferred size?
    Hope this helps.

  • SpanElement backgroundColor not working as expected

    I am adding a simple RichText element with a SpanElement as the content. I am setting the backgrounColor of the span, but rather than highlighting the entire text, it is only highlighting the top few pixels of the first line of text.
    Is this a bug or am I doing something wrong?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/halo"
    width="100%" height="150"
    horizontalScrollPolicy="off" verticalScrollPolicy="off"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Script>
    <![CDATA[
    [Bindable]
    public var imageUrl:String;
    [Bindable]
    public var caption:String;
    ]]>
    </fx:Script>
    <mx:Image source="{imageUrl}" width="210" height="150" x="{(width - 210) / 2}" />
    <s:Group>
    <s:RichText width="135" height="100%">
    <s:content>
    <s:span fontSize="16" fontFamily="times, serif" color="#000000" backgroundColor="#ff0000" text="{caption}"/>
    </s:content>
    </s:RichText>
    </s:Group>
    </mx:Canvas>

    Here is an even simpler example to demonstrate the issue.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo"
    minWidth="1024" minHeight="768">
    <s:RichText>
    <s:content>
    <s:span fontSize="24" backgroundColor="#ff0000" text="Hello, world!"/>
    </s:content>
    </s:RichText>
    </s:Application>

  • JScrollBar - Issue when changing models

    Hey All-
    Well, I've come up with another interesting question which I haven't been able to resolve myself.
    Basically, I have a single view port which consists of a custom JPanel and (2) JScrollbar's. I then have multiple data and view models which are attached to each of these components. I then have a JList which has a list of all the Data/View Models. When a user selects one of the Data/View Models from the JList, that Data/View Model is attached to the JPanel and (2) JScrollbar's.
    Overall, this method seems to be working fine. When I select a new Data/View Model, the JPanel and both JScrollbar's update as expected. What happens next is unexpected though. If I then try to scroll one of the JScrollbar's, it jumps from its correct position to the last scrolled to position.
    Here is a scenario that might explain it better:
    1. Select one specific view model (which is basically a BoundedRangeModel for this scenario).
    2. Use the scrollbar and scroll to a value of 100 (keeping it simple).
    3. Select a new view model which has a value of 50 - the scrollbar now updates so instead of being located at value 100, it is now located at value 50
    4. Use the scrollbar to scroll to a new value - when clicking with the mouse on the scrollbar, the scrollbar jumps back to a value of 100 and does not move. You must click the scrollbar again to begin scrolling, yet it is only affecting the selected View/Model, and no other model.
    I have gone through all the code for the JScrollbar and its setModel() function from the Java source and there doesn't seem to be any obvious reason why this would be happening. Its almost as if the Scrollbar is somehow remembering its last scrolled to value and then jumping to this the first time you try to scroll, despite it not matching the value or extent contained within the RangeModel.
    Right now this is a minor annoyance, but I'm wondering if anyone else has experience this issue.
    Thanks!

    Well, I somehow didn't receive notice that someone had responded to this thread, so sorry for not replying back sooner.
    I did some additional digging using a simple application (which I will post below), and I have determined that this only appears to affect the Java Version 6. I have created and run the following simple test application in Netbeans using Java 6 in both Windows and Linux and have had the exhibited result above, but running Eclipse and Java 5 it appears to work fine (I use the IDE's to control which version of Java I am running).
    Here's the Code:
    package scrollbartest;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.DefaultBoundedRangeModel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JScrollBar;
    public class ScrollbarTest extends JFrame implements ActionListener {
        public JScrollBar               displayScrollBar;          
        public ScrollbarTest() {
                super();
                this.setTitle("Scrollbar Test");
                this.setLayout(new BorderLayout());
                this.setPreferredSize(new Dimension(500, 350));
                this.setSize(new Dimension(500, 350));
                this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                displayScrollBar = new JScrollBar();
                displayScrollBar.setOrientation(JScrollBar.HORIZONTAL);
                setModel();
                this.add(displayScrollBar, BorderLayout.NORTH);
                JButton updateButton = new JButton("Update Model");
                updateButton.addActionListener(this);
                updateButton.setVisible(true);
                this.add(updateButton, BorderLayout.SOUTH);
                this.pack();
        private void setModel() {
                DefaultBoundedRangeModel rangeModel = new DefaultBoundedRangeModel();
                rangeModel.setMinimum(0);
                rangeModel.setMaximum(100);
                rangeModel.setValue(0);
                rangeModel.setExtent(0);
                displayScrollBar.setModel(rangeModel);
        public static void main(String[] args) {
                ScrollbarTest app = new ScrollbarTest();
                app.setVisible(true);
        public void actionPerformed(ActionEvent arg0) {
                this.setModel();
    }And here's how to recreate the problem:
    1. Launch a Java application using the above as the main class.
    2. Move the scrollbar to some location other than the starting point.
    3. Click the "Update Model" button which should reset the scrollbar using a new model.
    4. Attempt to click (once) on the scrollbar position.
    At step 4, using Java 6, the scrollbar "jumps" back to the position where it was located before setting the new model. This does not appear to change the value of the new model, and it locks out any more motion of the scrollbar until you release the mouse button and press again. At this point, the scrollbar begins functioning properly, except that it is now starting at the old models value instead of the current models value (which remains 0 until you click and drag a second time).
    Using Java 5, this program works exactly as expected. My thought is that somehow the Scrollbar is keeping a reference to the old model or its values even after the model has changed for one more iteration. It seems to be the only thing that makes sense.
    In any case, any help is greatly appreciated.

  • How do you set the position of JScrollBars?

    Can anyone tell me how to set the positions of the JScrollBars in a JScrollPane so that it will show the area I want?
    please,
    Tommy

    Sorry i should of add the area I am talking about is a JPanel.

  • BackgroundColor

    Why does Flex change my background color? If I choose a red background, the background appears as: 0xf60909 instead of 0xff0000.
    Do I just need to restart my computer or is Flex doing something to change the background color?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0xff0000">
    </mx:Application>

    You need to also set the backgroundGradientColors property. The following application shows your problem, but if you add this to the Application tag it goes away:
    backgroundGradientColors="[0xFF0000, 0xFF0000]"
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
      backgroundColor="0xff0000">
      <mx:VBox paddingBottom="0" paddingLeft="0"
        paddingRight="0" paddingTop="0"
        horizontalAlign="center" verticalGap="0"
        verticalAlign="middle">
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
        <mx:Canvas width="100" height="100"
          backgroundColor="0xFF0000"/>
      </mx:VBox>
    </mx:Application>

  • Dynamic backgroundcolor doens't work

    Hello,
    How can you set the backgroundColor (of a vbox) to a
    data-field ? I tried this, but it stays black ...
    backgroundColor="{data.showcolor}"
    Best regards,
    Frank

    Andre,
    Is there an important reason your are using an alias for that field? Have you tried it without?
    I'm not a pro at complex querys like you have here, but from looking at this query I don't see why you need an alias.
    From what I know, alias are good for the following reasons:
    Avoiding any reserved (used by MySQL) words.
    Allowing Multiple Joins to the same table
    Allowing Self-Joins
    Assigning the result of MySQL function to a temporary column name.
    Doing a little googling got me this page:
    http://dev.mysql.com/doc/refman/5.0/en/problems-with-alias.html
    According to that page:
    "Standard SQL doesn't allow you to refer to a column alias in a WHERE clause. This restriction is imposed because when the WHERE code is executed, the column value may not yet be determined."
    So I think you'll have to skip using the alias and try something else.
    Shane

  • Problems with backgroundColor in UI when creating a Solid layer in Timeline

    Hi all
    When you are running scripts that use the backgroundColor property to draw swatches (like colorLibrary and SwatchYouWant) and try to create a New Solid in TImeline, script panels go gray. This way, you cannot use the color picker to select your Solid's color. This was possible with versions older than Adobe CC. Anyone knows anything about this issue?
    Thanks.

    I have had the same issue but in Solaris 10 platform.
    In my case it was a hardened server, I had to use a non-root user with the minimal permissions.
    While my user didn't have permissions, DSCC always showed the error message you posted. I debugged for a while and the solution was to grant some permissions to the user that runs DSCC and cacao.
    You can navigate in DSCC because most pages in DSCC only depends on DSCC Registry to work. But when you need to register or start a directory server, DSCC executes dsadm and dsconf in the local machine (where common agent and ldap instances run).
    In unix, cacao calls suexec function and forks dsadm and dsconf processes with the user configured in each ldap instance. If cacao is not allowed to fork and to suexec, you'll get the error message, therefore I granted the user to execute "su" command and added the attributes "basic" with moduser.
    In windows it could be the same thing, but with windows stuff. I don't know how to debug and set permissions in Windows but I'm almost sure that it is the problem in your case.
    It could be that you are not allowed to fork programs if you are not registered in the domain. Please just check it and provide feedback.
    Regards.

Maybe you are looking for

  • IPhoto slide show music remotely through airtunes?

    I have an iPhoto slide show, and music for the slide show is set up through itunes (an itunes play list). itunes it set to play through speakers though airtunes, which works for regular itunes playlist playing. Can i get my slide show to play though

  • Problem mapping the iFS drive.

    when i work in the iFS server and click network neighborhood i can see home,root and public directories. when i go to another machine in the same network and go to the iFS server i cannot see these directories. On the second machine i've only install

  • Adobe Digital Editions not responding

    I try to open adobe digital editions and it says not responding as soon as I open it and it does nothing for hours.  It still does this even after uninstalling it and reinstalling it.  I really need this program to work on three essays.  Please help.

  • Plsql - utl_tcp

    hi, I have a utl_tcp.connection. When I create it (I call the open_connection function) I can define the timeout parameter. I want to change the timeout parameter before each read. How can I do that? thanks.

  • Hi all, as part of my job i need to educate the end users about BW..

    Hi All, As a part of my job i need to educate the End users about the BW. So, for that purpose i need prepare on fine doucment which is easy to understand by end user community. Any documents about this will help a lot. Could you pls send to this mai