Class MiscPanel


  • public class MiscPanel
    extends Object
    • Method Detail

      • createPanel

        public JPanel createPanel()
      • createTextField

        public static JTextField createTextField​(com.jgoodies.binding.value.ValueModel valueModel)
        Creates and returns a text field with the content bound to the given ValueModel. Text changes are committed to the model on focus lost.
        Parameters:
        valueModel - the model that provides the value
        Returns:
        a text field that is bound to the given value model
        Throws:
        NullPointerException - if the valueModel is null
        See Also:
        createTextField(ValueModel, boolean)
      • createTextField

        public static JTextField createTextField​(com.jgoodies.binding.value.ValueModel valueModel,
                                                 boolean commitOnFocusLost)
        Creates and returns a text field with the content bound to the given ValueModel. Text changes can be committed to the model on focus lost or on every character typed.
        Parameters:
        valueModel - the model that provides the text value
        commitOnFocusLost - true to commit text changes on focus lost, false to commit text changes on every character typed
        Returns:
        a text field that is bound to the given value model
        Throws:
        NullPointerException - if the valueModel is null
        See Also:
        createTextField(ValueModel)