butting components right up against each other  
Author Message
Daniel Dyer





PostPosted: 2003-6-27 22:37:00 Top

java-programmer, butting components right up against each other On Fri, 27 Jun 2003 13:29:59 GMT, Roedy Green <email***@***.com> wrote:

> On Fri, 27 Jun 2003 14:06:22 +0100, Daniel Dyer
> <email***@***.com> wrote or quoted :
>
>> Sorry, I didn't mean ipadx/ipady, that won't help. You certainly
>> shouldn't need to use absolute positioning though. Do you have any
>> sample code to show us?
> I just wanted to put a string of JTextFields with black backgrounds
> right against each other so they look like one continuous field.

Have you tried setting the borders on the text fields to null? Maybe it's
the borders that make it look like there's a gap. Have you tried a
different layout (maybe try GridLayout, just to see if it looks the same,
it's much simpler so it will be easier to spot if you've done something
wrong).

Dan.

--
Daniel Dyer
Empathy Software (http://www.empathysoftware.com)


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 80,000 Newsgroups - 16 Different Servers! =-----
 
JuddMan!





PostPosted: 2003-6-27 23:22:00 Top

java-programmer >> butting components right up against each other
"Daniel Dyer" <email***@***.com> wrote in message
news:oprrfj69lziihdmk@localhost...
> On Fri, 27 Jun 2003 13:29:59 GMT, Roedy Green <email***@***.com> wrote:
>
> > On Fri, 27 Jun 2003 14:06:22 +0100, Daniel Dyer
> > <email***@***.com> wrote or quoted :
> >
> >> Sorry, I didn't mean ipadx/ipady, that won't help. You certainly
> >> shouldn't need to use absolute positioning though. Do you have any
> >> sample code to show us?
> > I just wanted to put a string of JTextFields with black backgrounds
> > right against each other so they look like one continuous field.
>
> Have you tried setting the borders on the text fields to null? Maybe it's
> the borders that make it look like there's a gap. Have you tried a
> different layout (maybe try GridLayout, just to see if it looks the same,
> it's much simpler so it will be easier to spot if you've done something
> wrong).
>

also try FlowLayout.