Benjamin FAIVRE

Greenhorn
+ Follow
since Mar 31, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Benjamin FAIVRE

Hi there!
I need some help
I want to detect which keyS are pressed by the user (this takes place in a applet).
I mean, for exemple, to detect when the user has pressed the "ctrl+insert" keys.
I know how to detect when ONE key is pressed, but I don't know how to detect severals keys down.
Any idea?
Thanks!
Benjamin
22 years ago
Thanks for your reply!
Finally I have decided to extend the DefaultTableModel because I have not found how to do! lol
When I created an "addRow" methode in my model (extending the AbstractTableModel), I had a probleme with the data array : when I tried to extend it by adding a row, I get an error.
My data array was defined with x row, and here, there was now y row, with y>x, so it was out of bounds.
But I am not graduate from any Java High school (lol) so... I learn every hour and this is really interesting!
Thanks again, take care
22 years ago
Thanks for your reply!
Finally I have decided to extend the DefaultTableModel because I have not found how to do! lol
When I created an "addRow" methode in my model (extending the AbstractTableModel), I had a probleme with the data array : when I tried to extend it by adding a row, I get an error.
My data array was defined with x row, and here, there was now y row, with y>x, so it was out of bounds.
But I am not graduate from any Java High school (lol) so... I learn every hour and this is really interesting!
Thanks again, take care
22 years ago
I am bulding a JTable using my own TableModel.
This TableModel extends AbstractTableModel.
All is going well, except when I want to add a row at the end of the table.
How can I implements such a method?
Thanks for help!
(and I want to keep extending AbstractTableModel, in order to implement some methodes that I need)
22 years ago
I am bulding a JTable using my own TableModel.
This TableModel extends AbstractTableModel.
All is going well, except when I want to add a row at the end of the table.
How can I implements such a method?
Thanks for help!
(and I want to keep extending AbstractTableModel, in order to implement some methodes that I need)
22 years ago
thanks!
How can I "de-sign" an applet?
22 years ago
I've solve the problem!
Using the method :
DocumentBuilder.parse(InputStream is)
Instead of
DocumentBuilder.parse(File f)
But if someone can tell me why it does not work while passing a "File parametere", he's welcome!
22 years ago
I have got a problem with myApplet :
access denied(java.util.propertyPermission user.dir read)
This is when I Try to read an XML file, using :
dbf = DocumentBuilderFactory.newInstance();
db = dbf.newDocumentBuilder();
...
File fic = new File(fichier);
Document doc = db.parse( fic);
...
The errors appends at :
Document doc = db.parse( fic);

I manage to read a normal Txt file with my Applet! so I don't understand...
I tried to modify the policy file, without any results...
Can anyone help me, please?
Thanks!
22 years ago