NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #378 (closed defect: fixed)

Opened 2011-03-17T12:40:20-05:00

Last modified 2011-05-26T16:06:23-05:00

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:
Blocking:

Description

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 2011-04-28T16:25:38-05:00 by curtis

  • Milestone set to imagej-2.0-alpha3

comment:2 Changed 2011-05-26T16:06:23-05:00 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.