Skip to content
Snippets Groups Projects
Select Git revision
  • 083520940499ceec8d1cae01b0452728e6fff20c
  • master default protected
  • release/1.1.4
  • release/1.1.3
  • release/1.1.1
  • 1.4.2
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.1
  • 1.1.0
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • v1.0.5
  • 1.0.5
21 results

SpecAnalyser.java

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    DoubleInputField.java 468 B
    package de.hhu.ba.yoshikoWrapper.gui;
    
    import javax.swing.JFormattedTextField;
    
    /**
     * Provides a more strict input field that only accepts double
     */
    @SuppressWarnings("serial")
    public class DoubleInputField extends JFormattedTextField{
    	
    	public DoubleInputField(double minValue,double maxValue) {
    		super(FormatHelper.getDoubleFormatter(minValue,maxValue));
    		this.setColumns(8);
    	}
    
    	public double getValueAsDouble() {
    		return Double.parseDouble(getText());
    	}
    }