cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
buogr01
Level 4

CustomCodePanel - Scroll Bar?

Hello All,
I am writing a CustomCodePanel Dialog using Swing in Eclipse utilizing the Visual Editor. I am following the instructions located at:
http://www.acresso.com/webdocuments/PDF/ia_create_cust_code_panel_eclipse.pdf

I am creating this dialog dynamically based on the number of entries located in a properties file. In the instructions they have me implementing JPanel and overriding that with CustomCodePanel later. This works fine, however the issue is when I need a scroll bar when too many objects are displayed. Is there a way for CustomCodePanel to display a scroll bar? Thanks for any help you can provide.
Labels (1)
0 Kudos
(1) Reply
buogr01
Level 4

As an FYI to anyone who may need this in the future. I believe I can accomplish what I need using a scrollPane. For example:

private ScrollPane scrollPane;
scrollPane = new ScrollPane( ScrollPane.SCROLLBARS_AS_NEEDED );

After creating the scrollPane I add all of my objects to the scrollPane and then add the scrollPane to my panel. I haven't yet perfected it, but it seems to be heading in the right direction.
0 Kudos