JScrollBar help

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vutaikt
Posts: 1
Joined: Sun Nov 16, 2014 8:44 am
antibot: No, of course not.
Location: Deutschland
Contact:

JScrollBar help

Post by vutaikt » Sun Nov 16, 2014 9:34 am

hi expert

i had gantt chartt using jfreechart-1.0.19.

i had ah problem with HORIZONTAL scroll bar. when vertical scroll bar moving means data are get moved.
but horizontal is the problem. how can i do it.

this is working
scroller = new JScrollBar(JScrollBar.VERTICAL, 0, 10, 0, cnt);
scroller.getModel().addChangeListener(this);
scroller.setBorder(BorderFactory.createEmptyBorder(50, 2, 30, 2));
scroller.setBackground(new Color(231, 231, 214));
add(scroller, "East");


this is not working

scroller1 = new JScrollBar(JScrollBar.HORIZONTAL, 0, 100000000,0, 1000000000);
add(scroller1, "South");

thank&&REgards
vutaikt

egeszege
Posts: 2
Joined: Sun Nov 16, 2014 8:39 pm
antibot: No, of course not.

Re: JScrollBar help

Post by egeszege » Sun Nov 16, 2014 8:40 pm

Have same problem someone can help?

Locked