Hello!
I got a free evaluation copy of Borland's JBuilder9.
I also got a book about JAVA, and I am trying to type, compile and run some
examples from the book.
The following - very simple - source comes from my book, and I get the
errormessage that the applet isn't initialised.
Can someone please tell me how to get this to work?
Thanks, it is probably a very minor line that JBuilder9 needs, because the
book isn't about a specific JAVA compiler.
Here is my source:
----start----
package applet_test;
/**
* <p>Title: applet test</p>
* <p>Descriptio n: trying to get applets in html working</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author aljo
* @version 1.0
*/
import java.applet.*;
import java.awt.*;
public class Applet0 extends Applet
{
public void paint(Graphics g) {
g.drawString("E en bijzonder eenvoudige applet", 10, 20);
}
}
----end--- http://home.planet.nl/~aljo.in.pictures (About me, my relatives, hometown,
etc...) http://www.home.zonnet.nl/Amersfoort (About my hometown, lots of photos and
explanation. Ook in het Nederlands.) http://www.ranger49.tmfweb.nl (About the American Forces Network Europe.) 2 1993
I just tried pasting your example into Project Builder and got the same
result. Then I noticed that my Applet tag in the HTML file looked like:
<APPLET archive="Applet 0.jar" code="Applet0" width=300 height=150>
</APPLET>
Which means that it was looking in the base level for the applet, but it
wasn't there, so it wasn't initialized.
The reason for that was that you put the Applet0 class in the applet_test
package. So you need to change the code attribute to
code="applet_te st.Applet0"
That way it will look in your package for the applet and thus find it.
Good luck
in article bm**********@re ader10.wxs.nl, Aljo_ at al*******@hotma il.com
wrote on 10/11/03 1:09 PM: Hello!
I got a free evaluation copy of Borland's JBuilder9.
I also got a book about JAVA, and I am trying to type, compile and run some examples from the book.
The following - very simple - source comes from my book, and I get the errormessage that the applet isn't initialised.
Can someone please tell me how to get this to work?
Thanks, it is probably a very minor line that JBuilder9 needs, because the book isn't about a specific JAVA compiler.
Here is my source: ----start---- package applet_test;
/** * <p>Title: applet test</p> * <p>Descriptio n: trying to get applets in html working</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author aljo * @version 1.0 */ import java.applet.*; import java.awt.*;
public class Applet0 extends Applet { public void paint(Graphics g) { g.drawString("E en bijzonder eenvoudige applet", 10, 20); } } ----end--- http://home.planet.nl/~aljo.in.pictures (About me, my relatives, hometown, etc...) http://www.home.zonnet.nl/Amersfoort (About my hometown, lots of photos and explanation. Ook in het Nederlands.) http://www.ranger49.tmfweb.nl (About the American Forces Network Europe.)
You are right! Now it works! Thanks so much!
I am a complete novice in this.
I have a book about JAVA that I am going to read!
Thanks again,
Aljo_
"Me" <bu*****@hotmai l.com> schreef in bericht
news:BBAE39BF.1 F178%bu*****@ho tmail.com... I just tried pasting your example into Project Builder and got the same result. Then I noticed that my Applet tag in the HTML file looked like:
<APPLET archive="Applet 0.jar" code="Applet0" width=300 height=150> </APPLET>
Which means that it was looking in the base level for the applet, but it wasn't there, so it wasn't initialized.
The reason for that was that you put the Applet0 class in the applet_test package. So you need to change the code attribute to
code="applet_te st.Applet0"
That way it will look in your package for the applet and thus find it.
Good luck
in article bm**********@re ader10.wxs.nl, Aljo_ at al*******@hotma il.com wrote on 10/11/03 1:09 PM:
Hello!
I got a free evaluation copy of Borland's JBuilder9.
I also got a book about JAVA, and I am trying to type, compile and run
some examples from the book.
The following - very simple - source comes from my book, and I get the errormessage that the applet isn't initialised.
Can someone please tell me how to get this to work?
Thanks, it is probably a very minor line that JBuilder9 needs, because
the book isn't about a specific JAVA compiler.
Here is my source: ----start---- package applet_test;
/** * <p>Title: applet test</p> * <p>Descriptio n: trying to get applets in html working</p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author aljo * @version 1.0 */ import java.applet.*; import java.awt.*;
public class Applet0 extends Applet { public void paint(Graphics g) { g.drawString("E en bijzonder eenvoudige applet", 10, 20); } } ----end--- http://home.planet.nl/~aljo.in.pictures (About me, my relatives,
hometown, etc...) http://www.home.zonnet.nl/Amersfoort (About my hometown, lots of photos
and explanation. Ook in het Nederlands.) http://www.ranger49.tmfweb.nl (About the American Forces Network
Europe.) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: tomek |
last post by:
Does anyone know how to integrate Oracle9iAS and JBuilder9???
|
by: Heikki Tuuri |
last post by:
Hi!
Many people have complained over years that Borland's dbExpress driver does
not work with MySQL and transactions, because it disconnects from mysqld
after each SQL statement. The postings below suggests that this problem
might now be fixed by Borland.
Best regards,
Heikki Tuuri
|
by: Kenneth Gomez |
last post by:
Hello,
I have tried many avenues (web search, borland website, libxml
website) before deciding to post here.
I'm trying to install libxml2 on windows ME to work with my Borland
C++ 5 Compiler (command line).
Read through the installation guides from xmlsoft.org.
|
by: Ziggi |
last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's
solution or Borland's. Could any kind folks detail the relative strength
and weaknesses of both, and also tell me which you yourselves prefer.
Thanks in advance.
Ziggi
|
by: Juggernaut |
last post by:
Hi
At my college some IT students were giving away free older computer books. I
got a book called Borland C++ a programmers guide.
So I was really just wondering what this Borland C++ is? I know C++ is a
programming language, but Borland? And is this book, thats from 1992 still
valid, or is it outdated?
I hope someone can answer me, or point me to the right place.
| |
by: smartwolf agassi via DotNetMonster.com |
last post by:
I'm a C# language learner.
I want to know which IDE is better for C# programing, Borland C#Builder or
VS.net 2003?
--
Message posted via http://www.dotnetmonster.com
|
by: darrensjunkaccount |
last post by:
Hi,
I have just inherited some embedded software that was compiled with
Borland 4.52. I need to either purchase that compiler, which Borland
no longer appear to sell or alternatively source an upgrade/compatible
compiler. Do Borland sell a newer version of the 4.52 compiler that
will still allow me to compile a DOS executable?
Regards, Darren
|
by: dhruba.bandopadhyay |
last post by:
Am wondering whether Borland C++ 4.5 or Borland Turbo C++ 1.01
supported C++ templates. If not, which
other future version of BC++ or TC++ did? If BC++ 4.5 or TC++ 1.01 does
support it, how much of the
C++ language does it support.
|
by: sm4rt |
last post by:
hi
I want help you in the "install JBuilder9" on liunx fedora
how to install ?
I make this
# ./per_install.bin LAX_VM $x/bin
Preparing to install...
Extracting the JRE from the installer archive...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |