Hm.. this could be quite disastrous since your JDialog would be on top of your browser at all times... anyway you can take a look at the example I have done:-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class dialogDemo extends JApplet implements ActionListener
{...
I am not very sure but I don't think you have to change the codes. I have never tried signning an applet but someone had told me before that there are some particular things that needs to be add into the codes, what I am not sure and to what extend is this true, I don't know.
Perhaps you would...
Hi, what type of Java program are you talking about? and how are you planning to connect your program to the applet in the first place?
These are some questions, which I guess you should decide upon, since whether your program can call your applet methods, depend on them.
Leon
lol~
I have roughly browsed through the faq about loading of applets but didn't find it quite useful... I don't know if anyone here hates you but at least I don't :) anyway, I guess don't bother writing faqs... you can write 100 of the same faq and you will still see the same question appearing...
Hi, very sorry but it worked for me so I can't get a solution for your problem... Here is the example that I did:-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class JIFDemo extends JFrame implements MenuListener
{
private Container...
Ok, this is what I found out. Your working version is alright but your non-working version for this exception 'bad magic number'. I encountered this error before too but I don't know how to solve it....
Anyway, I downloaded both the working and non-working applets and ran them from my pc. The...
Since you mentioned applets, I guess you would just like to create applets? If so, then it would be better to get books teaching pure applets (more examples) instead of a book on Java. You don't have to spend so much time too unless you have got the time.
You can download JDK1.1, instead of...
Hi italy, I guess you have the servlet with you right even though your are not the coder?
Ok, take a look at the servlet SSMain.class. Look at the doGet() method. You should have at least 1 SSAbstractServlet object there and you called the method getSession() (provided your method is not...
The applet wasn't created by him. He got it from a site (I went to the site before and he got some pretty good applets.) Btw, he didn't use Java 2 to create the applet.
Wtchbld : You can't center the text within the applet due to the codes and since you only have the class file, there is...
Seems like there are a few errors. Try this instead:-
int temp = 0;
for(int sheet1RowCnt = 2; sheet1RowCnt <= Sheet1.getLastRow(); sheet1RowCnt++)
{
for(int i = 5; i <= 16; i++)
{
String addValues = Sheet1.getText(sheet1RowCnt, i)...
tmryan: I am currently using JPadPro. You can download it from anywhere but it has a limit of 30 days (I think). Luckily, you can get a crack from the web :)
Regards,
Leon
What function are you refering to? Javascript functions? I think you are able to... I have seen IRC applets that interact with html codes (that means using <input type="text"> etc) and having javascript to pass the value in the textfield to the input parameters of the applet so I guess...
Hi Tim, yes you are right. Running of applets in IDEs used appletviewer and in appletviewers, they would take it that your applet is 'safe' so you will be able to run it just like a normal application.
However, when you try to run the applet in a browser, your applet will not have full rights...
Did you set the JTextArea to uneditable/unabled through the method setEditable(false)/setEnabled(false)? If you didn't and your JTextArea is in a JPanel, try using updateUI() in the JPanel.
There should be no other reasons as for why it will not work..
Seems alright to me except that for callablestatements, we normally use executeUpdate() or executeQuery(), but then I guess it won't make much of a difference...
Are you 100% sure this is the part of the coding that is causing the problem?
There is actually nothing wrong with your threads. Your first(main) thread is still running but because of the while statement, it will put your first thread to sleep when the second thread is not done with its job thus all buttons will not work.
What you can do is to put/call the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.