0

So in Word toolbox there is an component which is similar to a JScrollPane but it just has two buttons where you can click to reach components which are not shown. Are they build their self or is there something similar as Component?

Image:

enter image description here

Cindy Meister
  • 25,071
  • 21
  • 34
  • 43
KaNaDa
  • 141
  • 12
  • I do not believe such an object exists by default, but you could probably build it by making a stack pane with some buttons on the side. When the button's are clicked, you can refer to the stack pane's xPosition to move it. There's certainly more to it than that, but it's possible. Would probably be a bit of work. – geekTechnique Jun 01 '19 at 20:24
  • 1
    Thank you for your answer @geekTechnique. Just wanted to know if there is one before I build it myself. My idea would have been to create a jscrollpane without scrollbars and make buttons which scrolls to a specific value. But I will haave a look at the stackpanes. – KaNaDa Jun 02 '19 at 11:57
  • 1
    Check out: https://stackoverflow.com/questions/39081038/jtoolbar-show-arrow-if-too-many-buttons-were-added/39081973#39081973 for one possible solution. – camickr Jun 02 '19 at 17:52
  • @camickr Thank your very much. That is exactly what I was looking for :D – KaNaDa Jun 02 '19 at 19:06

0 Answers0