Article View: borland.public.jbuilder.java.swing
Article #237Re: Swing Problem
From: marcellovin.martinelli
Date: Sat, 10 Mar 2007 18:10
Date: Sat, 10 Mar 2007 18:10
30 lines
2338 bytes
2338 bytes
On Mar 10, 12:48 am, "Paul Nichols[TeamB]" <p...@comp.net> wrote: > marcellovin.martine...@gmail.com wrote: > > Hi, > > > i've created a GUI for my application through Swing components > > i've exported as an executable jar and i tried to run my app on others > > computers > > on a Windows OSx computer i found a problem > > some frames appear to be empty or black ( -.- ) and if i resize them, > > jbutton and text areas ( and all others Swing components) appear. > > I've set components position through setBounds() method > > i would like to ask if there is a method to set the absolute position > > of my swing components ( i thought setBounds() was up to this but - > > _- )? > > What Layout Manager are you using? Please do not tell me XYLayout, > because you will always have this problem. no layout i add components in this way jPanel.add(component_name,null); and then sets position with component_name.setBounds(x,y,width,height); that's way changing screen resolution all mess:P thx for your tip :p
Technical Details
Message-ID:
<1173550242.640624.75120@30g2000cwc.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!30g2000cwc.googlegroups.com!not-for-mailReferences:
<1173199960.373362.108200@n33g2000cwc.googlegroups.com> <45f1f240$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,aa9305e806396af8 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!30g2000cwc.googlegroups.com!not-for-mail From: "marcellovin.martinelli@gmail.com" <marcellovin.martinelli@gmail.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Swing Problem Date: 10 Mar 2007 10:10:42 -0800 Organization: http://groups.google.com Lines: 31 Message-ID: <1173550242.640624.75120@30g2000cwc.googlegroups.com> References: <1173199960.373362.108200@n33g2000cwc.googlegroups.com> <45f1f240$1@newsgroups.borland.com> NNTP-Posting-Host: 213.156.52.125 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1173550249 7150 127.0.0.1 (10 Mar 2007 18:10:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 10 Mar 2007 18:10:49 +0000 (UTC) In-Reply-To: <45f1f240$1@newsgroups.borland.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070302 Ubuntu/dapper-security Firefox/1.5.0.10,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 30g2000cwc.googlegroups.com; posting-host=213.156.52.125; posting-account=c7FRHQwAAADwNN_BialGuZGaOW2KVgCq