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

[1053 byte] By [vasmhi_1981a] at [2007-11-27 4:57:18]
# 1
Yes I got it ......I have added the JSplitPane to JScrollPane ...from that i got what i want.
vasmhi_1981a at 2007-7-12 10:12:43 > top of Java-index,Desktop,Core GUI APIs...