Article View: borland.public.jbuilder.java.language
Article #19191Newbie Question on Boolean Action
From: Dave Muehling
Date: Fri, 06 Mar 1998 00:00
Date: Fri, 06 Mar 1998 00:00
26 lines
1347 bytes
1347 bytes
I am having a problem combining two applets. In one, I have a
cardLayout and the appropriate:
public boolean action(Event evt, Object arg)
{ if (evt.target instanceof Component &&
((Component)evt.target).getParent().equals(tabs))
{ if (arg.equals("<<")) layout.first(cards);
else if (arg.equals("<")) layout.previous(cards);
else if (arg.equals(">")) layout.next(cards);
else if (arg.equals(">>")) layout.last(cards);
else layout.show(cards, (String)arg);
}
else return super.action(evt, arg);
return true;
}
In the other, I have a database connection with a seperate boolean
Action. When I tried to combine them, I would get an error saying that
one wasn't reached. I know I am missing something simple, so could
someone PLEASE fill me in.
Thanks,
Exeter
Technical Details
Message-ID:
<35000C22.7B05@starnetinc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,14e997dbd8f8a9ff,start X-Google-Attributes: gidf74b3,public From: Dave Muehling <exeter@www.eidea.com> Subject: Newbie Question on Boolean Action Date: 1998/03/06 Message-ID: <35000C22.7B05@starnetinc.com> X-Deja-AN: 331411082 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Eidea Labs, Inc. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language