• 周六. 7 月 13th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Scroll Bar dilema – Java From 5gw.org

King Wang

4 月 10, 2022

xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”en”>
Scroll Bar dilema – Java
/**
* Bytes CSS
* Style: ‘bytes.answers’; Style ID: 18
*/
@import url(“/clientscript/vbulletin_css/style-12635a82-00018.css”);

 
 
470,370 Members | 1,718 Online

Scroll Bar dilema

17

Hi,
I have a JTabbed pane and on tab 1, I have a panel that covers the size of the whole tab. At the bottom of the panel I have a scroll pane and on the pane a horizontal scroll bar.
The problem is that when I scroll, the screen doesnt change. What do I have to add to the adjustmentValueChanged() ?
Btw, Ive done this in NetBeans 6.0.1.
Thanks

Mar 27 ’08
#1

2 1229


(adsbygoogle = window.adsbygoogle || []).push({});

JosAH

11,448
Expert 8TB

Hi,
I have a JTabbed pane and on tab 1, I have a panel that covers the size of the whole tab. At the bottom of the panel I have a scroll pane and on the pane a horizontal scroll bar.
The problem is that when I scroll, the screen doesnt change. What do I have to add to the adjustmentValueChanged() ?
Btw, Ive done this in NetBeans 6.0.1.
Thanks

You shouldn’t add anything at all: just add the JComponent you want to scroll
to the JScrollPane and add the latter to a parent, say, JPanel. That JPanel again
should be an element of your JTabbedPane.

kind regards,

Jos

Mar 27 ’08
#2

Bubbs

17

thanks man, i’ll implement it.

Mar 27 ’08
#3


Message
 
Cancel Changes

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics


12 posts

views

Thread by Arlie Rahn |
last post: by


reply

views

Thread by ma740988 |
last post: by


4 posts

views

Thread by ojorus |
last post: by


3 posts

views

Thread by Devonish |
last post: by


6 posts

views

Thread by Mike Johnson |
last post: by


6 posts

views

Thread by =?Utf-8?B?U2hhcm9u?= |
last post: by


reply

views

Thread by perto1 |
last post: by

By using this site, you agree to our Privacy Policy and Terms of Use.


(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-90111-7’, ‘bytes.com’);
ga(‘send’, ‘pageview’);

loadBytesTracking()

//0){location.replace(‘https://bytes.com/showthread.php?p=’+cpostno);};} }

if(typeof window.orig_onload == “function”) window.orig_onload();
}

//]]>

发表回复