В том же JPanel
у меня есть два JEditorPane
, как я могу выбрать текст из двух JEditorPane
одновременно
JPanel panel=new JPanel(new BorderLayout());
JEditorPane jeditorpane1=new JEditorPane();
// Set content of jeditorpane1
JEditorPane jeditorpane2=new JEditorPane();
// Set content of jeditorpane2
panel.add(jeditorpane1,BorderLayout.WEST);
panel.add(jeditorpane2,BorderLayout.EAST);
Я использую мышь для выбора текста из jeditorpane!