Article View: borland.public.jbuilder.java.language
Article #207Good practise
From: Gargoyle
Date: Sun, 16 Jul 2006 09:05
Date: Sun, 16 Jul 2006 09:05
14 lines
1506 bytes
1506 bytes
New to coding in Java. I have a constructor that sets up a JFrame with panels, buttons, etc. and I want to disable some of the buttons when the frame first appears. I will also need to disable selected controls during further processing, probably using a purpose-built method. I know how to do this. Don't want to start a heated debate over this but... My question: is it acceptable programming practise to invoke my purpose-built method from within a constructor? Thanks.
Technical Details
Message-ID:
<730kb21hq4j87isdi0g432l97pf612cs9i@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe6-gui.ntli.net.POSTED!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,378c19f6e067d748,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe6-gui.ntli.net.POSTED!53ab2750!not-for-mail From: Gargoyle <nobody@getstuffed.com> Newsgroups: borland.public.jbuilder.java.language Subject: Good practise Message-ID: <730kb21hq4j87isdi0g432l97pf612cs9i@4ax.com> X-Newsreader: Forte Free Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 14 Date: Sun, 16 Jul 2006 09:05:46 GMT NNTP-Posting-Host: 82.20.30.147 X-Complaints-To: http://www.virgin.net/netreport X-Trace: newsfe6-gui.ntli.net 1153040746 82.20.30.147 (Sun, 16 Jul 2006 10:05:46 BST) NNTP-Posting-Date: Sun, 16 Jul 2006 10:05:46 BST Organization: Virgin Net Usenet Service