(JBeginner) cant access "args" from other classes?!
From: Sean Anderson (seanka_at_datavirtue.com)
Date: 02/03/04
- Previous message: Ravage: "JBoss Webservices"
- Next in thread: Ryan Stewart: "Re: (JBeginner) cant access "args" from other classes?!"
- Reply: Ryan Stewart: "Re: (JBeginner) cant access "args" from other classes?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 03 Feb 2004 17:39:04 GMT
It seems I lack an understanding of varible (sorry, field) scope and need
human feedback. I have read 5 books on java and everything in the help of
my development tool says this should work fine, here are the details:
TextEdit package
Public TextEdit class
Public TextEdit() method invokes Frame1
Public Static main(String[] args)
Public Frame1 extends DecoratedFrame class
method in Frame1 tries to print "args"
Compile Error: varible args not found in class TextEdit.Frame1.
I've tried using TextEdit.args and TextEdit.main().args and several others
until I became fed up with with my own ignorance.
Everything elese in my app works fine but this.
Please help
Sean
- Previous message: Ravage: "JBoss Webservices"
- Next in thread: Ryan Stewart: "Re: (JBeginner) cant access "args" from other classes?!"
- Reply: Ryan Stewart: "Re: (JBeginner) cant access "args" from other classes?!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]