× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.





albartell wrote:
What ui framework are you using (i.e. Swing, Awt, etc)?

I'm working my way through the text, it starts with AWT, and moves to Swing. While all this event/listener driven programming makes a lot of sense, it's still quite new to me. I'll definitely check out Matisse when I'm further along.

What I like so far about WDSC is that I can do my Java application development alongside my JSF development, and the tooling seems (so far) to be consistent. By the time I'm done, I will have used the same set of Java classes to run a Green Screen/CL application, a JSF application, and now a Java applet/application. I'm impressed; this is code re-use at it's ultimate.

Thanks for the feedback, the example code will be useful, although I am still interested in finding out where the tooling to generate it has moved to in WDSC 7.0

Brian Leathem

I have been doing some Java GUI development this week and am using the
Matisse tooling in MyEclipseIDE ($50/yr for the Pro version). It seems to
be a step up from what WDSC 7.0 has for a visual editor. There are some
things I don't like about it, but in general I like it more than WDSC 7.0's.

Also, here's an example of code if you need it:

btnNew.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnNewActionPerformed(evt);
}
});
...
// GEN-FIRST:event_btnNewActionPerformed
private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {
newCust();
}// GEN-LAST:event_btnNewActionPerformed

HTH,
Aaron Bartell
http://mowyourlawn.com

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of Brian Leathem
Sent: Wednesday, June 13, 2007 4:55 PM
To: wdsci-l@xxxxxxxxxxxx
Cc: beans@xxxxxxxxx
Subject: [WDSCI-L] addActionListener to a Component

I'm working through the book "Building Applications with IBM Websphere
Studio and JavaBeans", trying to teach myself how to build java
applications. The book so far is great, despite being written for Websphere
Studio Site Developer 5.0, so far it's been straightforward to translate the
instructions to WDSC 7.0.
However, the book describes using an "inner class" to define the listener
for a component. To do this, I type "button.addA" then crtl-space to
prompt, and I'm supposed to select "addActionListener - addActionListener to
a Component" which generates the inline class for me. This doesn't seem to
be available in WDSC 7.0. I realize I can type it by hand, but that seems
to defeat one of the advantages of this whole IDE thing. Does anyone have
any pointers?

I appreciate your responses,
Brian Leathem


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.