Hi, Could anyone help me figure out how to change the way the static showInternalConfirmDialog method of JOptionPane lays out the textcomponents I pass to it? I'm using the confirm dialog as a sort of popup edit. I pass as my message an array of Objects (such as JLabel, JTextField,JLabel,JTextField,JLabel,JTextArea) as Label component pairs for whatever Im editing (in this case refrence, short desc, long desc).
This works for me and things are going fairly well exept that I have one component that has a maximim length (enforced through a custom document) of 3 characters and another with a max length of 100, and a 3rd with say 500. JOptionPane lays them all out to be the same width(I can control height) no matter what I do. I need to be able to make a textbox with a max of 3 characters shorter than a textbox with a max of 100 characters. I tried using setSize and setPrefferedSize on the component but apparently there's something that resets it afterwords. Thanks for any help you may be able to give.
Kris McCuller
Programmer Portiva Corp.
kmcculler@portiva.com
This works for me and things are going fairly well exept that I have one component that has a maximim length (enforced through a custom document) of 3 characters and another with a max length of 100, and a 3rd with say 500. JOptionPane lays them all out to be the same width(I can control height) no matter what I do. I need to be able to make a textbox with a max of 3 characters shorter than a textbox with a max of 100 characters. I tried using setSize and setPrefferedSize on the component but apparently there's something that resets it afterwords. Thanks for any help you may be able to give.
Kris McCuller
Programmer Portiva Corp.
kmcculler@portiva.com