Solved! Go to Solution.
Hi,
I have created a add-in for Arcmap that contains a DockableWindow with a panel and a JButton and JTextfield. When I load the DockableWindow my button and textfield are visible and the button behaves as correctly and can be clicked .The textfield is un-useable it will not allow adding text etc. I have ensured that it is editable via the code and I have even tried to force the focus via the code but I'm still unable to use it. I have also tried using a JTextArea with the same result.
Here is a sample of the code from the dockablewindow createUI method
@Override
public Component createUI() {
panel = new JPanel();
keywordTF = new JTextField(10);
keywordTF.setText("something");
panel.setLayout(new BorderLayout());
panel.add(keywordTF,BorderLayout.NORTH);
return panel;
}
Any help with this would be great.
Thanks Shaun
As far as I can tell it is still an issue in the 10.4 prerelease Java API.