Background colors became different after deployment

I wrote a Swing app which contains a bunch of JPanels. I set the background color of them to darkGray. Everything worked fine while I was working on it and running it in JDeveloper. But after I deployed it using a jar, the colors of the JPanels turned from darkGray to lightGray. Also I had set the row height of the JTables to a specific integer and that formatting dissapeared after deployment as well. Anyone have any ideas why this happened.
Thanks in advance.

Could be that you are using different versions of java in you development and deployment environments

Similar Messages

  • LV Bug? - Blink Background color only red after build

    It seems no matter what I choose for a Tools/Options/Environment/Blink Background color during debug (which works perfectly), the color will always revert back to the default of red after I build the application. I realize I can choose the colors but I would like to know why the blink color reverts back to red when the application is built. I am running LV2011 but I have noticed this in many of the previous versions as well. (I have tried changing the color from the project level as well as the debug level.)
    Solved!
    Go to Solution.

    j.masse wrote:
    To smercurio_fc - correct me if I am wrong but there are many things in the Tools\Options catagories that are built into the executable either directly or through the .ini file. It appears to me that the blinking colors are the only thing that doesn't make it into the build or the .ini file.
    That would be incorrect. There are LOTS of things that are in the labview.ini file that are not in the application's default .ini file. Most (if not all) of the Tools->Options settings are saved in the labview.ini file.
    Also, what is this 'build spec' that I may specify the color?
    I was referring to the "Advanced" page where you can specify a custom .ini file to include. Please read the documentation on the application builder.

  • Menu background color has changed after applying Forms Patch3 (10.1.2.3.0)

    Hi,
    we have applied Patch3 on our Forms Environment.
    Now the menu background color has changed from green to gray (colorScheme is "teal" in formsweb.cfg).
    This behavior isn't documented and our customer want's to get the green menubar back...
    Any hints?
    Greetings, Florian.

    removed because of obsoleteness...
    Edited by: W1zard on Feb 2, 2009 4:57 PM

  • Can't render background color in JComboBox, after selection.

    I don't understand why this problem is so difficult. It is driving me nuts.
    If I create a renderer for a Jcombobox, it will correctly render TEXT and COLOR if it is displaying it in the pop up list, but as soon as it has been selected, the combo will render TEXT correctly but will ignore COLOR. I have tried playing around with opacity and with the editors, but it just seems as if JComboBox renderers do not work 100% as expected.
    Here is my text code. All I want is for the color of X or Y to be reflected in the selected element :
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JPanel;
    public class CustomComboBoxDemo extends JPanel {
        public CustomComboBoxDemo() {
            super(new BorderLayout());
            String[] s = { "1", "2", "3", "4", "5" };
            JComboBox c = new JComboBox(s);
            JComboBox c2 = new JComboBox(s);
            c.setOpaque(true);
            ComboBoxRenderer renderer= new ComboBoxRenderer();
            c.setRenderer(renderer);
            c2.setRenderer(renderer);
            JPanel p = new JPanel();
            p.add(c);
            p.add(c2);
            add(p);
        class ComboBoxRenderer extends DefaultListCellRenderer {
            public ComboBoxRenderer() {
                setOpaque(true);
            public Component getListCellRendererComponent(
                                               JList list,
                                               Object value,
                                               int index,
                                               boolean isSelected,
                                               boolean cellHasFocus) {
                 JLabel c = (JLabel)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
                 if (value.toString().equals("3")) {
                     c.setText("X");
                     c.setBackground(Color.RED);
                 } else {
                     c.setText("Y");
                     c.setBackground(Color.GREEN);
                 return this;
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("CustomComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(new CustomComboBoxDemo());
            //Display the window.
            frame.pack();
            frame.setVisible(true);
    }

    I think the problem has to do with the Alloy look and feel. If I use the Systsem look and feel then the setBackground() method does not colour in the button (just the textfield)
    This has fixed my initial problem :
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import javax.swing.DefaultListCellRenderer;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.UIManager;
    import javax.swing.plaf.basic.BasicComboBoxEditor;
    public class CustomComboBoxDemo extends JPanel {
        public CustomComboBoxDemo() {
            super(new BorderLayout());
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (Exception e) {
                   e.printStackTrace();
            String[] s = { "1", "2", "3", "4", "5" };
            JComboBox c = new JComboBox(s);
            JComboBox c2 = new JComboBox(s);
    //        c.setRenderer(aRenderer)
    //        c.getEditor().getEditorComponent().setBackground(Color.GREEN);
            c.setBackground(Color.pink);
            c2.setBackground(Color.pink);
    //        c2.setBackground(Color.black);
            c.setOpaque(true);
            c2.setOpaque(false);
            ComboBoxRenderer renderer= new ComboBoxRenderer();
            c.setRenderer(renderer);
            c2.setRenderer(renderer);
            JPanel p = new JPanel();
            p.add(c);
            p.add(c2);
            add(p);
        private class MyComboBoxEditor extends BasicComboBoxEditor{
             public Component getEditorComponent(){
                  Component comp = super.getEditorComponent();
                  comp.setBackground(Color.red);
                  return comp;
        class ComboBoxRenderer extends DefaultListCellRenderer {
            public ComboBoxRenderer() {
                setOpaque(true);
            public Component getListCellRendererComponent(
                                               JList list,
                                               Object value,
                                               int index,
                                               boolean isSelected,
                                               boolean cellHasFocus) {
                 JLabel c = (JLabel)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    //             setForeground(Color.green);
    //             setBackground(Color.black);
    //             list.setForeground(Color.green);
    //             list.setBackground(Color.black);
                 if (value.toString().equals("3")) {
                     c.setText("X");
                     c.setBackground(Color.RED);
                 } else {
                     c.setText("Y");
                     c.setBackground(Color.GREEN);
                 return this;
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("CustomComboBoxDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(new CustomComboBoxDemo());
            //Display the window.
            frame.pack();
            frame.setVisible(true);
    }

  • Different background colors after publishing

    I imported a powerpoint presentation into Captivate 7 and everything looks fine in the film strip. However, when I preview or publish the project some of the background colors change dramatically (dark blue/grey turns into sky blue). Is there a way to get around this prioblem?

    Here is what the color difference looks like. The first is after publishing and the second is what it looks like within captivate

  • Report Generation broken after deployment - Excel Set Cell Color and Border.vi

    Upon deployment, the Excel Set Cell Color and Border.vi became broken.  After installing LV2010 SP1 to view the VIs in the deployment, I noticed that in the second case structure where the code draws the border using the BorderAround invoke node, there is an extra variant input parameter named 'Parameters'.  Upon right-clicking, an option to 'Relink Invoke Node' appeared and after selecting this, the extra input disappeared and the VI was no longer broken.
    Why does "Relink Invoke Node" appear?  How do I create a deployment with this issue?  Has anybody else experienced this?  Why is the TestStand deployment so buggy?  

    Hi Ching-Hwa,
    I have set up a test deployment here where I am deploying a workspace that contains a sequence file.  This sequence file has a LabVIEW Action Step calling a VI that opens a new Excel file and simply calls the Excel Set Cell Color and Border VI.  After deploying this, both the VI and my test sequence ran on the deployment machine without error.  Therefore, I do have some more questions to more accurately reproduce what you are seeing.
    First, what operating systems are you developing on and deploying to?  Also, what license do you have for TestStand on the machine you are deploying to?  If you have a development version, can you manually take the sequence file and VI to this machine and run it?  I know you now have LabVIEW 2010 SP1 on your development machine, but if you have the development version of TestStand as well, it would be interesting to see if you copy the files over if you still see this behavior.  Are you including the TestStand Engine in the deployment?
    Can you open a blank VI on the deployment machine and add the Excel Set Cell Color and Border VI?  It would also be interesting to see if this is not a product of the deployment, but rather an issue with something on the deployment machine itself.  What version of the Report Generation Toolkit do you have on each machine?  Also, what versions of Excel are you using on the development and deployment machine?  Again, it would be helpful for me to know exactly what versions you have installed on both the development and deployment machines so that I can reproduce this as accurately as possible.
    One last thing to try, too, would be to try deploying the VI by itself just to see if it also has the same behavior.  Do you have the Application Builder in LabVIEW?  If so, could you also try building an executable from the VI, create an installer, and deploy this to the deployment machine?  
    In regards to the "freezing" of code by removing the block diagrams, I do not believe this will be a proper work around in this case.  While this removes the block diagram from actually being deployed along with the VI and restricts users from editing the code on the deployment machine, if something is getting changed in the compiled code upon deployment, this will not stop this from happening.  This option is available more as a memory option to lower the size of the deployment as well as prohibit any users on the development machine from editing the block diagram themselves.    
    Thanks, Ching-Hwa!  I look forward to your response so that I can continue trying to reproduce this issue.  Have a great day! 
    Taylor G.
    Product Support Engineer
    National Instruments
    www.ni.com/support

  • Background color different than in index.html

    Hello All,
    does anyone know what what is the cause that the background color of knoweldge folder is different that one specified in index.html?
    After portal restart some of the knowledge room has changed the background colors to the portal theme and some of them are still as defined in index.html
    Anyone knows where is the prob?
    Thanks for info & help!
    Karol

    We need to see the page in question.

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first, third,
    fifth...).
    Anyone knows if this can be done?
    Thanks, guys!

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • Rows with different background color in array

    I am displaying an array indicator. When certain values are found in a row of the array, I would like the row to have a different background color so that it stands out on the front panel. Can this be done? Especially, can this be done using property nodes dynamically?
    Thank you

    Hi jmaarek,
    I don't think you can do this with arrays as all the elements have the same properties.
    You can do this with a table though. Use the 'Active Cell' property (set the row to -2 to select the entire row) and the 'CellBGColor' property.
    Hope this helps.

  • Change different background color in row grid

    Hi,
        i want to change different  background color in row grid..ex.two different colors should continue in all row grid..pls guide me ..
    Regards,
    Senthil.

    Hi Senthil,
    If I understand you correctly, you wish to show a grid with alternating colours down the rows.
    You have a few options:
    1) Apply a stylesheet nd display it as HTML.  But this solution lacks the advantages of the iGrid
    2) Return a field with alternating 1's and 0's in the query and use this field in the Colour-Context mapping
    3) Use JavaScript to loop through each row and set alternating background cell colour for all columns
    Hope this helps.
    Cheers,
    Jai.

  • Region Header Background Color different to the theme template

    Hello,
    for my apex application i configured the theme Blue Gray - 13.
    I want that my application displays all region-, report headers on every page in a different color, for example "magenta".
    My CSS Code in the page header on page1:
    <style type="text/css">
    .t13RegionHeader {background-color:#FF3FA0;}
    th.t13ReportHeader {background-color:#FF3FA0;}
    </style>
    {code}
    works fine for report regions and form regions, but i didn't manage to change the color for the tabs. Is there any chance to switch the background color for tabs. Perhaps it's a better way to change the Color of the theme but I nether know how to manage this.
    Does anybody have an idea?
    Thanks in advance
    Christian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Chris,
    first thanks for your quick answer.
    ...but it didn't work.
    I'm using the Internet Explorer, but i analysed the source code of the running page. I tried also the entries: .t13PageTabs and th.t13PageTabs but i had no success on this try.
    For the Page Tabs i found the following code:
    <div id="t13PageTabs"><table cellpadding="0" cellspacing="0" border="0" summary="" class="t13PageTabs"><tbody><tr><td class="OnL"><img src="/i/themes/theme_13/tabOnL.png" alt="" /></td>
    <td class="OnC"><span>Produkt</span></td>
    <td class="OnR"><img src="/i/themes/theme_13/tabOnR.png" alt="" /></td><td class="OffL"><img src="/i/themes/theme_13/tabOffL.png" alt="" /></td>
    <td class="OffC"><a href="javascript:doSubmit('T_BUSINESSPROCESSVKZ');">Business Process VKZ</a></td>
    <td class="OffR"><img src="/i/themes/theme_13/tabOffR.png" alt="" /></td><td class="OffL"><img src="/i/themes/theme_13/tabOffL.png" alt="" /></td>
    <td class="OffC"><a href="javascript:doSubmit('T_PORTALPRODUKTE');">Portal Produkte</a></td>
    <td class="OffR"><img src="/i/themes/theme_13/tabOffR.png" alt="" /></td><td class="OffL"><img src="/i/themes/theme_13/tabOffL.png" alt="" /></td>
    <td class="OffC"><a href="javascript:doSubmit('Default Portal Produkte');">Default Portal Produkte</a></td>
    <td class="OffR"><img src="/i/themes/theme_13/tabOffR.png" alt="" /></td><td class="OffL"><img src="/i/themes/theme_13/tabOffL.png" alt="" /></td>
    <td class="OffC"><a href="javascript:doSubmit('T_DEFAULTPORTALFEATURES');">Default Portal Features</a></td>
    <td class="OffR"><img src="/i/themes/theme_13/tabOffR.png" alt="" /></td><td class="OffL"><img src="/i/themes/theme_13/tabOffL.png" alt="" /></td>
    <td class="OffC"><a href="javascript:doSubmit('T_PRODUKTUNABHAENGIGE_FEATURES');">Produktunabhängige Features</a></td>
    <td class="OffR"><img src="/i/themes/theme_13/tabOffR.png" alt="" /></td></tr></tbody></table>
    </div>Do you have another idea to succeed?
    Thanks in advance
    Christian

  • Different background color in  summation

    Is there any possibilities to set the different background color and applied the conditional format in summation columns in vertical table in obiee answers.
    Kindly let me know asap.
    Thanks in advance.

    Hi,
    Do you mean in grand total columns? if so just click on edit table view >> beside the summation symbol click on the properties button there you can change the font color or back ground color etc...
    Update if required.
    Mark if Helpful/correct.
    Thanks.

  • Different background color in panelBox's header

    Hi,
    I need to have a different background in the header of the panelBox than the background color of its content.
    <af:panelBox text="Aug 8, 20121"
    id="pb5"
    titleHalign="center"
    type="flow"
    showDisclosure="false"
    ramp="highlight"
    background="light">
    I understand that we can change style in css. But I only want this style of panelBox apply to one UI page only. It should not affect panelboxes in other UI pages.
    How can I achieve this? What's the syntax of changing the background color of panelBox's header?
    Thanks
    -Mina

    Hi,
    the solution is to use instance specific skinning. In this you define a styleCalss name for the panel box you want to change
    <af:panelBox
      icon="/skins/images/guy.gif"
      text="PanelBox Instance Skinned"
      styleClass="DifferentBackgrundColor">
          <f:facet name="toolbar"/>
    </af:panelBox>.DifferentBackgrundColor af|panelBox::header-start,
    .DifferentBackgrundColor af|panelBox::header-center,
    .DifferentBackgrundColor af|panelBox::header-end,
    -tr-inhibit:background-image;
    background-color:red;
    Frank

  • Background color in HTML widget is a totaly different color in IE than what

    Background color in HTML widget is a totaly different color in IE than what is shown in safari. http://web.mac.com/bmoody/Royalfest/5k.html .The scrolling text background is beige in safari and Firefox but blue in IE6. Any insite to what I can change or what the issue is other than microsoft would be greatly appreatiated

    Welcome to the Apple Discussions. Unfortunately this about says it all:
    The scrolling text background is beige in safari and Firefox but blue in IE6.
    You could try an image file of the color you want to have and see if it will be rendered any truer by IE. Be sure the file contains the sRGB color profile that most web sites use and it should render the same on all browsers except for possibly the brightness.
    OT

  • FormatType="number" sets different background color too

    Hi all!
    I have an af:table element and af:column inside that has formatType="number" to get the right-justified text. But beside right aligning the column values the column becomes gray. I don't like having text columns white and number columns gray in the same table. Is this a deliberate feature?
    I would like to set the background color to white, but background-color property for this column is not considered. If I set the background-color property for af_outputText inside this column I also don't get the desired look.
    Thanks!
    Take care!

    Hi Frank!
    I've created ADF read-only table for my view object. If I run the page immediately after this, all columns are white with gray headers which is OK. Then I change only the formatType property for one column:
    <af:column sortProperty="Mass"
                     sortable="false"
                     headerText="#{bindings.MyView.labels.Mass}"
                     formatType="number">
      <af:outputText value="#{row.Mass}">
      <f:convertNumber groupingUsed="false"
                                pattern="#{bindings.MyView.formats.Mass}"/>
      </af:outputText>
    </af:column>This makes the text in this column to be right aligned but also the column becomes gray.
    Hope to hear some more suggestions from you.
    Thanks, bye!

Maybe you are looking for

  • Need to deny access to file manager for the user

    Hi I need to be able to deny access to the file manager, as I dont want my client deleting files. however, for some reason I have to allow him access to this as he needs to be able to upload files through InContext Editor (he needs to link pages to d

  • Where do I get a copy of Visual Composer??

    Hi, Pls where can I get a copy of Visual Composer [VC]?? It is not available for download from the SAP website. I wanted to create an EAI solution for demonstration purposes using VC, but I read it is not possible to connect to non-SAP systems using

  • I loss my text/edit icon in launchpad, How to recover? Please

    How to recover text/edit icon in launch pad?

  • Parameter Display in BADI Enhancement Class Builder

    Hi Everybody,          I have two ABAPers in my Company.In SE19 they are doing some BADI Enhancement.When they double click the Methods available inside the BADI, One Person can able to see  the Parameter Name,Type & its Description  on the Top of th

  • Trying to map a drive to a share on a mac from a PC

    My home network has a mac and a pc, the network router is tcpip only. How do I map a drive to a share on a MAC from a PC? I don't see the Mac in Network Neighbourhood. The mac has file sharing on with SMB. I can connect from the mac to the PC....