The Artima Developer Community
Sponsored Link

Java Answers Forum
as size().width is deprecated, how do i get the width size in java class

1 reply on 1 page. Most recent reply: Apr 29, 2003 10:29 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Ajay

Posts: 8
Nickname: aju
Registered: Apr, 2003

as size().width is deprecated, how do i get the width size in java class Posted: Apr 28, 2003 4:22 AM
Reply to this message Reply
Advertisement
Hi there,
can anybody pls let me know whats the deprecated solution of size().width in java file of any applet..
I would like to know how can i get the width size of the applet in java file as size().width is got deprecated..
Aju


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: as size().width is deprecated, how do i get the width size in java class Posted: Apr 29, 2003 10:29 AM
Reply to this message Reply
I think what you are referring to is the Component class method size() which has been deprecated.

As of JDK version 1.1, size() was replaced by getSize().

You can get the width or height directly with the
getWidth() and getHeight() methods.

Flat View: This topic has 1 reply on 1 page
Topic: Helper Classes Previous Topic   Next Topic Topic: Java Problem On my Website

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use