Results 1 to 6 of 6
  1. #1
    NotTooOld is offline Hostage
    Join Date
    Apr 2013
    Location
    China
    Posts
    128
    Rep Power
    0

    Default Maybe an Advanced Question

    This might better be asked in the advanced java section, but since I'm a noob...

    I have all but finished a month-long project and now realize that some users may want to use a giant-screen TV as a monitor. (Some classrooms use one screen at the front of the class) What is the best way to resize EVERYTHING in a frame? (buttons, textfields, FONTS... everything) Is it even possible, or am I back to square one?

    FYI: The program works and looks good on screens from 15" 800x600 up to 23" 1280x1024. I think only the resolution really matters, not the size, but I have no idea what resolution a big screen TV is.

    Ideas please.
    Last edited by NotTooOld; 05-10-2013 at 11:12 AM.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: Maybe an Advanced Question

    No, it isn't an advanced question and the answer is LayoutManagers.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    NotTooOld is offline Hostage
    Join Date
    Apr 2013
    Location
    China
    Posts
    128
    Rep Power
    0

    Default Re: Maybe an Advanced Question

    Quote Originally Posted by JosAH View Post
    No, it isn't an advanced question and the answer is LayoutManagers.

    kind regards,

    Jos
    Kind of a quick answer. Mind telling me which LayoutManager will adjust my font sizes for me based on screen resolution?

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: Maybe an Advanced Question

    Quote Originally Posted by NotTooOld View Post
    Kind of a quick answer. Mind telling me which LayoutManager will adjust my font sizes for me based on screen resolution?
    If you had read the API documentation for the LayoutManager interface (which obviously you haven't) you would've realized that a LayoutManager manages the (relative) sizes of Components on your screen. A Font isn't a Component, so a Font isn't managed by a LayoutManager; the size of a Font depends on the DPI (Dots Per Inch) of a screen. See what a Toolkit can do for you. And please, please, do read the API documentation before you start banging your keyboard and come here again because you're stuck.

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: Maybe an Advanced Question

    Assuming the TVs are 1080p, then there's not a huge difference between 1280x1024 for your 23" monitor and the 19201080 of the HD TV.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default Re: Maybe an Advanced Question

    Quote Originally Posted by AhJava View Post
    I dont like some of the elitist comments from people on here, this is clearly the new to java section, no need to act like a twat with people who ask a simple question and just want to learn.

    Learn to Communicate.
    It isn't a shame to be new to a language; everybody has to start somewhere/sometime; it is a shame that a person being new to a language and 'eager to learn' simply refuses to read the tutorials for the language; there is no excuse for that. This is not a forum for communicating to/with people who are too lazy to study; period.

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Options...Might be advanced rather than new xD
    By spiil778 in forum New To Java
    Replies: 3
    Last Post: 02-20-2013, 08:30 PM
  2. Advanced design
    By dominapector in forum AWT / Swing
    Replies: 3
    Last Post: 11-24-2011, 01:26 AM
  3. Advanced extends and implements
    By V1C3M4N in forum Advanced Java
    Replies: 15
    Last Post: 11-17-2010, 01:28 PM
  4. Advanced Looping
    By nuggetman4 in forum New To Java
    Replies: 1
    Last Post: 05-10-2010, 06:54 AM
  5. Java arrays (not sure if this question is advanced)
    By aga010607 in forum Advanced Java
    Replies: 1
    Last Post: 11-24-2009, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •