Article View: borland.public.jbuilder.java.language
Article #8022Re: Using default JBuilder projects
From: paul nichols
Date: Thu, 26 Apr 2001 20:58
Date: Thu, 26 Apr 2001 20:58
58 lines
3450 bytes
3450 bytes
Dave, The layout managers should be changed in the Object Inspector from the Frame (on AWT, JFrame with Swing). Look in the lower left hand corner in the Structure Pane for "this", or the name of your AWT Frame class (Make sure that you have chosen the AWT frame from the Project Pane). Highlight "this" and look in the Object Inspector. There you will see the layout property and you can make "this" null using the properties displayed in the Object inspector drop down combo box. The same is true for Panels /JPanels. The Layout Manager will determine where and at what place any control owned by the Owner Class is placed. There are only three exceptions to this; actually two (one is a great way to choose after design), and depnding upon which Layout Manager is chosen, this will determine where the controls are displayed/placed. Unless you are very familiar with LayoutManagers, I would suggest trying to use the Object Inspector and the Design mode to get your Frames/JFrames, Nested Panels, etc. in the position you want them to display the beans they own. Many Delphi and BCB users greatest frustrations, at first attempts with JBuilder (or any Java IDE), is with LayoutManagers. It will take some time to getting used to, but as we disclose in our site, the reasons for them are obvious. Hope this helps. P.S. You can change the LayoutManagers manually, but you will not know where the controls will be placed outside of runtime and/or design time. If you choose the worng ones, yuor code will neither display in the Display or Design Pane, nor run. That is why I issue the caution above. To set manually to null you would do the following: this.setLayout(null); I warn you however, if it isn't correct, you will neither be able to display anything or run it! It must be precise! "Dave Cullen" <no_spam@mail.com> wrote in message news:3ae88466_1@dnews... > > www.computer-logic.net/javaDelphi > > Very nice site, thanks. But when I try to follow the step-by-step, it gets > to where I'm supposed to be able to change the layout manager to "null", > there are no layout properties to be found anywhere (no beans). If I delete > the border layout stuff in the source, it'll default to FlowLayout, right? > > I wanna be able to position my AWT objects with setPosition(). > > drc > > >
Technical Details
Message-ID:
<3ae88c18_1@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ae83f63$1_1@dnews> <3ae870aa$1_1@dnews> <3ae88466_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e79ca946d42bc2b0 X-Google-Attributes: gidf74b3,public X-Google-Thread: f7754,e79ca946d42bc2b0 X-Google-Attributes: gidf7754,public X-Google-ArrivalTime: 2001-04-26 14:28:01 PST From: "paul nichols" <paul@computer-logic.net> Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.students References: <3ae83f63$1_1@dnews> <3ae870aa$1_1@dnews> <3ae88466_1@dnews> Subject: Re: Using default JBuilder projects Date: Thu, 26 Apr 2001 16:58:44 -0400 Lines: 60 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: 24.159.98.249 Message-ID: <3ae88c18_1@dnews> X-Trace: dnews 988318744 24.159.98.249 (26 Apr 2001 13:59:04 -0700) Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews