Ticket #378 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Fix buggy Number parameter widgets

Reported by: curtis Owned by: curtis
Priority: minor Milestone: imagej-2.0-alpha3
Component: Plugin Framework Version:
Severity: serious Keywords:
Cc: bene.schmid@… Blocked By:


The plugin framework currently supports multiple "widget styles" which are currently used to provide a hint to the UI regarding which widget to use. We have preliminary Swing implementations for JSpinner, JSlider and JScrollbar + JTextField, but none of them work particularly well. We need to fix the issues with each, so that all are viable choices.

Change History

comment:1 Changed 9 years ago by curtis

  • Milestone set to imagej-2.0-alpha3

comment:2 Changed 9 years ago by curtis

  • Status changed from new to closed
  • Resolution set to fixed

In 63fe2c383daa27575ee2fef46f7db10a901e4e9f the Swing number widget code was simplified and improved. Now a spinner is always used, but can have an optional scroll bar or slider next to it, for convenience.

The ParameterTester plugin demonstrates the usage. Note that currently, sliders and scroll bars only work well with int parameters, with defined minimum and maximum values.

Note: See TracTickets for help on using tickets.