gui-editor

How do I work with the Card Layout in the NetBeans GUI builder?

折月煮酒 提交于 2019-12-22 05:25:29
问题 Does anyone know how to work with the Card Layout in the NetBeans GUI builder tool? I want to show panels as per the JRadioButton selection, so I want to lay this out using the Card Layout. 回答1: Here is a very simple tutorial that might start you off in the right direction. I hope it is helpful. 回答2: The Sun tutorial seems a good place to start to learn about Card Layouts. Concerning NetBeans per se , simply assign the card layout to the component you wish to assign to (example a JPanel),

Using the NetBeans GUI editor, how can I create a JTextField or JFormattedText field that must be validated against a regular expression?

佐手、 提交于 2019-12-08 11:21:02
问题 I have a regular expression ( \d{4}\w{3}(0[1-9]|[12][0-9]|3[01])([01][0-9]|2[0-3])([0-5][0-9]){2} ) that I need to validate the input of a text field against when the user clicks the OK button or moves the cursor to another field. That I know how to do, writing the code. However, I'm interested in if it's possible to have the NetBeans GUI editor do some of the work for me, especially since I'm moving away from Eclipse and towards NetBeans as my IDE of choice, and I would like to take full

How to bring an image inside a GUI? Its possible in BashScript or Let's learn a new language?

醉酒当歌 提交于 2019-12-08 10:46:43
问题 I am developing my first pretty application in Bashscript, hmm... So.. I am starting some kind of GUI for it, with zenity on this first try. But I want to bring some visual art inside the GUI, with no function at all, just some visual art. I want the final application to be cross-os executable. How to just show an image inside a GUI box? (Maybe with just a OK button, or nothing, just show the image for some time). Any "easy" solution for this? In BashScript or whatever? Any solution,