🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7581

I've tryed and tryed but I don't understand this error

#7581
From: Thomas Schulz
Date: Sun, 10 Jun 2001 16:43
33 lines
1916 bytes
I am a java newbee who once again has stumped on troubles..


  AbstractAction aActionNew = new AbstractAction("New", new
ImageIcon("images/New16.gif")) {
    public void actionPerformed(ActionEvent e) {
      newEditor();
    }
  };
  aActionNew.setEnabled(false); // <--- here is the "error":  <identifier>
expected


I don't understand. What can I do?
In help it clearly has the given method..

Also I can't figure out (been reasearching for a couple of hours) how to do
something as simple as seet accelerator key and mnemonic for
AbstractActions.
It is easy for menus and buttons.
But AbstractActions only have string fields (and there are no examples)...
And..e.g. KeyStroke, KeyEvent etc. return integers.
Lastly I figured it must be the putValue stuff I have to use... Still...I
don't know. Help dosn't say what it is for.
And I still have that error above that somehow prohibits me from trying and
doing anything...

I really hope someone can help me on this...



Regards
Thomas Schulz
Technical Details
Message-ID: <3b23a370_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,55ff5afacc3b5bfa,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-10 09:46:25 PST
From: "Thomas Schulz" <dk_sz@hotmail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: I've tryed and tryed but I don't understand this error
Date: Sun, 10 Jun 2001 18:43:49 +0200
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 195.215.248.157
Message-ID: <3b23a370_1@dnews>
X-Trace: dnews 992191344 195.215.248.157 (10 Jun 2001 09:42:24 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews