Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

this.showStatus not working...

Thread view: 
FB - 10 Jan 2008 08:39 GMT
does not work when used with IE7 and Sun´s JRE

works with IE6 and Sun´s JRE

works with IE7 and MS VM

any clues?
Andrew Thompson - 10 Jan 2008 10:01 GMT
Please repeat the (crux of the) subject line within the body
of posts. *

>does not work when used with IE7 and Sun´s JRE

Checking the JavaDocs (ya' know - RTFM?) for J2SE 6,**
we can see ..
<http://java.sun.com/javase/6/docs/api/java/applet/Applet.html#showStatus(java.la
ng.String

)>
"Suggests.."  OK we can stop there.
This method does not have to work in any *compliant*
JRE/browser combo.

Note that if 'my IE' is in full screen mode, there is *no*
'status bar', so an applet could yell and scream messages
to it, and they would not affect me in the slightest.  If a
message is important to the app., either show it in the
content area, pop a dialog, or launch the applet using web
start - in a JFrame that implements a 'status bar' on the
bottom, and provides an AppletContext that passes on the
messages.

(** AFAIR all earlier J2SE versions will say much the
same thing).

>works with IE6 and Sun´s JRE

Lucky.

>works with IE7 and MS VM

Lucky?  Where did you get an MSVM, and what on earth
possessed you to infect your IE7 with it?

>any clues?

* Also, please capitalize the first letter of each sentence.

Signature

Andrew Thompson
http://www.physci.org/

FB - 11 Jan 2008 00:03 GMT
> Please repeat the (crux of the) subject line within the body
> of posts. *

ok, the following code doesn´t work in some browser/VM combinations:

this.showStatus("some string");

>>does not work when used with IE7 and Sun´s JRE
>
[quoted text clipped - 14 lines]
> bottom, and provides an AppletContext that passes on the
> messages.

er... if the browser was in full screen mode no one would know if this
method was working or not, agree?
so it´s pretty obvious that it´s not working when the browser HAS a status
line/panel...

> (** AFAIR all earlier J2SE versions will say much the
> same thing).
>
>>works with IE6 and Sun´s JRE
>
> Lucky.

and why did both MS and Sun put this method on their VMs if it´s not
supposed to work?

>>works with IE7 and MS VM
>
> Lucky?  Where did you get an MSVM, and what on earth
> possessed you to infect your IE7 with it?

as a registered Java developer Microsoft granted me the rights to distribute
their VM... and MS VM is still stable, 10x faster than Sun´s and there´s no
annoying auto updates...

>>any clues?
>
> * Also, please capitalize the first letter of each sentence.
Lew - 11 Jan 2008 01:01 GMT
> as a registered Java developer Microsoft granted me the rights to distribute
> their VM... and MS VM is still stable, 10x faster than Sun�s and there�s no
> annoying auto updates...

Nor useful manual ones.  You also don't get concurrency libraries, NIO,
generics, for-each, enum, HotSpot, security patches, ...

I don't get "annoying" or any other kinds of automatic updates to Java if I
don't want to, and I use Sun's (and IBM's, but that's not important now).  So
I don't understand that as a benefit to using an out-of-date, incompatible
version of "Java".

Then there's this little nugget right from Microsoft themselves:
<http://www.microsoft.com/mscorp/java/default.mspx>
> The MSJVM will reach its end of life on December 31, 2007.

Obviously this is old news now in 2008.

> Customers are encouraged to take proactive measures to stay informed about
> obsolete software and move away from the MSJVM in a timely fashion.
> The MSJVM is no longer available for distribution from Microsoft and there
> will be no enhancements to the MSJVM.
> Microsoft products and SKUs currently including the MSJVM will continue to
> be retired or replaced by versions not containing the MSJVM.

Good luck with all that.

Signature

Lew

Andrew Thompson - 11 Jan 2008 01:11 GMT
...
>as a registered Java developer Microsoft granted me the rights to distribute
>their VM...

Really?  Given they are not distributing it off their own site,
and had the crap sued out of them for supplying it themselves,
I find it hard to believe they (recently) felt thay had the right
to 'authorize' anyone else to distribute it.

>...and MS VM is still stable, ..

Yes.  Those security bugs in the 3810 build will bever be fixed.

>..10x faster than Sun´s ..

Not at doing anything 'post 1.1'.  ;-)

Besides - 10X?  I saw some results that suggested the
MSVM was around 4-5x faster at raw int calculations,
but have lost the URL of the applet.  Care to put up an
URL for testing?  (I too, have access to an MSVM -
though MS sure did not authorize it).

>..and there´s no
>annoying auto updates...

The auto-update is configurable.  It would be best to advise
users to keep it enabled so they get the latest *security*
updates, but concede it can be pretty irritating for
developers.

Signature

Andrew Thompson
http://www.physci.org/

Andrew Thompson - 11 Jan 2008 04:41 GMT
( Applet.showStatus() )
>does not work when used with IE7 and Sun´s JRE

OK.  I have to concede that my initial answer to this
question was largely driven by my own irritation at Sun
ever including the word 'suggest' in the JavaDocs.  
Perhaps they meant 'if a status bar is available' and
if so, I wish the JavaDocs had said that specifically.

If 'suggest' really means the latter, then yes, this is
apparently (I have no IE7 to confirm the behaviour) a bug.

OTOH - I guess Sun would have every right to mark
a bug report as 'Closed - not a bug' if they want to
stick to the 'suggests' line of reasoning.

I would still recommend that you
a) Search the bug database*.
b) If it is not mentioned, raise a report.  
c) Give us some progress reports on that.

It may turn out this is a simple regression problem
that is easily fixed.

* <http://bugs.sun.com/bugdatabase/index.jsp>

As a general comment on applets though. 'Expect
complications'.  As you have experienced in this
case, something seemingly very simple that works
in one version of one browser on one OS running one
Java version, may not even work on the same OS
and browser if the browser/Java versions are different
(let alone an entirely different browser on a different
platform).  

IE is the 'classic' when it comes to 'little tricks for
applets to overcome', but other browser brands have
their 'interesting little quirks' to account for, as well.  

I would not recommend applet development to any
but very experienced Java developers.  

Applets are a PITA.  (Go webstart instead!)

Signature

Andrew Thompson
http://www.physci.org/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.