This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: CustomCodePanel - Scroll Bar?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 04, 2009
01:28 PM
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.
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.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 05, 2009
11:14 AM
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.
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.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)