Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to add a ruler to a diagramView without losing the scrollbars? (Read 4060 times)
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
How to add a ruler to a diagramView without losing the scrollbars?
Feb 29th, 2012 at 1:59pm
Print Post  
When I tried this...

Ruler ruler = new Ruler();
scrollPane.setColumnHeaderView(ruler);
ruler.setDiagramView(diagramView);

... the scrollbars disappread.

What's the correct way to add the ruler component to a diagramview?

Regards
Jan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to add a ruler to a diagramView without losing the scrollbars?
Reply #1 - Feb 29th, 2012 at 3:31pm
Print Post  
The Ruler control already contains an internal JScrollPane, I don't think you should add it to an outer one. Try adding the ruler to a plain JPanel instead:

Code
Select All
Ruler ruler = new Ruler();
ruler.setDiagramView(diagramView);

JPanel mainPanel=new JPanel(new BorderLayout());
mainPanel.add(ruler, BorderLayout.CENTER); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Jan Meyer
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 23
Joined: Feb 26th, 2012
Re: How to add a ruler to a diagramView without losing the scrollbars?
Reply #2 - Mar 1st, 2012 at 7:13am
Print Post  
Thanx a lot! I'am trying to get used to this wonderful product. Maybe it would be useful to enhance to samples section with the next release. I suppose there still other hidden features.

By the way - where in this forum should I place my questions about the licencing.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to add a ruler to a diagramView without losing the scrollbars?
Reply #3 - Mar 1st, 2012 at 7:24am
Print Post  
Hi,

We don't have a dedicated licensing section on the forum. You could post any questions here, or email to sales@mindfusion.eu if you need to discuss prices, discounts, etc.

Regards,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint