Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Why VE calls actionPreformed Listeners?
Why VE calls actionPreformed Listeners? [message #618418] Tue, 20 July 2010 06:02
Eclipse UserFriend
Originally posted by:

Hi all,
I'm using eclipse 3.5.2 and VE 1.4 for design Swing applications.

I've noticed that VE often follows actionPerformed events linked to object and this produces very often unpredictable results.
For example in the code below, the method "inserisciNuovoCliente()" is called by the VE during setup and prevent it to display the frame correctly. If I comment
the call to inserisciNuovoCliente() the frame is displayed OK.

Is there a way to prevent this behaviour?

private JButton getBtInsNuovoCliente() {
if (btInsNuovoCliente == null) {
btInsNuovoCliente = new JButton();
btInsNuovoCliente.setText("Inserisci nuovo cliente");
btInsNuovoCliente.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
new Thread() {
public void run() {
return btInsNuovoCliente;

private void inserisciNuovoCliente() {
Anagrafica cli = new Anagrafica();
FrameSchedaAnagrafica fsa = new FrameSchedaAnagrafica(cli);
UIUtils.showModalInternalFrame(fsa, StoreClientGlobal.desktopPane, this);
cli = fsa.getAnagObject();
if (cli.getId() != null) {
try {
} catch (Exception e) {
Previous Topic:Please help me use VE
Next Topic:Why VE calls actionPreformed Listeners?
Goto Forum:

Current Time: Tue Jan 25 21:05:01 GMT 2022

Powered by FUDForum. Page generated in 0.02222 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top