Article View: borland.public.jbuilder.java.language
Article #15138Re: How come I cant call this class( get it to work)?
From: Rich Wilkman
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
88 lines
3142 bytes
3142 bytes
Eric:
By default, dropping into java.lang, jfc and a whole host of other
libraries that 99% of the time you can't change is blocked to make the
debugging faster. Use View | Loaded Classes to change this list. More
in the online docs.
-Rich
Eric Advincula wrote:
>
> I have this snippet of code that when I step through never goes into:
> when I put a break point in the " class SD extends javax.swing.JWindow"
> and when i get to the code "m_SplashWindow = new SD( this, imgSplash );"
> it doesnt go to the break point at all in the class so its like it bypassing
> this class.
> Does anyone have any ideas why?
> Thanks
>
> import javax.swing.*;
> import java.awt.*;
>
> public class frmMain extends javax.swing.JFrame
>
> private void formWindowOpened (java.awt.event.WindowEvent evt) {
> // Add your handling code here:
> SplashScreenFrame m_SplashScreen = new SplashScreenFrame();
> }
> }
>
> class SplashScreenFrame extends javax.swing.JFrame
> {
> SD m_SplashWindow;
> Image imgSplash;
>
> SplashScreenFrame()
> {
> super();
> Toolkit toolkit = Toolkit.getDefaultToolkit();
> imgSplash = toolkit.getImage( "splash.gif" );
> m_SplashWindow = new SD( this, imgSplash );
> }
>
> // public static void main( String[] args )
> // {
> // new SplashScreenFrame().show();
> // SplashScreenFrame m_SplashScreenFrame = new SplashScreenFrame();
> // }
> }
>
> class SD extends javax.swing.JWindow
> {
> Image imgSplashImg;
>
> SD( Frame parent, Image imgSplash )
> {
> super( parent );
> imgSplashImg = imgSplash;
> setSize( 518, 312 );
>
> Dimension m_ScreenDim = Toolkit.getDefaultToolkit().getScreenSize();
> Rectangle m_Rect = getBounds();
> setLocation( ( m_ScreenDim.width - m_Rect.width ) / 2,
> ( m_ScreenDim.height - m_Rect.height ) / 2 );
> setVisible( true );
> }
>
> public void paint( Graphics g )
> {
> if( imgSplashImg != null )
> g.drawImage( imgSplashImg, 0, 0, this );
> }
> }
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Quality Assurance Manager
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<377AE9DE.8B9B1C5F@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7lel8f$std8@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a9b1487f8bd8fd54 X-Google-Attributes: gidf74b3,public From: Rich Wilkman <rwilkman@inprise.com> Subject: Re: How come I cant call this class( get it to work)? Date: 1999/06/30 Message-ID: <377AE9DE.8B9B1C5F@inprise.com> X-Deja-AN: 495878845 Content-Transfer-Encoding: 7bit References: <7lel8f$std8@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language