Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. java window not expanding on mac - possible code to expand window?

java window not expanding on mac - possible code to expand window?

Scheduled Pinned Locked Moved Java
helpjavatestingbeta-testingtutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vixanna
    wrote on last edited by
    #1

    Hello, I have a java program that runs/looks fine in windows however the "window" or the area of the screen containing the program remains small when viewing on a mac. The small size is causing fields to be truncated. For example part of the date of birth is not visible. I have googled the issue and noticed that users of yahoo games are having the same issue with java and macs. The reason I posted this in the java forums is I was wondering if there is any java code I can include to force the window to expand on a mac? The mac I am testing this on has the Lion os and java version (well apple's version) 634. Thank You for your help, Vix

    J L 2 Replies Last reply
    0
    • V Vixanna

      Hello, I have a java program that runs/looks fine in windows however the "window" or the area of the screen containing the program remains small when viewing on a mac. The small size is causing fields to be truncated. For example part of the date of birth is not visible. I have googled the issue and noticed that users of yahoo games are having the same issue with java and macs. The reason I posted this in the java forums is I was wondering if there is any java code I can include to force the window to expand on a mac? The mac I am testing this on has the Lion os and java version (well apple's version) 634. Thank You for your help, Vix

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      I believe you can detect the type of OS and VM by looking at the system variables. Look at System.getenv() or System.getProperties(). Just enumerate through either list to see what is in there.

      1 Reply Last reply
      0
      • V Vixanna

        Hello, I have a java program that runs/looks fine in windows however the "window" or the area of the screen containing the program remains small when viewing on a mac. The small size is causing fields to be truncated. For example part of the date of birth is not visible. I have googled the issue and noticed that users of yahoo games are having the same issue with java and macs. The reason I posted this in the java forums is I was wondering if there is any java code I can include to force the window to expand on a mac? The mac I am testing this on has the Lion os and java version (well apple's version) 634. Thank You for your help, Vix

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Following on from jschell's answer the values that will be most useful are

        os.arch
        os.name
        os.version

        which are returned by the System.getProperties() method.

        speaking as ...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups