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


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

Re: coordinate system and

From "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
Subject Re: coordinate system and
Message-ID <13Wrh.22123$cv2.10007@newsfe13.lga> (permalink)
Newsgroups comp.lang.java.gui
References <g0Wrh.71$Xr6.22@newsfe02.lga>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Jeff Higgins wrote:
> Andrew Thompson wrote:
>> Jeff Higgins wrote:
>>
>>> Will someone explain what I'm doing wrong?
>>  setLayout(new BorderLayout());
>>
>> ..in the the constructor of Ruler - and the red/black
>> lines will then 'align'.
>>
>> Andrew T.
>>
> Thanks for the help
> much appreciated.
> JH 
> 
> 

You might also move your drawing code from paint() to paintComponent() 
for Swing components.

-- 

Knute Johnson
email s/nospam/knute/

---
 * 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 | NextNext in thread | Find similar | Unroll thread


Thread

Re: coordinate system and "Knute Johnson" <knute.johnson@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