[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [JAVA] Desktop storlket



Er det ikke noget i denne stil du efterlyser?

//
// Output is something like this:
//	<< Screen size = java.awt.Dimension[width=1024,height=768] >>
//
import java.awt.*;

public class HalloWorld {
  public static void main (String[] args) {
		System.out.println("Screen size = " +
Toolkit.getDefaultToolkit().getScreenSize());
  }
}

Med venlig hilsen
Klaus


---Peter Schuller <sslug@sslug> wrote:
>
> Hej!
> 
> Vet någon hur man tar reda på hur stor desktop:en är? Jag vill kunna
placera
> JFrames i mitten av skärmen, så att wm:en inte lägger den uppe i
vänstra hörnet
> eller någonting i den stilen :)
> 
> Tack!
> 
> / Peter Schuller
> ----------------
> E-Mail: sslug@sslug
> Web: http://hem.passagen.se/petersch
> 
> 

==
Solaris & NT at work - because I have to.
Linux at home - because I want to.



_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 19:03 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *