Article View: borland.public.jbuilder.java.language
Article #366Professional usage of Swing
From: Thomas Arend
Date: Sun, 01 May 2005 14:50
Date: Sun, 01 May 2005 14:50
22 lines
1960 bytes
1960 bytes
I have once again one of these questions dealing with the professional usage of the advices of school-books about java. So here it is: I try to implement an application, that in the whole manipulates a certain class A. That means every action in the gui is to manipulate the central object. I have implemented the manipulation of the object in an apllication that is to be used on the command-line. Now I would like to use swing-components. But in which class do I now create the central object? Is it the "main" part, where I normally would only create the Jframe an call frame.show; is it in the Frame while construction it or is it in the content Pane in the JPanel, where I also implement the Buttons an so on? And how do I make the central object known to all components of the GUI (iow: Where do I implement the call of the methods of the object?) A long question, but as I said: My books only tell me where it is posible, but not what is best. Thanks Thomas
Technical Details
Message-ID:
<4274ed65$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,ee5938833f2078a1,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thomas Arend" <thomas.arend@gmx.de> Newsgroups: borland.public.jbuilder.java.language Subject: Professional usage of Swing Date: Sun, 1 May 2005 16:50:46 +0200 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 80.142.71.41 Message-ID: <4274ed65$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114959205 80.142.71.41 (1 May 2005 07:53:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail