Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #729

Re: coordinate system and

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: coordinate system and
Message-ID <1169172322.607645.23020@q2g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <5jVrh.1102$j26.658@newsfe03.lga>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Jeff Higgins wrote:

> Will someone explain what I'm doing wrong?

I suspect you are doing a lot of things wrong,
but since I had no idea what you are attempting
to achieve, it is hard to say exactly what..

OTOH, the reason the lines are not 'aligned' is
that the JPanel has a default layout of FlowLayout.
Add a call to..

  setLayout(new BorderLayout());

..in the the constructor of Ruler - and the red/black
lines will then 'align'.

Andrew T.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

coordinate system and pai "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: coordinate system and "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: coordinate system and "Jeff Higgins" <jeff.higgins@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web