Note that you have to call the property code before a form loads.
Cheers Harjo
- Code: Select all
//JComponent.sizeVariant
//MEMO: valid options: regular, small, mini
//push buttons
elements.btn_regular.putClientProperty('JComponent.sizeVariant','regular')
elements.btn_small.putClientProperty('JComponent.sizeVariant','small')
elements.btn_mini.putClientProperty('JComponent.sizeVariant','mini')
//checkboxes
elements.check_regular.putClientProperty('JComponent.sizeVariant','regular')
elements.check_small.putClientProperty('JComponent.sizeVariant','small')
elements.check_mini.putClientProperty('JComponent.sizeVariant','mini')
//combobox
elements.combo_regular.putClientProperty('JComponent.sizeVariant','regular')
elements.combo_small.putClientProperty('JComponent.sizeVariant','small')
elements.combo_mini.putClientProperty('JComponent.sizeVariant','mini')
elements.combo_square.putClientProperty('JComboBox.isSquare',true)
//search
elements.fld_search.putClientProperty('JTextField.variant','search')
//circular progress
elements.progressBar.indeterminate = true
elements.progressBar.putClientProperty("JProgressBar.style", "circular")
//more buttons
elements.btn_square.putClientProperty('JButton.buttonType','square')
elements.btn_gradient.putClientProperty('JButton.buttonType','gradient')
elements.btn_bevel.putClientProperty('JButton.buttonType','bevel')
elements.btn_texture.putClientProperty('JButton.buttonType','textured')
elements.btn_roundrect.putClientProperty('JButton.buttonType','roundRect')
elements.btn_recessed.putClientProperty('JButton.buttonType','recessed')
elements.btn_help.putClientProperty('JButton.buttonType','help')