Change color of the scroll bar?

I am trying to turn my entire application black with white or some light colored text.
Is there some way I can change the color of the scroll bar?
Also, if I have a JTable, there is a bright grey border I would like to dim down a bit.
Any guidance would is appreciated.

Hi,
This code will show you the current UI settings.
If you want to change ie. the scrollbar background use:
UIManager.put("Scrollbar.background", your Color);
Hope this helps.
Regards,
Matt
Java Developer Technical Support
Sun Microsystems
import javax.swing.UIManager;
import javax.swing.UIDefaults;
import java.util.*;
class UIList {
    public static void main(String args[]) {
        // Groups of item objects
        Vector itemGroups = new Vector();
        Hashtable itemList = new Hashtable();
        UIDefaults uiDefaults = UIManager.getDefaults();
        for (Enumeration enum = uiDefaults.keys(); enum.hasMoreElements(); ) {
            Object setting = enum.nextElement();
            String settingName = setting.toString();
            int dotIndex = settingName.indexOf(".");
            if (dotIndex != -1)
                settingName = settingName.substring(0, settingName.indexOf("."))
            if (itemList.containsKey(settingName)) {
                Integer groupNum = (Integer)itemList.get(settingName);
                Vector group = (Vector)itemGroups.elementAt(groupNum.intValue())
                group.add(setting);
            else {
                itemList.put(settingName, new Integer(itemGroups.size()));
                Vector group = new Vector();
                group.add(setting);
                itemGroups.add(group);
        for (int counter = 0; counter<itemGroups.size(); counter++) {
            Vector items = (Vector)itemGroups.elementAt(counter);
            System.out.println("");
            for (int counter2 = 0; counter2<items.size(); counter2++) {
                Object setting = items.elementAt(counter2);
                System.out.println(setting + " = " + uiDefaults.get(setting));
        System.out.println("\nDone.");
        System.exit(0);
}

Similar Messages

  • How do i change font sizes and colors in ical in OS Lion.  Everything is greyed and too small.   And how do I changed the color of the scroll bars, which are now invisible?

    how do i change font sizes and colors in ical in OS Lion. Since upgrading,  all fonts are grey, instead of black,  and too small.   And how do I changed the color of the scroll bars, which also are grey and almost invisible?  And if you can asnwer this, can you tell me how to get back the email format I had before the upgrade?  I no longer have column headings and I'd like them.  Thank you. 

    Do you know about changing the font colors for ical, and the color of the scroll bars?
    No, I don't. I don't use that program; I fiddled with it just now, and could not find a way to do that.
    Perhaps someone else will have an idea.

  • Changing color on the title bar

    How can I during runtime change the color of the title bar? I want to flash the title bar to warn, but I haven't found the function to set the color of it yet...
    Thanks in advance!
    Regards,
    Andreas

    since 1.4 you can use
    JFrame.setDefaultLookAndFeelDecorated( true );
    JDialog.setDefaultLookAndFeelDecorated( true );to get jframes and jdialogs looking like jinternalframes. but i don't know if it is now possible to change the color.
    tobias

  • What errors are indicated by the pink color on the scroll bar?

    Here are the settings for the scroll bar:
    Here is the scroll bar full of pink marks meaning the file is full of such errors:
    Unfortunately, I can't figure out what they are.  Could anyone offer a tip on this?
    BTW, the project builds and runs fine without any problem.
    Hong

    Hi Hong,
    Which VS2013 version did you use?
    So you mean that your project code doesn't have any error, but you still get the annotations, am I right?
    If so, how about creating a simple app? For example, make sure that it has an error in code, how about the result?
    I test it in my side with VS2013, it works well like the following screen shot.
    Anyway, we have to make sure that whether all projects have the same issue, if all projects have the same issue, I doubt that it is your VS IDE issue.
    Please disable all add-ins, and then reset your VS, re-disable some settings under Tools->Options->Text Editor, close VS, re-open it, test it again.
    But if just one specific project has this issue, sorry for that we couldn't repro this issue, maybe you could share us a simple sample, I will test it in my side. For detailed error messages, I suggest you view the Error list window or the Output window.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I would like to know it it's possible to change the scroll bar from the right part of the firefox browser, to the left part and, if it's possible, how can it be done. Thank you!

    The scroll bar (the one used to scroll up and down any kind of website), that is normally in the right part of the firefox browser, would be of much help to me if it could sometimes be moved to the left part of the browser. Is this possible? How can it be done? Can anybody tell me the exact steps to take in order to do this (if it is possible of course)? This would be helpfull to me, since I think that the firefox scroll bar is overlaping the scroll part of the facebook chat sidebar, since I just can see a few people on this facebook chat sidebar and I can´t scroll along it, as I could a while ago. So my guess is that the firefox scroll bar is covering the other. In order to solve it in a simpler way, I guessed that if the firefox scroll bar could be moved to the left side of the browser, this problem could be solved. So, can anybody help me?

    http://kb.mozillazine.org/layout.scrollbar.side
    Type '''about:config''' in Location (address) bar
    filter for '''layout.scrollbar.side'''
    Right-click the Preference and Modify it to '''3'''
    You may need to reload any pages open to have scrollbar move to left after Preference change.

  • All web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??

    all web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??
    == This happened ==
    Just once or twice
    == 2 days ago.

    See also this article about caret browsing: http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • How to change the color of the progress bar and string

    Is their anyway to change the color of the progress bar and the string which shows the progress of the bar. The current color of the bar is purple and i would like it to be red or blue so that it stands out against the background of the JFrame i am using. I dont want to change the color of the JFrame
    Thanks in advance

    import java.awt.*;
    import javax.swing.*;
    public class ProgressEx {
        public static void main(String[] args) {
            UIManager.put("ProgressBar.background", Color.WHITE);
            UIManager.put("ProgressBar.foreground", Color.BLACK);
            UIManager.put("ProgressBar.selectionBackground", Color.YELLOW);
            UIManager.put("ProgressBar.selectionForeground", Color.RED);
            UIManager.put("ProgressBar.shadow", Color.GREEN);
            UIManager.put("ProgressBar.highlight", Color.BLUE);
            JFrame f = new JFrame("Test");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JProgressBar pb1 = new JProgressBar();
            pb1.setStringPainted(true);
            pb1.setValue(50);
            JProgressBar pb2 = new JProgressBar();
            pb2.setIndeterminate(true);
            Container cp = f.getContentPane();
            cp.add(pb1, BorderLayout.NORTH);
            cp.add(pb2, BorderLayout.SOUTH);
            f.pack();
            f.setVisible(true);
    }

  • I can't see the scroll bar too well (Colorblind). How do I change this?

    The version I am using is ver. 33.
    I know this seems like a dumb question, but I am getting really frustrated with not being able to see the scroll icon/bar when I am 2/3rds of the way through a report or etc.
    Basically, if I click and hold to scan through an item and I need to, roughly, know where I am at or even where it is on the screen it's so [ale I don't see it.
    Any help would be greatly appreciated.

    I see no difference between Firefox's scroll bar and that of Microsoft applications.
    Certain complete themes change the scroll bars, but they also alter the rest of the interface.
    * https://addons.mozilla.org/firefox/complete-themes/

  • Change the default teal blue color in the status bar and message section

    Hello, I need to change the following items in the Sony Theme Creator. Can someone please guide me? 1. Change the default color of the Status Bar (blue/teal in the below image) I have already inserted images in the Status Bar section of the Theme Creator. These appear in the Theme Creator previews but not when actually seen on the phone (android version 5.0.2)2. Change the default color of the message sender icons (blue/teal in the below image)3. Change the color of the 'write new message' button (orange in the below image) 

    Hi, Theme creator 0.0.3 is still not compatible for complete Lollipop features, the next update of theme creator should fix this. I am waiting for this too... Regards,Shreyas.

  • Is there a way to programmatically change the scroll bar position?

    I am wanting to programmatically shift my front panel horizontally at a certain point during execution. I need a way of moving the scroll bar automatically. Does anyone have any suggestions?
    Thanks!

    Use the VI property FP.Origin to scroll the panel in the window.
    LabVIEW, C'est LabVIEW

  • Change color of the showDetailItem in panelTabbed in 11G

    Dear All,
    I have to change the color of showDetailItem in panelTabbed from gray to dark blue. But when I am trying to set the color from style the color of whole panel gets changed. I want to change the color of of the tab only.
    Please help its Urgent.
    Thanks in advance.

    I was having this same problem, and found another issue with the scroll bar coloring. The ScrollBar.thumb UI property cannot use a color that has a reduced alpha value.
    I wanted the JList hightlight and JScrollBar thumb to be a lighter version of the background color, but I found that the color.brighter() method returns a color that does not necessarily match the original color very well. For example, if you call it multiple times, the resulting color can be completely different. If I constructed a new color by lowing the alpha value of the original color (using the code below), the JList highlights were perfect, but the JScrollBar thumb had a large black "blob" in the middle of it.
    Color c = this.getBackground();  //"this" refers to a JPanel
    Color cb = new Color(c.getRed(),c.getGreen(),c.getBlue(),50);  //alpha value of 50The only way to get rid of the black "blob" on the JScrollBar thumb, is to use the following line of code where you set this property:
    UIManager.put("ScrollBar.thumb", new ColorUIResource(cb));Unfortunately, the ColorUIResource object does not appear to support altering the alpha value, so it strips it away, leaving you with the darker version of the color (completely negating your efforts to lighten the color).
    Does anyone know how to resolve this issue?

  • How can I get the scroll bars to be more visible/contrasting?

    The scroll bars are difficult for me to differentiate from their background. Can I change their colour or darkness to make them more visible?

    Firefox uses the native scroll bars by default.<br />
    You can try to select another window theme in your Linux distribution that has better scroll bar appearance or see if installing a Firefox theme helps.
    * https://support.mozilla.org/kb/Using+themes+with+Firefox
    *https://addons.mozilla.org/firefox/themes/

  • How do I keep the scroll bar from disappearing in the Mountain Lion update 10.8.5?

    When I got the prompt yesterday that there was an update for Mountain Lion I went ahead and downloaded it, and it is awful!  The scroll bar on the right side of the screen disappears too quickly now to use it easily, and is difficlut to get back, which adds extra steps (clicking on the down arrow while the cursor is in the scroll area then quickly clicking the arrow cursor while it is in the temporary scroll down bar.  Or else this is from a Firefox update I did NOT actually download, but indications when I started up my computer today are that it did download somehow by itself without my permission, as there was a notice that some of my Mozilla ad-ons might not be compatible with this version of Firefox.  I couldn't understand that since it should have been the same version of Firefox I used yesterday!  I know I didn't download the new Firefox because the pop-up box went away very quickly each time it came up so I never did click on it.  Does anyone know if the change in scrolling is a Firefox update or the OSX 10.8.5 update?  I HATE it and want it off, but don't know which one is the culprit nor how Firefox updated itself without my consent.  Aaaarrrggghhh!

    System Preferences > General > Show scroll bars:
    Make sure that "Always" is selected.
    Best.

  • I have not found the scroll bar I need yet... any help would be great!

    Anyone know where I can get a scroll bar that has two
    important capabilities:
    1). It can be re-skinned so that the dragging scroll bar
    stays at a fixed height. I re-skinned the ScrollPane component and
    the bar re-adjusts itself depending on the height of the entire
    scroll pane. I need the scrollbar NOT to change its dimensions.
    2). I can pass in something like the yPosition property to
    move the scroll bar and its contents to a certain location based on
    a variable. The yPosition works great using the ScrollPane but I
    cannot skin it like I would like.
    Any info would be great!
    Thanks,
    Joe

    The following may help: iOS: Device not recognized in iTunes for Windows

Maybe you are looking for

  • Need help in connecting

    I have raised a question in OTN yesterday "https://forums.oracle.com/forums/message.jspa?messageID=10798738#10798738" but stil i am not able to get the connection working.. I need some more clarifications in it. can some one suggest Regards Vivekk Ed

  • Dynamic Embedded Character Sub-Setting ???

    Hi All, I have instruction movies with 30 plus languages that I will be uploading to YouTube. I have Flash CS5 - AS3 - Player 10 req. I need to add only the font groupings (Latin, Cyrillic, Chinese, etc.) needed for the language specified and ideally

  • FF 13 New Tab Page

    I've set History and Cache to clear on exit. Can I still have 'Recently closed tabs' displayed on the New Tab Page? Thank you.

  • Can't set up "older" Airport express as booster for "new" Airport network?

    I upgraded to a new airport express (the 802.11n) and want to use that as my primary airport in my house. I have an older airport express that keeps giving me error setting up as a WDS when I reinstall the factory settings to set it up as a booster.

  • Can't seem to line up the widths of two elements in my CSS

    On this page pictopoetry.co.uk/category/poem/ You can see there are two elements I want to line up but they miss by a pixel The two rules for the CSS are below. So my question is how do I get those two elements to line up neatly? Thanks Martin div#co