• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 454
  • Last Modified:

JScrollPane Manipulation

I am writing a card game.  I do all the background graphics in photoshop and I want the java components to match my custom graphics.  Specifically the JScrollPane.  What kind of manipulation can I do on this.   I want the JViewport to be invisible for one.  I don't want that "3D" look.  I also would like to customize the scroll bar.  I understand the latter probably would require my own class, but is the first possible?  Making an invisible viewport?
0
turtletimer
Asked:
turtletimer
  • 2
1 Solution
 
objectsCommented:
Thats certainly possible, to change the appearance of any component requires you to write a custom UI.

To get rid of the 3D look you just need to change/rmove the border on the viewport/scrollpane using the setBorder() method.
0
 
objectsCommented:
This may help for creating your own look:

http://java.sun.com/products/jfc/tsc/articles/sce/
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now