I’m using the ‘Visual Editor’ to ‘paint’ my Swing GUI. Can I dynamically build the contents of a sub-panel with VE or do I have to use a predefined sub-class of JPanel (and build that with VE)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can dynamically build the contents of a sub panel – say based on a file or soemthing – the visual editor is not going to stop you.
Generally, VE is intelligent enough to see that you are dynamically build the panel and show the contents (say contents of a file in a JList)
Sometimes, VE fails to render the items because ‘The control is too complex’ – but this does not happen frequently.