Problem with NotePad Application
Hi All,
I have one JTextArea , I split that using the JSplitPane into two
parts in which i am getting the Divider .Here I can drag the Divider
to any where in the TextArea.Here my problem is I need to restrict that
dragging of Divider ? How can i achieve this ..........below snippet is
my code
<code> JScrollPane scroller = new JScrollPane(
EspeciesTmpespecienotas_especialesTxa);
final JList list = new JList();
list.setLayoutOrientation(JList.VERTICAL);
list.setEnabled(false);
JSplitPane splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
list, scroller);
splitpane.setDividerLocation(30);
splitpane.setDividerSize(2);
final String[] elnt = { "1" };
list.setListData(elnt);
Object[] elements = this.getListData(list);
splitpane.setOneTouchExpandable(false);
EspeciesTmpespecienotas_especialesTxa.setEditable(false);
EspeciesTmpespecienotas_especialesTxa.setLineWrap(true);</code>
Thanks in advance

