BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help! Desperate Marcom Admin on hook to create new applet!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Debugger
View previous topic :: View next topic  
Author Message
krayonn
Guest





PostPosted: Wed Apr 06, 2005 11:14 pm    Post subject: Help! Desperate Marcom Admin on hook to create new applet! Reply with quote




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

Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Thu Apr 07, 2005 12:37 am    Post subject: Re: Help! Desperate Marcom Admin on hook to create new apple Reply with quote



krayonn wrote:

Quote:
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

Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Thu Apr 07, 2005 12:38 am    Post subject: Re: Help! Desperate Marcom Admin on hook to create new apple Reply with quote



krayonn wrote:

Quote:
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

Back to top
kristen
Guest





PostPosted: Thu Apr 07, 2005 4:27 am    Post subject: Re: Help! Desperate Marcom Admin on hook to create new apple Reply with quote


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 (AT) datadevelopment (DOT) com> wrote:
Quote:
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


Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri Apr 08, 2005 2:20 am    Post subject: Re: Help! Desperate Marcom Admin on hook to create new apple Reply with quote

kristen wrote:

Quote:
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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Debugger All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.