> ciao ho un problemino con un interfaccia grafica.
>
[quoted text clipped - 8 lines]
>
> Grazie mille della disponibilit?
>> ciao ho un problemino con un interfaccia grafica.
>>
[quoted text clipped - 8 lines]
>>
>> Grazie mille della disponibilit?
as i stated, we don't speak italian.
i can guess though:
you have a panel called graphics and your problem is, that
the painting often is outside the monitor, now you thought of inserting the
panel
into a JScrollPane, but it doesnt resolve the problem.
if this is more or less the correct translation, i would try this:
//this here refers the the class implementing JFrame
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
//set your window size depending on your screensize, factor is for example 2
this.setSize(new Dimension(screenSize.getWidth()/factor,
screenSize.getHeight()/factor);
//then add the JScrollPane which contains your panel
myScrollBar.add(myPane);
this.getContentPane.add(myScrollBar);
andreas
Andrew Thompson - 29 Sep 2004 20:18 GMT
> as i stated, we don't speak italian.
> i can guess though:
Various language tools can help you get pretty
close guesses in a technical discussion..
<http://www.google.com/language_tools?hl=en>
The translations are somtimes quite funny, but usually
understandable if the OP has taken care to express themselves
properly in their native tongue.

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
andreas - 30 Sep 2004 00:20 GMT
> Various language tools can help you get pretty
> close guesses in a technical discussion..
[quoted text clipped - 3 lines]
> understandable if the OP has taken care to express themselves
> properly in their native tongue.
and here is the result:
hello I have a problemino with a graphical interface. I have a panel on
which Graphics(poich? callback I must design to us). My problem is that a
lot often the design goes outside from the screen, then has thought to
insert the panel within to a JScrollPane. but the problem is not resolved.
Sapete gives one to me straight? Thanks thousands of the availability
andreas
Andrew Thompson - 30 Sep 2004 00:58 GMT
A) setPreferredSize()
(snip translation)
Thanks andreas, I didn't have time with that one, but if
I read it right, the OP needs to lock the size of the
container/panel on which they are drawing.

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane