Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Nebula Calculator

< 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