Article View: pl.comp.lang.java
Article #153831Re: Rozróżnianie przycisków
From: Borneq
Date: Mon, 26 Aug 2013 00:06
Date: Mon, 26 Aug 2013 00:06
14 lines
1531 bytes
1531 bytes
Użytkownik "J-23" <baczeklu@o2.pl> napisał w wiadomości news:kvdv7p$6v6$1@mx1.internetia.pl... > Nie znam Swing co prawda ale wydaje mi się nic prostrzego do robic Tag :) > > Dziedzicz po klasie JButton i jazda do przodu Tak, ale jest jedna rzecz, aby w actionPerformed(ActionEvent e) chciało być zwrócone przez e.getActionCommand(). Nie chciałem aby to był tekst na buttonie, ale wystarczy: ----------------------------> setActionCommand <------------- np: buttons[i].setActionCommand(Integer.toString(i)); wtedy tagiem będzie stringowa postać lliczby Pozdrawiam
Technical Details
Message-ID:
<kve677$mrr$1@node1.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailReferences:
<kvagtq$uai$1@node1.news.atman.pl> <kvdv7p$6v6$1@mx1.internetia.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: "Borneq" <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.lang.java Subject: Re: Rozróżnianie przycisków Date: Mon, 26 Aug 2013 02:06:59 +0200 Organization: ATMAN - ATM S.A. Lines: 15 Message-ID: <kve677$mrr$1@node1.news.atman.pl> References: <kvagtq$uai$1@node1.news.atman.pl> <kvdv7p$6v6$1@mx1.internetia.pl> NNTP-Posting-Host: 91.239.205.62 Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1377475623 23419 91.239.205.62 (26 Aug 2013 00:07:03 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Mon, 26 Aug 2013 00:07:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit