Hi Stefan,
Stefan Lintner schrieb:
> Hi,
>
> I would like to crate a JSplitPane. I read the Sun Tutorial at
> http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html .
> Now I am using the code of the first expample, but it doesn't work. Java
> 1.5 shows 8 errors... "cannot find symbol":
The codes that are embedded in the tutorial's text are (mostly) snippets
and not complete examples.
You'll find the complete source code in the example index (there's a
link to the example index near every example ;-) ).
The file you'll need is the one here:
http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/SplitPa
neDemo.java
Bye
Michael
Stefan Lintner - 11 May 2005 21:08 GMT
Michael Rauscher schrieb:
> The file you'll need is the one here:
> http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/SplitPa
neDemo.java
Thats a lot of code... isn't it possible to implement a JSplitPane in an
easier way? :)
Michael Rauscher - 12 May 2005 00:56 GMT
Stefan Lintner schrieb:
> Michael Rauscher schrieb:
>
[quoted text clipped - 3 lines]
> Thats a lot of code... isn't it possible to implement a JSplitPane in an
> easier way? :)
Sure:
JSplitPane p = new JSplitPane();
Then set the left (right) component using p.setLeftComponent and
p.setRightComponent respectively.
Bye
Michael