Posted By:
Renu_Sharma
Posted On:
Friday, February 18, 2005 06:44 AM
I wanna shift focus from JTextArea to new Component (JButton) using Tab-Key. I am Using following method but its not helping. Please suggest. JTextArea textArea = new JTextArea(5,25) { public boolean isManagingFocus() { return false; } }; textArea.setLineWrap(true); textArea.setWrapStyleWord(true); JScrollPane scrollPane = new JScrollPane(textArea); scrollPane.setBounds(0,40,365,80); SonderPanel.add(scrollPane); I m adding JTextArea to JScrollPane and then JscrollPane to JPanel .
More>>
I wanna shift focus from JTextArea to new Component (JButton) using Tab-Key. I am Using following method but its not helping. Please suggest.
JTextArea textArea = new JTextArea(5,25)
{
public boolean isManagingFocus()
{
return false;
}
};
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
JScrollPane scrollPane =
new JScrollPane(textArea);
scrollPane.setBounds(0,40,365,80);
SonderPanel.add(scrollPane);
I m adding JTextArea to JScrollPane and then JscrollPane to JPanel .
<<Less