Option « Dialog « Java Swing Q&A





1. web link in option dialog    coderanch.com

One way to do it (and it's how I did this in both of my apps) is to use public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType) throws HeadlessException and pass in a custom panel as the message. In the panel, you layout your components and message like you want them and add a button that says something ...

2. Remove Option From JDialog    forums.oracle.com

Hey, I am using JDialog's to give the user a choice for something. The problem is, when one user selects a choice, I want to remove it from the options. Is there anyway to remove an option without having to reconstruct the array because all the indices would have to be pushed down and it would confuse everything. I tried setting ...