Mercurial Hosting > junotu
changeset 102:a313eaea437a
TabBoard/TabCalendarBoard: Fixed-up scrollbars starting position and step
author | Fox |
---|---|
date | Wed, 05 Apr 2023 22:58:38 +0200 |
parents | 50af17182cd8 |
children | 7a3fd865654a |
files | src/junotu/TabBoard.java src/junotu/TabCalendarBoard.java |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/junotu/TabBoard.java Wed Apr 05 22:07:28 2023 +0200 +++ b/src/junotu/TabBoard.java Wed Apr 05 22:58:38 2023 +0200 @@ -457,6 +457,9 @@ this.add( scroll, BorderLayout.CENTER ); this.add( bottom, BorderLayout.SOUTH ); + scroll.getHorizontalScrollBar().setUnitIncrement(COLUMN_WIDTH); + scroll.getVerticalScrollBar().setUnitIncrement(64); /* TODO: FIXME: Magic number. */ + back.addActionListener(this); addColumn.addActionListener(this); editAsCard.addActionListener(this);
--- a/src/junotu/TabCalendarBoard.java Wed Apr 05 22:07:28 2023 +0200 +++ b/src/junotu/TabCalendarBoard.java Wed Apr 05 22:58:38 2023 +0200 @@ -487,6 +487,9 @@ dateRangeBeginEditor.getModel().setCalendarField( Calendar.DAY_OF_MONTH ); dateRangeEndEditor.getModel().setCalendarField( Calendar.DAY_OF_MONTH ); + scroll.getHorizontalScrollBar().setUnitIncrement(COLUMN_WIDTH); + scroll.getVerticalScrollBar().setUnitIncrement(64); /* TODO: FIXME: Magic number. */ + dateRangeBegin.addChangeListener(this); dateRangeEnd.addChangeListener(this); @@ -530,6 +533,7 @@ menu_onlyFilled.setSelected(optionOnlyFilledColumns); populateColumns(); + scroll.getHorizontalScrollBar().setValue(0); }