Precise positioning layout query

dragon_at_netyp.com.au
Date: 03/23/05


Date: 22 Mar 2005 22:39:30 -0800

For self-educational reasons, I'm working on a calculator applet. My
motive is to supplement the Java programming I learned at university by
writing a program that requires me to learn a little more.

Right now I'm stuck on layout. In broad terms, my query is this: if I
have a small JPanel inside a larger JPanel, and I want the small panel
to be positioned at a precise location (specified in pixels) inside the
large one, and the large panel contains a background picture
implemented as an Image, how do I achieve this?

The current development version of the applet can be found at
<http://web.netyp.com/member/dragon/java/calc/calculator.htm> and on
that page I have written a more detailed description of my query.

Thanks,

Adrian.



Relevant Pages

  • Re: Precise positioning layout query
    ... I'm working on a calculator applet. ... > motive is to supplement the Java programming I learned at university by ... > have a small JPanel inside a larger JPanel, and I want the small panel ...
    (comp.lang.java.gui)
  • Re: show 16bit greyscale BufferedImage on screen
    ... >it to screen (using jpanel). ... But it seems that drawImage can handle only ... Most graphics modes can't handle more than 8 bits per component ... Java programming tips: http://jiu.sourceforge.net/javatips.html ...
    (comp.lang.java.gui)