Thread View: borland.public.jbuilder.debugger
5 messages
5 total messages
Started by krayonn
Wed, 06 Apr 2005 23:14
Help! Desperate Marcom Admin on hook to create new applet! No training! Deadline NOW! YIKES!
Author: krayonn
Date: Wed, 06 Apr 2005 23:14
Date: Wed, 06 Apr 2005 23:14
64 lines
3285 bytes
3285 bytes
I am a marketing assistant having a problem with applet code to execute an actionListener event needs a quick resolution for a person with no programming training who is under a lot of pressure to perform by a boss with an agenda!
Financial statement are to be posted to a textField. Code for button execution currently looks like this:
Button button1 = new Button():
.
.
.
button1.setLabel("EXECUTE");
button1.setBounds(new Rectangle (21,545, 142, 24));
button1.addActionListener(new Applet1_button1actionAdapter(this));
.
.
.
this.add(button1, null);
.
.
.
//Get Applet information
public String getAppletInfo()) { return "Applet Information";
//Get parameter info
public String[][] getParameterInfo() {
return null;
}
public boid button1_actionPerformed(ActionEvent e) {
}
}
class Applet1_button1_actionAdapter
implements ActionListener {
private Applet1 adaptee;
Applet1_button1_actionAdapter(Applet1 adaptee) {
this.adaptee = adaptee;
public void button1_actionPerformed(ActionEvent e) {
adaptee.button1_actionPerformed(e);
//get the input values from the Text Field(s)to create a break even budget analysis and 3 year projections--calculations are to appear in a text area as per textArea1.append("\nNet Profit 3 Years Cume:\t" + nf.format(np)));
.
.
.
class Applet1_button1_actionAdapter
implements java.awt.event.ActionListener {
Applet1 adaptee;
Applet1 button1_actionAdapter(Applet1 adaptee) {
this.adaptee = adaptee;
} THIS IS WHERE THE DEBUGGER SAYS SOMETHING IS EXPECTED: EITHER A ")" OR A ";", BUT THAT MAKES OTHER LITTLE RED BOMBS SHOW UP!!
public void actionPerformed(ActionEvent e) {
adaptee.Button1_actionPerformed(e);
}
}
I AM SORRY TO POST SUCH A KNUCKLEHEADED QUESTION
My boss expects this to be easy and doesn't care that I don't know how to program java and all I have for teaching is an old version of someone else's code in a different version of Java. I just downloaded JBuilder Developer Trial (last night) and my job is on the line. Java for Dummies does not use the same version as this! If someone knows how to do this and is willing to take pity on a hapless marketing assistant it will save my keester. I think the deployment sourcecode notes here for making the jar file are also for the wrong version, but I am not sure . . .:-(
Thank you in advance for your compassion and help. I am way stressing with no clues.
Kristin
Re: Help! Desperate Marcom Admin on hook to create new applet! No training! Deadline NOW! YIKES!
Author: Kevin Dean [TeamB]
Date: Thu, 07 Apr 2005 00:37
Date: Thu, 07 Apr 2005 00:37
47 lines
2744 bytes
2744 bytes
krayonn wrote: > I am a marketing assistant having a problem with applet code to > execute an actionListener event needs a quick resolution for a person > with no programming training who is under a lot of pressure to > perform by a boss with an agenda! I honestly don't know where to begin with your problem. If you were to upload your applet Java class to the borland.public.attachments group I could probably take a look, time permitting. However, feel free to print out this message and show it to your boss. Worst case, print it out and show it to your boss when he/she tells you that you're fired for not fixing the problem. Programming is an engineering discipline. The barrier to entry is lower than it is for most other engineering disciplines, but it still requires time to acquire even the most basic knowledge necessary to be effective in any manner whatsoever. To your boss I would ask this: Would you trust a sales rep with no automotive experience to fix your car? Would you trust a secretary with no carpentry experience to build a deck? Would you trust a manager with no plumbing experience to fix a leak behind the wall of the basement? and finally... Would you trust a programmer with no marketing experience to write a marketing plan? -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ NEW WHITEPAPERS Team Development with JBuilder and Borland Enterprise Server Securing Borland Enterprise Server http://www.datadevelopment.com/papers/index.html Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html
Re: Help! Desperate Marcom Admin on hook to create new applet! No training! Deadline NOW! YIKES!
Author: Kevin Dean [TeamB]
Date: Thu, 07 Apr 2005 00:38
Date: Thu, 07 Apr 2005 00:38
38 lines
2396 bytes
2396 bytes
krayonn wrote:
> class Applet1_button1_actionAdapter
> implements ActionListener {
> private Applet1 adaptee;
> Applet1_button1_actionAdapter(Applet1 adaptee) {
> this.adaptee = adaptee;
>
> public void button1_actionPerformed(ActionEvent e) {
> adaptee.button1_actionPerformed(e);
> // **** PUT '{' HERE
> //get the input values from the Text Field(s)to create a break even
> budget analysis and 3 year projections--calculations are to appear in
> a text area as per textArea1.append("\nNet Profit 3 Years Cume:\t" +
> nf.format(np))); . . .
> class Applet1_button1_actionAdapter
> implements java.awt.event.ActionListener {
> Applet1 adaptee;
A couple problems jump to mind...
1) You have the same class Applet1_button1_actionAdapter defined twice,
a definite no-no.
2) The first declaration is missing the closing '}' in the constructor
(where I have // **** PUT '{' HERE).
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Re: Help! Desperate Marcom Admin on hook to create new applet! No training! Deadline NOW! YIKES!
Author: kristen
Date: Thu, 07 Apr 2005 04:27
Date: Thu, 07 Apr 2005 04:27
54 lines
3309 bytes
3309 bytes
Kevin, thank you so much for your advice. I was able to fix the problem with the redundant class thing and I put in the '}' as indicated.
NOW I have a clean bill of health except at the end I get a little Add Breakpoint note, and I'm wondering if I have to end with a class breakpoint? I don't know what that would be, but at the very very end, after
}
}
}
it won't just end, it wants something more.
You have already been a big help and I don't want to take advantage, but I am still here working and if you happen to think of something insightful I would be delighted to know what!
Your questions for my boss have certainly crossed my mind, and I don't think I get paid enough for this kind of work, but I can't afford to quit and I can't see how telling him he's got a bad attitude is going to help me out. Maybe if I can get the hang of this I can get a better job somewhere else . . . or maybe go to graduate school and study engineering!
--k
"Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com> wrote:
>krayonn wrote:
>
>> class Applet1_button1_actionAdapter
>> implements ActionListener {
>> private Applet1 adaptee;
>> Applet1_button1_actionAdapter(Applet1 adaptee) {
>> this.adaptee = adaptee;
>>
>> public void button1_actionPerformed(ActionEvent e) {
>> adaptee.button1_actionPerformed(e);
>> // **** PUT '{' HERE
>> //get the input values from the Text Field(s)to create a break even
>> budget analysis and 3 year projections--calculations are to appear in
>> a text area as per textArea1.append("\nNet Profit 3 Years Cume:\t" +
>> nf.format(np))); . . .
>> class Applet1_button1_actionAdapter
>> implements java.awt.event.ActionListener {
>> Applet1 adaptee;
>
>A couple problems jump to mind...
>
>1) You have the same class Applet1_button1_actionAdapter defined twice,
>a definite no-no.
>2) The first declaration is missing the closing '}' in the constructor
>(where I have // **** PUT '{' HERE).
>
>--
>Kevin Dean [TeamB]
>Dolphin Data Development Ltd.
>http://www.datadevelopment.com/
>
>NEW WHITEPAPERS
>Team Development with JBuilder and Borland Enterprise Server
>Securing Borland Enterprise Server
>http://www.datadevelopment.com/papers/index.html
>
>Please see Borland's newsgroup guidelines at
>http://info.borland.com/newsgroups/guide.html
Re: Help! Desperate Marcom Admin on hook to create new applet! No training! Deadline NOW! YIKES!
Author: Kevin Dean [TeamB]
Date: Fri, 08 Apr 2005 02:20
Date: Fri, 08 Apr 2005 02:20
32 lines
2316 bytes
2316 bytes
kristen wrote: > Kevin, thank you so much for your advice. I was able to fix the > problem with the redundant class thing and I put in the '}' as > indicated. > > NOW I have a clean bill of health except at the end I get a little > Add Breakpoint note, and I'm wondering if I have to end with a class > breakpoint? I don't know what that would be, but at the very very > end, after } } } > it won't just end, it wants something more. I don't know what you mean by an "Add Breakpoint" note. Breakpoints have nothing to do with code structure; they're points in your code at which a debugger "breaks" to allow you to step through the code line by line, examine variables, etc. If programming were as easy as your boss suggests, even managers could do it. ;-) -- Kevin Dean [TeamB] Dolphin Data Development Ltd. http://www.datadevelopment.com/ NEW WHITEPAPERS Team Development with JBuilder and Borland Enterprise Server Securing Borland Enterprise Server http://www.datadevelopment.com/papers/index.html Please see Borland's newsgroup guidelines at http://info.borland.com/newsgroups/guide.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads