jform

JFrame Combo box Event Key… HELP

▼魔方 西西 提交于 2019-12-25 14:48:48
问题 I am having a problem on what to use and what to code if I want my combo box be generated once the user type a key... like: once i pressed letter "A" from keyboard inside the combo box, all items starting from letter "A" will show up from the drop down list. How can I code this when: items from the combo box came from my database and it's default value is the first item stored on my database. Actually I don't have any idea how to code it. All I have was a template from JFrame. Items from

JDialog blocks parent window on Windows

对着背影说爱祢 提交于 2019-12-11 22:52:53
问题 I have some problem with JDialog. I have Swing GUI created in NetBeans. GUI contains main frame with buttons, text fields, etc. When I click 'Next' button then JDialog (created aslo in NetBeans, Other Components section) is showing. Below are custom properties for this JDialog: modal = true; resizable = false; default close op = DISPOSE The problem is that, on Windows XP (probably 7 too), when JDialog occurs then I can't minimalize application by minimalize parent form. On Ubuntu it is

Joomla 3.4 text form field custom validation not working

百般思念 提交于 2019-12-08 06:19:11
问题 I'm try to add my server-side validation for text form field in Joomla 3.4. When I submit form with any empty field message that field is empty appear, but when it not empty submit is working and ignoring email and my own validation. Also email validation work only when I set type="email" but not for type="text". This is what I have: \components\com_my\models\rules\myrule.xml <?php defined('_JEXEC') or die; jimport('joomla.form.formrule'); class JFormRuleMyrule extends JFormRule { public