Skip to main content
Jump to: navigation, search

Nebula Calculator

Revision as of 06:09, 19 March 2020 by (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Back to Nebula Main Page




A simple calculator, displayed as a whole widget or inside a combo.


This is very simple : you instantiate a Calculator or a CalculatorCombo, then you attach a ModifyListener in order to be informed when the value changed :

final Calculator calc = new Calculator(shell, SWT.NONE);

calc.addModifyListener(new ModifyListener() {

 public void modifyText(final ModifyEvent e) {
          System.out.println("New value is " + calc.getValue());

And voilà !


2 examples called and are located in the plugin org.eclipse.nebula.widgets.opal.calculator.snippets.

These examples are also available here :

Back to the top