Image applet with NetBeans IDE
From: Luke (lukeita_at_gawab.com)
Date: 11/12/04
- Next message: Peter Kirk: "Removing duplicate entries form two String arrays?"
- Previous message: _merlinO_: "Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'"
- Next in thread: Andrew Thompson: "Re: Image applet with NetBeans IDE"
- Reply: Andrew Thompson: "Re: Image applet with NetBeans IDE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Nov 2004 13:42:57 GMT
Hello!
I'm a student and my teacher, for a DSP course, asked us to write an
applet to do morphological manipulation on images. I'm a totally
newbie of Java but to gain a good mark I'm going to learn it :-)
So my first problem is to create an applet with two images (the
original and the modified one) and some controls to change filter
parameters. Original images (b/w or grayscale) should be selected by
the user on his harddisk and maybe he could save the modified image
(and filter parameters...).
My first goal is to create an applet which opens and show images of
different sizes. These are the steps I did:
- Open NetBeans IDE 3.6
- Project Manager - New project (called "morph")
- File - New - Local directory
- File - New - Java GUI Forms - AWT Forms - Applet form with
"morphapplet" name
Now I've a form editor like Delphi (the IDE I know best)...
After playing with the form properties (background color...) and
changing the layout to absolute layout I added some objects (an "Hello
World!" label and a button)
- Build - Compile
- Build - Execute
The applet shows... wow! :-)
Now in the applet folder I see an HTML page... wow I can run the
applet... double click and the applet in my new FireFox 1.0 doesn't
show... a red cross...
On java console I can read:
java.lang.NoClassDefFoundError:
org/netbeans/lib/awtextra/AbsoluteLayout
at morphapplet.initComponents(morphapplet.java:27)
at morphapplet.init(morphapplet.java:15)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NoClassDefFoundError:
org/netbeans/lib/awtextra/AbsoluteLayout
at morphapplet.initComponents(morphapplet.java:27)
at morphapplet.init(morphapplet.java:15)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Where am I wrong?
Second question: where can I find "image" objects? In Delphi (for sure
here it's different! note that I'm a newbie... :-)) I've an image
object I can add to a form... in java how can I manage images?
Thanks!
- Next message: Peter Kirk: "Removing duplicate entries form two String arrays?"
- Previous message: _merlinO_: "Cannot load JDBC driver class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource'"
- Next in thread: Andrew Thompson: "Re: Image applet with NetBeans IDE"
- Reply: Andrew Thompson: "Re: Image applet with NetBeans IDE"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]