Article View: borland.public.jbuilder.java.swing
Article #7988Re: two questions about action
From: Joi Ellis [TeamB]
Date: Sat, 04 Nov 2000 00:00
Date: Sat, 04 Nov 2000 00:00
43 lines
2526 bytes
2526 bytes
Randy <slyfox65@netzero.net> wrote:
> this is what i get; not sure if it's right or not
> IN actionPerformed: java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=By
> Ledger] on
By Ledger? I thought you were having trouble with the view by date?
The actionPerformed method in that code you posted the other day had a thing
like "target.test()" on it, in the bit that wasn't for byDate.
> javax.swing.JMenuItem[,1,3,95x21,alignmentX=null,alignmentY=null,border=java
> x.swing.plaf.metal.MetalBorders$MenuItemBorder@641e9a,flags=1056,maximumSize
> =,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIco
> n=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2],p
> aintBorder=true,paintFocus=false,pressedIcon=,rolloverEnabled=false,rollover
> Icon=,rolloverSelectedIcon=,selectedIcon=,text=By Ledger]
> Action.NAME: Name
"Name?" Are you printing the contents of the name variable you stored in
the LedgerAction contructor, or just the string "Name?" I expected to see
"viewByDate" here.
>> System.out.println("Action.NAME: " + Action.NAME);
>> if(getValue(Action.NAME) == "viewByLedger") {
>> target.test();
It executed this bit...
>> System.out.println("target.test triggered");
>> }
>> else if(getValue(Action.NAME) == "viewByDate") {
But I thought you wanted this bit?
>> target.viewRecord(1);
>> System.out.println("target.viewRecord triggered");
>> }
--
Joi Ellis (TeamB)
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Technical Details
Message-ID:
<8u0aqm$dfj11@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8tqo7u$n2b4@bornews.borland.com> <8tqqci$mv73@bornews.borland.com> <8ts088$5q67@bornews.borland.com> <8ts853$a9q7@bornews.borland.com> <8tsg26$a7315@bornews.borland.com> <8tshve$a6q11@bornews.borland.com> <8tt8sp$kmn2@bornews.borland.com> <8tteb8$kml7@bornews.borland.com> <8tunk0$3lm6@bornews.borland.com> <8tv4v6$7fc9@bornews.borland.com> <8tvah9$7i310@bornews.borland.com> <8tvtfm$d9t5@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,24022f34a2b35dbc
X-Google-Attributes: gid111d45,public
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: two questions about action
Date: 2000/11/04
Message-ID: <8u0aqm$dfj11@bornews.borland.com>
X-Deja-AN: 689512350
References: <8tqo7u$n2b4@bornews.borland.com> <8tqqci$mv73@bornews.borland.com> <8ts088$5q67@bornews.borland.com> <8ts853$a9q7@bornews.borland.com> <8tsg26$a7315@bornews.borland.com> <8tshve$a6q11@bornews.borland.com> <8tt8sp$kmn2@bornews.borland.com> <8tteb8$kml7@bornews.borland.com> <8tunk0$3lm6@bornews.borland.com> <8tv4v6$7fc9@bornews.borland.com> <8tvah9$7i310@bornews.borland.com> <8tvtfm$d9t5@bornews.borland.com>
Organization: Another Netscape Collabra Server User
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.14-5.0 (i686))
Newsgroups: borland.public.jbuilder.java.swing