Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 08:58 PM
Member
 
Join Date: Nov 2007
Posts: 6
SteM is on a distinguished road
Scroll thumb on the ScrollPanel
Hi all,
i need to change the default scroll thumb on a ScrollPanel with a custom bitmap.
How can i do it ??

Thanks

Last edited by SteM : 11-21-2007 at 11:53 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-26-2007, 01:05 PM
Member
 
Join Date: Nov 2007
Posts: 6
SteM is on a distinguished road
Well, I wrote a class extending the standard JScrollPane in which I forced a new version of the JScrollBar; in the paint function I put a scaled bitmap.
Now my problem is:
which is the size & position of the up/down-arrow buttons ???

Thanks
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-05-2007, 12:34 PM
Member
 
Join Date: Nov 2007
Posts: 6
SteM is on a distinguished road
Hi all,
in the same way i drawn the thumb on the scrollbar (paint() function of a custom scrollbar instance) i drawn the arrow buttons with custom bitmaps.
The problem is that when the application starts i see the new bitmaps but when i press them i see the default gray buttons !!!!
How can i solve?
How can i access to these buttons owned by the scrollbar?

Thanks
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-05-2007, 08:35 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,266
hardwired is on a distinguished road
You may have to write some plaf code. I would start with the BasicScrollBarUI class and look for the paintThumb method.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
code hint scroll bar ? tryit Eclipse 3 04-28-2008 09:07 AM
Jtextarea and scroll ziniestro AWT / Swing 2 06-01-2007 05:59 PM


All times are GMT +3. The time now is 03:14 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org