Styling ScrollBar, three lines on scroller and pressed arrowbutton

Hi,
I've been trying to style some swing components and I am currently working on a scroller. This is my code so far:
ArrayList<Object> gradients = new ArrayList<Object>(5);
gradients.add(0.28f);
gradients.add(0.00f);
gradients.add(new Color(0x362e27));
gradients.add(new Color(0x362e27));
gradients.add(new Color(0x1f1a17));
UIManager.put( "ScrollBar.background", new Color(38,29,21) );
UIManager.put( "ScrollBar.darkShadow", new Color(8,4,1) );     
UIManager.put( "ScrollBar.highlight", new Color(80,62,49) );
UIManager.put( "ScrollBar.shadow", new Color(38,29,21) );
UIManager.put( "ScrollBar.thumbShadow", new Color(38,29,21) );
UIManager.put( "ScrollBar.thumbHighlight", new Color(68,58,40) );
UIManager.put( "ScrollBar.gradient", gradients );
UIManager.put( "control", new Color(54,46,39) );And it looks like this:
[http://www.postimage.org/image.php?v=gxzhHBS|http://www.postimage.org/image.php?v=gxzhHBS]
I want to change the color of the three bars on the scrollbar as well as the backgroundcolor of the pressed arrow. I have seen the latter problem somewhere but then the solution was to create a custom scrollbar. It would be convenient if I could skip that.
Any ideas? First post so please lecture me!

I'll give this another try. bump.

Similar Messages

  • My kid just got an iPod 5th gen (today from Santa) and it won't power up or charge. The only response is when I connect the USB and press the power button or front button the Battery appears with red line and lightning symbol. No other response at all.

    Sorry about the long title.....its my first post.
    My kid just got a brand new iPod 5th generation (today from Santa) and it won't power up or charge. The only response is when I connect the USB and press the power button or front button the Battery appears with red line on left and lightning symbol below. There is no other response at all no matter what I do, including holding both buttons down for extended period.  My other kid got one and it works perfectly.....I have interchanged usb cables ports etc. but still no response....I would really appreciate any help.  

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -  Make an appointment at the Genius Bar of an Apple store since you have a hardware problem with the iPod. This is because as you said the same cable works with another iPod.
    Apple Retail Store - Genius Bar

  • I can only see 3 rows of images at any time on google images. The next three lines are grey boxes and the rest of the images after those are completely blank...HELP!

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/890848]]</blockquote>
    When in Google images. I ca only see the first three lines. The next three rows are grey boxes. After that the rest of the images do not display at all....Help!

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    See also:
    *http://kb.mozillazine.org/Images_or_animations_do_not_load

  • I want to eliminate an autofill choice that pops up when I sign into yahoo using the Firefox browser. I tried yahoo help which said hover over the unwanted line and press delete, but that did not work. I am using a Mac if that makes a difference.

    Question
    I want to eliminate an autofill choice that pops up when I sign into yahoo using the Firefox browser. I tried yahoo help which said hover over the unwanted line and press delete, but that did not work. Do you know how I can get rid of this autofill? I am using a Mac if that makes a difference. Thanks.

    Use Shift+Delete on Mac.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.

  • When I come from outside and press the home button to turn my iPod on, there is white, light blue and red lines but it is transparent enough that I can see my background, time, etc. It hasn't been water damaged, so that cant be the problem.

    When I come from outside and press the home button to turn my iPod on, there is white, light blue and red lines but it is transparent enough that I can see my background, time, etc. It hasn't been water damaged, so that can't be the problem. I was thinking maybe it is just because of the cold but, I don't like having my iPod doing that whenever I come back from the cold. However, I was in class too and this problem happened but it was inside! So I am very worried, I have dropped my ipod a few times but it hasn't fallen that hard to effect it.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                      

  • On imac running10.6 I reset factory settings and start up only got logo andspinning wheel. I've tried safe mode w no luck. Tried recovery mode. Just tried shift command and v and the last three lines say dubious permission on file skipping. It stops ther.

    On imac running10.6 I reset factory settings and start up only got logo andspinning wheel. I've tried safe mode w no luck. Tried recovery mode. Just tried shift command and v and the last three lines say dubious permission on file skipping. It stops there.

    I also started in single user mode. Typed in the sbin fsck fy command. Said appears to be ok but also files were modified. When I type reboot it goes back to logo and spinning wheel

  • HELP please! :) My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same!

    My ipod gets like lock, everything appear with lines, I already restore like three times the ipod and still happens the same, what can I do? and on some app store they just told me that restore, but well I do and is the same! What can I do?? and is new, I buy it on march!
    This is a image of the ipod already restore, and everytime looks like that!

    If restoring the iPod to factory defaults/new iPod dow not solve the problem you likely have a hardware problem.  In that case either make an appointment at the Genius Bar of an Apple store or call AppleCare.  If defective, Apple will replace your iPod at no cost.

  • I downloaded a app and when i started it up it froze and now has three lines going across the screen. Please Help

    My ipod touch isnt working. When I downloaded an app it froze up the screen and now it has three lines going across the screen please help me.

    Restore.

  • I am having problems with video and high content webpages freezing.  I am also getting pixel lines across my webpages.  Maybe two or three lines.  I was running os 10.4 but I just up graded to 10.6 the other day.  I have 2GB of RAM.

    I am having problems with video and high content webpages freezing.  I am also getting pixel lines across my webpages.  Maybe two or three lines.  I was running os 10.4 but I just up graded to 10.6 the other day.  I have 2GB of RAM.

    Exactlly which model iMac do you have?
    see > How to identify iMac models
    Unfortunately that is not all that uncommon for the Early Intel iMac's given there age and the fact that the air intakes are probably choked with dust. Then add the extra heat caused by running a more intense OS X which is causing it to run a little warmer than normal and putting extra stress on the graphic and display components.
    My 6½ year old 17" Early 2006 Core Duo w/2GB of RAM is also running 10.6.8 and is also starting to get a single line that (knock on wood) goes away after a few minutes, while many others started getting permanent ones after 2 or 3 years. One thing that I think has helped, is that about every 3 or 4 months I shutdown and vigorously vacuum out the bottom grill work and small vent under the stand to keep it running cool.
    On that note: unfortunately I can only suggest that you clean your intake vents and hope that no permanent or irreversible damage has been done.

  • Since last update anything on the first three lines of a web page if it has a a button to click on to go to another page does not work. use Google Crome for fo

    Loging onto my bank I go to the barclays pege there on the top line is "log in" it used to work when I click on it but has stoped, any button on the first three lines of a web page does not work.
    I now use Google crome but would like to stay with Firefox if this coruption can be sorted.
    Rod

    Please reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with the left mouse key.
    OR
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    See if this helps solve the issues you had and please report back to us!

  • Removing repeated lines when scrolling?

    Recently Safari (v. 5.1) has changed its scrolling behavior on my MacBook Pro (OS 10.6.8).  In the past when I used the scroll bar to move up or down it advanced exactly one page, but recently it has started repeating two or three lines of text.  This is really confusing because I have to find my place again in the middle of whatever I am reading.  (It's like a book with the last two lines of the previous page printed a second time at the top of the next page.)  What do I need to do to eliminate this repeated text and return to scolling exactly one page?

    This rolling in the scrolling so to speak, happens on both my MBP and iMac with 256 video cards. I feel the driver and all are not mature and will be improved over time. Also, several posters that have switched to dual boot with bootcamp have jacked their video cards in XP because Apple under-clocks theirs.
    I agree that a call to support is in order, but just to request the ability to up the frequency, and get ATI to improve their OS X driver.
    FWIW,
    Michael

  • Both my iPad and iPhone have ios8 On either device in Calendars edit shared with add person when I enter an email address and press add nothing happens - just goes back to edit screen and what I have entered has gone. No error message or any clue

    Both my iPad and iPhone have ios8
    On either device in Calendars> edit >shared with> add person when I enter an email address and press add nothing happens - just goes back to edit screen and what I have entered has gone. No error message or any clue about why I cant share my calendar. Please help.

    UDPATE:
    Spoke with Express lane, and issue was escalated.  Kudos to the support guys that handled this one (Brian and Yi).  Went through everything in detail and took all the crash dumps off the iphones and ipads to send to engineering.
    After backing up the contacts, the recommendation was to delete all contacts in  iCloud.  Doing that caused my iCloud to crash (in the browser), so more crash dumps were sent to apple.
    Eventually got all contacts deleted, then did a resync.  Looks like IOS devices are coming back to life and syncing again.
    Also, Outlook iCloud connector has just been updated to ver 1.0.1 so i installed that on their recommendation.
    BOTTOM LINE workaround:
    1. Backup contacts
    2. Delete contacts in iCloud
    3. Delete accounts on IOS devices
    4. Recreate accounts on IOS devices.
    Hoping a real root cause can be found and real fix implemented.  This has caused me to doubt the stability of iCloud, so i will procees with caution.

  • I am trying to display three lines of text but blank lines are being inserted between them.

    I have a section on the right side of my homepage for upcoming events.  It was displaying fine until I changed the data and now the three lines are displaying blank lines between each one. 
    Here is the code.
    <h2 class="meeting"> </h2>
          <h2 class="meeting"><a href="http://www.astm.org/MEETINGS/filtrexx40.cgi?+-P+TERM+D02+searchresults.frm">ASTM D02 2014</a></h2>
       <img class="news-image" src="images/news/Sheraton San Diego.jpg" width="100" height="61" /> 
       <p class="news-text">December 7-11, 2014</p>
          <p>Sheraton San Diego Hotel and Marina</p>
          <p>San Diego, CA</p>
      </div>
    ASTM D02 2014
    December 7-11, 2014
    Sheraton San Diego Hotel and Marina
    San Diego, CA
    The picture is displaying to the right but I want to get rid of the blank lines between the text. I am using Dreamweaver CS5 Version 11.0 Please help.

    Sorry I inserted the wrong code. 
    <div id="rightsideUpcomingevents">
       <h2 class="upcoming">Upcoming Events</h2>
          <h2 class="meeting"><a href="http://www.gulfcoastconference.com">Gulf Coast Conference</a></h2>
       <img class="news-image" src="images/news/hotel_moody.jpg" width="100" height="61" /> 
       <p class="news-text">October 14-15, 2014</p>
          <p class="news-text">Moody Gardens Convention Center</p>
          <p class="news-text">Galveston, TX</p>
          <h2 class="meeting"> </h2>
          <h2 class="meeting"><a href="http://www.astm.org/MEETINGS/filtrexx40.cgi?+-P+TERM+D02+searchresults.frm">ASTM D02 2014</a></h2>
       <img class="news-image" src="images/news/Sheraton San Diego.jpg" width="100" height="61" /> 
       <p class="news-text">December 7-11, 2014</p>
          <p class="news-text">Sheraton San Diego Hotel and Marina</p>
          <p class="news-text">San Diego, CA</p>
      </div>
    .rightside-text
    {padding:0px; color:#172B61;}
    .news-image {float:right; margin-right:10px; }
    .news-text { padding:0px; color:#000;}

  • How can I animate my sprite to run on scroll and stop when scrolling stops?

    I appreciate everyones help so far.
    I want my illustration of a man to "walk" through my composition as the user scrolls through it.
    I have a sprite created and have made it loop. What sort of code do I need to write to get it to move only on scroll and stop off scroll?
    Thank you guys so much!
    Johnathan

    Hi,
    Thank you for your post.
    Please check the following tutorials for scrolling effects in edge animate.
    http://www.heathrowe.com/adobe-edge-animate-simple-scrollbar-symbols/
    http://www.adobe.com/inspire/2014/01/parallax-edge-animate.html
    Regards,
    Devendra

  • I bought a brand new ipod touch 5th gen, updated the software and now iTunes says "to allow access, please respond on your ipod touch" however the ipod has a black screen and pressing the buttons does nothing. how do i fix this?

    As the title says, this is a brand new iPod touch bought from a store, I plugged it in a commenced the "setting up" process through iTunes on may iMac. It got to the stage where it said allow this computer to access the device (or something along those lines), i clicked yes, and then a message came up "to allow access, please respond on your iPod touch. however the ipod screen is black, and pressing the buttons doesn't work. How can i fix this? or do I need to return it?

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

Maybe you are looking for

  • Screen losing brightness / spontaneous shutdowns

    2 Problems: 1.) My iMac G3 400 / slot-loader / OS 9.1 has had recent startup problems; i.e., occasionally shuts down spontaneously shortly after initial startup, or sometimes after several minutes, or longer use. 2.) The monitor has become darker. I

  • How to deploy MS Sql Server 2005 and 2008 jdbc driver

    Hi SAP Guru's Can somebody tell me how to deploy the jdbc driver of MS SQL Server 2005 and 2008 on SDM. According to the SAP instruction we should have 3 files(mssqlserver.jar,msbase.jar,msutil.jar) but in 2005 driver file we only have 1 file i.e sql

  • Letters generated in bulk and attached to Accounts

    I am a business analsyt and I have just been assigned to the implementation of a Siebel 8 system on Oracle. (No previous Siebel experience) We are trying to find a way to send letters out to accounts. They need to: 1. Include fields from Siebel and s

  • Can I use JMS instead of  multithreaded approach

    Hi, I am having a typical problem where the XML data coming through sockets using TCP/IP needs to be read and perform some action. The code I have uses two classes to do this, each of them extending the Thread class, and invokes the individual run()

  • 3D Doesn't work after changing the LCD Screen

    Hi, I had a problem with my Toshiba Qosmio F755-3D350 the LCD screen broke and I have to replace it with a new screen. The new screen is the same model : B156HB01 V.0 from Au electronics, that the original screen on my laptop had. everything works fi