Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JTable Problems ?

Status
Not open for further replies.

Oppenhiemer

Programmer
Jun 28, 2001
315
GB
Hi all -

Its a while since I have looked at Java development, but the last time I had reason to look at it - there were problems with the current version of Java.

Im not sure exactly where the problem lay, but the effect was that there had been changes made to the JTable component which meant you had to d/l a java plug-in in order to be able to use it in a brwoser ?

I was given to understand its due to changes MS have made to the Java VM that ships with IE - but I could be mistaken. I remember at the time having to consider finding a JTable replacement, and I could find none at the time.

The thing is, I wanted to work with Interclient and therefore database stuff. And really, the best component for displaying data was the JTable component. So it was real frustrating not being able to use it (without expecting users to have to d/l a 20MB java plug-in first.)

Anyway, any info would be much appreciated.

Cheers..

Opp.
 
Hi,
As far as I can understand you are wanting to use the JTable in an applet if you are using a browser. The reason
for downloading the plug-in is to allow you to use Swing
components in applets.
If you do not want this functionality at the expense of
download I would recomend writing your own Table implementation or using a Third Party one that you can include in your applet jar
 
Yes Anon256, I want to use the swing JTable component. Hmm.. write my own table component - sounds quite tricky (with all the functionality - listeners etc.)

I imagine that this is a real bind for many people as the table component is so useful for displaying data. I did come across a Table replacement - but I was unable to implement this into a component I could use in an IDE.

I have no experience of writing beans and so on, so the task (for me) would be quite formidable.

If you (or anyone else) knows of a useful alternative - I would be very grateful. Thanks for you feedback.

Cheers..

Opp.

 
Hey Opp,

Sounds like we are in the same boat. I just installed InterClient/Server/IB. We aren't using applets though, we're bundling a vm w/ our app.

Sitraka has a table (LiveTable?), but I don't think it's cheap (and if you're using IB, you'd pay more for the component than the dbms).

It reminds me of tweaking the ListView in the windows common controls, lots of little things to get any performance...but you just hate to add more vendor dependencies.

If it does turn out to be an IE thing, you could display a message about IE issues, then let them download it. They only have to download it once, right?

-Don
 
Hi dbleyl,

It does not seem to be an IE-Specific problem. Netscape has similar difficulty handling JTable issues (If I remember rightly - at least Netscape offers to d/l the necessary plug-ins whereas i think IE just throws an exception.)

As far as users d/l the plug-in, I think its about 20 MB if memory serves. As I wanted to write an app for general use, this will utimately make it un-usable for most people (with 56k connections.)

I may instead end up making an ActiveX component and do things that way. To be honest, I got a bit fed up with trying to escape the sand pit in Java (with regards security issues.) Although, given the difficulty (and money) involved in obtaining a digital certificate - I will have to make do with distributing un-signed apps (and we all know how attractive they are ;-).)

It's a while since I have looked into this issue, but it seems to be linked with verison 1.3 of the JVM/JDK. I would use an earlier version of Java but most IDE environments insist of using a later version, so - stuck really.

Im by no means a Java officianado - but it seems to me that the whole things in a bit of a mess (with version problems and varying levels of support from the many browser vendors.) I do think that MS - as usual - is probably responsibe though.

Cheers..

Opp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top