Change color/font of tabs

Is there a way to change the color or font of tabs, in Forms 6i, based on certain data in that data block.
For example, I have a form with 8 tabs and 8 data blocks. Not all tabs have data. For the ones that have data I want to make a color (lets say blue) and the ones that have discipline I want to make that tab a different color (red for example).
Is there a way to do this? I looked at set_tab_page_property, but did not see anything about color of the tab. I was able to set the enabled/disabled successfully, but in this case this will not help me.
Thanks in advance.
Sandeep.

You can't change the font or color of a tab-page-"header". You can only change the text (maybe put the number of records in brackets behind the text)

Similar Messages

  • Change Color of Disable Tab in JTabbedPane

    Hello Friends,
    I have one JTabbedPane in my Application.
    In that one Tab is Disable.
    I want to change default Background and Foreground color of that tab.
    Can u help me...
    Thanks in Advance,
    Nishith Shah.

    hii,
    please I can't find out any DisableColor or something similair for defaultTabbedPaneUI, please try (unselect)
    package jtabs;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Insets;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    import javax.swing.plaf.ColorUIResource;
    public class TestTabbedPane extends JFrame {
        JTabbedPane tabbedPane;
        public TestTabbedPane() {
            tabbedPane = new JTabbedPane();
            tabbedPane.setPreferredSize(new Dimension(300, 200));
            getContentPane().add(tabbedPane);
            JPanel panel = new JPanel();
            tabbedPane.add(panel, "null");
            JTextField one = new JTextField("one");
            tabbedPane.add(one, "one");
            JTextField two = new JTextField("two");
            tabbedPane.add(two, "two");
            tabbedPane.setEnabledAt(2, false);
            /*UIManager.put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0));
            UIManager.put("TabbedPane.highlight", new Color(255, 0, 0));
            UIManager.put("TabbedPane.lightHighlight", new Color(0, 255, 0));
            UIManager.put("TabbedPane.darkShadow", new Color(0, 255, 0));
            UIManager.put("TabbedPane.shadow",new Color(0, 0, 255));
            UIManager.put("TabbedPane.light" ,  new Color(0, 255, 0));
            UIManager.put("TabbedPane.foreground", new Color(0, 0, 0));
            UIManager.put("JTabbedPane.font", new Font("Dialog", Font.ITALIC, 12));
            UIManager.put("TabbedPane.selected", new Color(255, 0, 0));
            UIManager.put("disable", new Color(255, 0, 0));
            UIManager.put("TabbedPane.selectHighlight" , new Color(0, 0, 0));*/
            //UIManager.put("TabbedPane.background",  new Color(0, 0, 0));
            //SwingUtilities.updateComponentTreeUI(tabbedPane);
            /*tabbedPane.setTitleAt(2, "<html><font color=" +
                    (tabbedPane.isEnabledAt(2) ? "black" : "red") + ">" +
                    tabbedPane.getTitleAt(2) + "</font></html>");*/
        public static void main(String args[]) {
            TestTabbedPane frame = new TestTabbedPane();
            frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
            frame.pack();
            frame.setVisible(true);
    } value are from
    import javax.swing.*;
    import java.util.*;
    public class GetUIManagerList {
        public static void main(String[] args) {
            UIDefaults defaults = UIManager.getDefaults();
            System.out.println(defaults.size() + " properties defined !");
            System.out.println("-----------------------------------");
            String[] colName = {"Key", "Value"};
            String[][] rowData = new String[defaults.size()][2];
            int i = 0;
            for (Enumeration e = defaults.keys(); e.hasMoreElements(); i++) {
                Object key = e.nextElement();
                rowData[ 0] = key.toString();
    rowData[i][ 1] = "" + defaults.get(key);
    System.out.println(rowData[i][0] + " ,, " + rowData[i][1]);
    please could I ask camickr or DarrylBurke how to overide disabled label in JTabbedPane (without Shadows), with using their SwingUtils
    ... kopik                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Print a document after I change color font

    Hi,
    i have adobe reader 9 pro and I want to print a document here i modified the color fonts.
    In the screen,the colors of fonts are changed and also in the prevew print,but I can't print with the new colors.
    why

    sniffters wrote: How do I set preferences to allow me to print a document of black alphabetics a different color?
    Hello sniffters, It appears you would need to change the color of the text in the program that the text was created in.
    I know of no printer setting, other than color and black and white, that can be made in the prinrer settings section..
    Please click the White Kudos star on the left, to say thanks.
    Please mark Accept As Solution if it solves your problem.

  • Change color of portal tab strip

    Hi.
    In EP versión nw04s sp 16 there is a bug in the theme editor, is not posible to modify the tab color in the standard portal tabstrip.
    The note 1150293 said that it should modify some css files, i do it but the tabs of standard tabstrip control do not change color...
    I have clear the portal cacher, open a new browser window, restart java server...
    any idea?
    thanks...

    Thanks Aditya... but i made the modifications in this manner... i have copied the css files in other directory, edit it, and, then, i put it manually in the corresponding directory...
    When, after that, i open the css files, it has the modifications than i made... but the standar tabstrip control remains with the same colors.
    Any other idea?
    Thank you very much and regards

  • Use Resource Editor to change colors/fonts in Logic 8?

    Many years ago I used to develop for the Mac (now I'm a Mac-challenged Windows guy).
    I seem to remember ResEdit, where one could change the fonts and colors of the different objects of a program. Everything like this was in a resource fork, so that the program could be localized for different countries.
    Any developers out there? Would this be possible with Logic 8?

    Short answer: highly doubtful for fonts, probably possible for graphics if you really have the time.
    Long answer: Since OSX, Apple has been trying to get away from using resource forks, although they are still obviously supported by the OS in some areas. Applications in OSX no longer can store their entire executable code and resources in a resource fork; they instead store them as plain 'ol files located within the program's bundle.
    If you look inside the logic 8 bundle (by right clicking on it in finder and then going to "show package contents"), you can see for yourself what's there. You'll see that there's only 2 font files in the bundle, and both of them are used for scoring. Logic probably is using system fonts, and to change the way that it renders them, you'd also need to alter the program binary somehow. So you'll just have to keep begging apple to re-introduce the preference for non antialiased fonts.
    As for graphics, you can see that within the Contents/Resources directory, there are hundreds of familiar TIFF files used to build the Logic UI. I suppose, if you really felt so inclined, you could redo them all yourself provided you kept each one the same size. However, it should be noted that this is kind of a fool's errand, not only because of the time involved, but also because any changes you make will get blown away by software update for newer versions of Logic.

  • Change Color on Sheet Tab's from value in Cell

    I have try this code but it seem's not to Work propperly
    Private Sub Worksheet_Change(ByVal Target As Range)
    '    If Range("F58") > 9 Then
    '         Me.Tab.ColorIndex = 3
    '    ElseIf Range("F58") = 8 Then
    '         Me.Tab.ColorIndex = 8
    '    ElseIf Range("F58") < 7 Then
    '        Me.Tab.ColorIndex = 10
    '    ElseIf Range("F58:F59") = 0 Then
    '        Me.Tab.ColorIndex = xlColorIndexNone
    '     Else
    '         Me.Tab.ColorIndex = xlNone
    '    End If
    'End Sub
    the options ill need is
    1 When cell F58 is over 8 then Tab change to GOLD color
    2 When Cell F58 (8) then Tab Change to Silver color
    3 when cell F58 is under 8 Then Tab Change to Bronze Color
    If no Number in F58 Then No Color

    Thanks to you for the Help i have made a litle Change into it and then it's WORK as it shoul
    your code.
    Private Sub Worksheet_Change(ByVal Target As Range)
         If Range("F58") > 8 Then
              Me.Tab.ColorIndex = 10
         ElseIf Range("F58") = 8 Then
              Me.Tab.ColorIndex = 8
         ElseIf Range("F58") < 8 And Range("F58") > 0 Then
             Me.Tab.ColorIndex = 3
         ElseIf Range("F58") = 0 And Range("F59") = 0 Then
             Me.Tab.ColorIndex = xlColorIndexNone
         End If
     End Sub
    My ode after the changes
    Private Sub Worksheet_Change(ByVal Target As Range)
              If Range("F58") > 8 Then
              Me.Tab.ColorIndex = 10
             ElseIf Range("F58") = 8 Then
              Me.Tab.ColorIndex = 8
             ElseIf Range("F58") < 8 And Range("F59") > 8 Then
             Me.Tab.ColorIndex = 3
         ElseIf Range("F58") = 0 And Range("F59") = 0 Then
             Me.Tab.ColorIndex = xlColorIndexNone
         End If
     End Sub
    Your Regards From Henrik-1 And Danish Dart Union

  • Changing Colors of selected tab in JTabbedPane.

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

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

  • Change Color in Messages and General Customization (Pixi Plus Verizon)

    Hi everyone, I just got the Palm Pixi Plus and I'm still figuring everything out, so I hope this isn't a silly question. Is there a way to change the background color of each contact in Messaging? My outgoing messages are always green and incoming messages are always displayed in blue - is there a way to assign a color to a contact or message thread?
    It also seems that in general, the display of the phone does not seem very customizable - is this true or have I just not figured it out? For instance, changing colors/font sizes in menu, adding a larger clock to the Launcher screen, etc, options that are pretty standard on all cell phones. Is changing the wallpaper really the only way to customize the display?
    Thanks a lot!

    Hello kbend and welcome to the forums;
    By default, wallpaper and sound customizations are the extent of changes you can make. However, as was noted in the official Palm blog http://blog.palm.com/palm/2010/03/makeover-madness.html the homebrew community has the ability to "theme" your device, changing nearly every aspect of the user interface.
    Please be aware however, adding homebrew applications or patches is not supported by Palm, and we would be unable to troubleshoot anything related to these features.
    Hope this helps,
    TreoAide

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • Tab control page label change color programmatically

    Hi everybody!
    I have a question about a tab control.
    I'm trying to figure out a way to programmatically change the  properties of the tab labels so the selected tab's label looks different to the others.
    I'd like to do this by changing aspects of it's font and it's color. But I can't find out how to access it either directly or by reference.
    I can get at the label string so if all else fails I could make the selected one all capitals!
    Am I missing something, or is this one of those things which can't be done?
    I'm using Labview 11.
    Regards,
    Jonathan.

    The link still works for me!
    Search the forum for "Tab Color".
    This does not change the text, but the tab color which is what I do to high light the selected tab.
    I use dark gray and light gray to help the user tell which tab is "active".
    Not exactly what you wanted.
    http://forums.ni.com/t5/LabVIEW/How-can-I-change-the-font-color-size-of-tab-controls/m-p/967920/high...
    http://forums.ni.com/t5/LabVIEW/Programmatically-changing-page-color-in-a-tab-control/m-p/840699/hig...
    http://forums.ni.com/t5/LabVIEW/tab-control-color/m-p/3062557/highlight/true#M873360
    Omar

  • Color not changing on Selected Menu tab

    I'm creating a custom css and in doing so have been trying to change the text color of the selected menu tab. I've added it to my stylesheet but it is not changing upon running it. If I change the menu tab specifically via the properties of the tab, it will change. Is 'color' something we can change?
    Here is a snipet of my css:
    .af|menuTabs::selected {color:red;
    white-space:nowrap;
    font-family:Arial,Helvetica,Geneva,sans-serif;
    font-size:200%;
    background-color:white;
    font-weight:bold;
    text-decoration:none;
    Thanks,
    Lisa

A: Color not changing on Selected Menu tab

Your '.' before af|menuTabs is wrong.
It's just "af|menuTabs::selected" not ".af|menuTabs::selected".
Also, you need to use the ::selected-link pseudo-element to style the color of the text.
/* Make the selected tab bold */
af|menuTabs::selected-link
font-weight: bold;
font-size: 14pt;
color: green;
}

Your '.' before af|menuTabs is wrong.
It's just "af|menuTabs::selected" not ".af|menuTabs::selected".
Also, you need to use the ::selected-link pseudo-element to style the color of the text.
/* Make the selected tab bold */
af|menuTabs::selected-link
font-weight: bold;
font-size: 14pt;
color: green;
}

  • BI Customization-Can we change the font color in BI launchpad

    Dear All,
    I am working on BI customization and also able to implement the same as per our client needs(Logo change and BG color change).However Business expects us to change the font color Black (For example: Home & document tab font color is in black by default) to white color as the background color is dark Red.
    Can you guide/help me to change the font related things and also where to edit to reflect the changes.
    BO Version: BI 4.1.
    Please find the attachment for reference.
    Thanks in advance!
    Regards
    Palanivel

    Palanivel,
    I have found a way, in the customize.css file, go to the following entry :
    /* (8.1.2) customize module title backgorund */
    .WindowThemeinfoview .titleBG  {
        background-color: #EF6600 !important;
    Under backround-color line add : color: #yourcolor e.g.
    /* (8.1.2) customize module title backgorund */
    .WindowThemeinfoview .titleBG  {
        background-color: #EF6600 !important;
        color: #FFFFFF
    This will change your font colour from the standard blue/grey.
    Regards
    Dan

  • Fonts and Colors for Sub-Tabs

    Does anyone know of a way that I can specifiy fonts and colors
    for sub-tabs. I have a second row of tabs (sub-tabs) on one of
    my pages and I can't seem to find where I can set the font and
    colors for the sub-tabs. Also, the sub-tabs do not inherit the
    same font and color as the main tabs.
    Anyone have any suggestions?

    Hi, What I can tell you is that you can either edit the page and
    hit the style tab then edit the current style(the one you are
    currently using in your page) and change all the banners tabs
    (active and inactive) the background color, background image,
    etc, I believe the second tab row and any others are by default
    the same as the first row.
    Rgds, Carolina.

  • Firefox fonts keep changing colors.

    When I go to a webpage and try to start reading.......the text starts changing colors and the font changes to weird looking symbols, like an alien font and can not be read. If I highlight the text.....it will correct....but will return to alien within a min. But the biggest problem with firefox is it's inability to scroll smoothly. I have used firefox for about six yrs. now and this problem has never been fixed. I have used firefox on many hardware platforms and many windows operating systems.....firefox has always had a horrible scroll. I appreciate any help...but have tried the option settings for yrs. now to no avail. I'm afraid my frustration will take me to a different browser.

    Thank you very much. That seems to work very well. I really do appreciate it. The same thing has been going on with my girlfriend's rig. I also found this...."I was trying to get the same impression of ease and speed Chrome scroll has from Firefox 17 @ Linux, AMD64 and after trying several setups here is how to make your Firefox to give even better feel than Chrome:
    1. Set mousewheel.min_line_scroll_amount to 40 (WAS 5)
    That was a great start though Firefox scroll will still appeared jerky. (Chrome has that value lower, but I liked it at 40)
    2. Set general.smoothScroll and general.smoothScroll.pages to false
    Smooth scrolling is bad for the IT professionals giving extra pressure to the eyes and Chrome doesn't use it in the same way as Firefox does. Now we're close but still all the pages in tabs are a bit jerky.
    3. And now the final ingredient. It appears that all the hieratic scroll was caused by image discard check routine. Do not turn it off just set image.mem.min_discard_timeout_ms to something really large, I set mine to 2100000000 (WAS 10000)
    After that increase image.mem.max_decoded_image_kb to at least 512K (WAS 256000)
    Done. In my case (Gentoo, amd64) this setup changed how the page within tab scrolls (very smooth now), how FF switches between tabs (it's now very smooth too, chrome like) and overall impression of how all the opened tabs are performing was increased. May be the change is not same within different systems but it's worth a try if you want to improve FF responsiveness. "
    I tried that and it seems to tame the scrolling down quite a bit. Not sure what it all does....but it allows me to keep firefox and I do thank you.
    earl

  • Change footer font color with embedded form?

    How do I change the font color on the footer of a form in FormsCentral?
    When I developed the form I was using a design that looked great in a standalone format, but we're considering embedding the form. When I went to embed the form, the links at the bottom became useless because the font in the footer is white (see attached screen shots).

    Hi,
      In order to see the background color of the form, you will have to enable it.
    Open the form in FormsCentral, go to Distribute tab / Embed sub tab and check : "Include page background color" check box.
    >>How do I change the font color on the footer of a form in FormsCentral?
    You will need to change the text color of your form header.  Open the form in FormsCentral, select Design Tab, select the form header, select the text and change the text color to other-than-white via the Toolbar.
    Hope this works for you,
    Thanks,
    Lucia

  • Maybe you are looking for

    • Installation & setting OBIEE 10.1.3.4.1 on Windows Server 2008 r2

      Hi Gurus, I am able to install the OBIEE software help of below thread. OBIEE - Windows Server 2008 Then i face issues like not able to connect to ODBC and other then i googled i found the below link. http://oraclebiblog.blogspot.com/2009/06/installi

    • Error while installing SAP Enterprise 4.70 for Oracle

      Hi all, While installing R/3 4.7 on Windows 2000 with oracle database ,while installing database instance i encountered the following error message. CJS - 00084 SQL statement or Script failed Error Message: Executable D:\oracle\ora92/bin/sqlplus.exe

    • Row-Based Only option for post processing operator

      Hi, Have a question on the role of the "Row-base Only" option for post processing operators. I am trying to understand how a post-processing operation can be done in a row-based mode. A coded PLSQL procedure in a post processing operator is expected

    • Enabling html snippets

      Hi, I'm a new Contribute user. My web site was designed by a fellow in England using DreamWeaver, but he's no longer involved in the site design. When I went to insert an html snippet, the feature was greyed out in my command line and the instruction

    • Bbc iplayer

      Can somebody help me with the problems I am having with my iplayer since I was upgraded to Infinity. I can't receive iplayer as it keeps buffering. I spoke to customer services a month ago and was told it was a software problem and the techies were w