craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > QuickTable Installation Issues Post New Topic   Post A Reply
Applet + security problem printer friendly version
next newest post | next oldest post
Author Messages
armin.weiser{@}freenet.de
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Dear Ben,

I don't know why I get an AccessControlException. The only thing I do is calling the class DBTable:

import javax.swing.*;
import quick.dbtable.*;

public class DBTableApplet extends JApplet {
public void init() {
DBTable dBTable1 = new DBTable();
}
}

And I get an AccessControlException. So, whats wrong ?
I'm using DBTable 2.0.3 and sdk1.4.1 as Plugin.
If I call e.g.:
JTextField t = new JTextField("Hi");
getContentPane().add(t);
anything looks fine.

My HTML-page looks like:

...
CODEBASE = "."
CODE = "DBTableApplet.class"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 300
HSPACE = 0
VSPACE = 0
ALIGN = middle
ARCHIVE ="quicktable2swing11.jar"
...

and the error is:

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)

admin{@}quicktable.org
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Please refer to the following dicussion


http://quicktable.org/discussion/db_TalkToMe.cgi?forum_name=QuickTable.setup.cgi&message_number=418

armin.weiser{@}freenet.de
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Hi Ben,
thanks for your answer.
Indeed I have to put a:
'grant { permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";};'
into my .java.policy file.
Is there a way to avoid this ? I would like to build an applet without any 'extra-doings' for the user.
There are some other problems I have with: 'table.setCellComponent(c,Column.COMBOBOX_CELL,h);'
1. Is there a way to sort the content of the resulting combobox ? Even if I put Strings in the desired order into the Hashtable, the Hashtable sorts by its own order. I believe it orders by the keys.
2. If i choose an item in the combobox that is null with a special key, the combobox doesn't recognize the correct choice. It jumps to the 'default null item'.
3. Just a question: you have got an implemented search routine. This routine does not search the selected items of Comboboxes. Is there a plan to realize this ? If not, do you have an idea how I can implement this ?
Same to the column sorting algorithm. Combobox columns are sorted by the key in the background, not by the selected items.

Best regards,
Armin.


armin.weiser{@}freenet.de
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Ben ?!?
admin{@}quicktable.org
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, December 31, 1969 @ 23:59:59  

Sorry for not replying to you immediately. The problems you have mentioned are some of the missing features. I will fix these problems in the next release. The next release will be in a month. Please wait until then.

Thank you,
Ben

Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios