TS3274 Set the size of screen

How do I set size of my screen?

From your other post I assume you have zoomed the screen, if so: double tap the screen with 3 fingers.

Similar Messages

  • How to set the size of JTextPane according to the size of text??

    hello
    how can i set the size of JTextPane according to the size of text it would contain in such a way that JTextPane should not have ScrollBar.

    StanislavL wrote:
    width should be defined for your container width. suppose you have a very long row of text. Widht full screen widht it wraps into 2 lines but if you set widht of your window to half screen widht there should be 4 lines.
    But you can use the same code and get preferred widht as well.u mean like this :
    objTextPane.getParent().getWidth();Edited by: 811243 on Sep 6, 2011 5:32 AM

  • How to set the size of a Font in Pixel?

    Hi,
    i know how to get the screen resolution of the current monitor and I know how to use Fonts (and I know how to read the API, but that didnt help).
    Is there a way to set the size (or at least the height) of a Font in pixel rather then in points?
    All I actually need is how many pixels the height of my String will be when I print it on the screen.
    I use Swing and drawString(...) to draw my String (this information shouldnt matter, but just in case).
    thanx

    Hi,
    search doc about FontMetrics, you'll find infos about how to get the font height... If I remember well, you need to get the Graphics of the component, then call getFontMetrics() or getFontMetrics(font) to obtain the metrics, then call getHeight() to know the font height...

  • How to set the size of a JTabbedane to the size of the frame

    I have a tabbed pane in a frame, I would like to know how to set the size of the tabbed pane, so that it occupies the whole of the frame which has been set to screen size.
    Thanks

    Is it not possible to use it with a GridBagLayout?Your question was "How do I get a tabbed pane to take all the space of the frame"?
    You where given the answer. Did you try it? Did it work? Then why are you questioning the suggestion?
    Its one line of code if you use a BorderLayout which by the way was specifically designed for this purpose.
    Yes you can do it with a GridBagLayout with about 5 lines of code.
    So the question is why would you want to write 5 lines of code when you can use one?
    If your question was "How do I waste my time forcing the GridBagLayout to size a component to take up all the space of the frame", then you would have received a different answer. (Although most people would have told you to use a BorderLayout anyway, since its easier).

  • How can I set the size of an image in java?

    How can I set the size of an image in java? I have to choose the width and height of image...thanks to everybody...sorry for my english :-)

    Hi 43477
    Can you provide more details, do you want to setsize to display an image on a screen of when saving image etc?
    PS.
    There is a good invention called googlegoogle is good, but sometimes it's better to use more specific search, there is a search field avove on this page :)

  • Dynamically set the size of the VIEW

    Hello,
    I am looking to set the size of my VIEW which is called in following way:
    IF iv_show_in_pop_up EQ abap_true.
        wd_this->raise_simulation_pop_up( ).
    I want to set of the size of the VIEW if it a pop-up.
    ENDIF.
    How can i get access to the view and set the size. Please Help.
    Regards,
    Piyush

    Hi Piyush,
    Check what Anzy has to say in [here|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=3289078]:
    "You have to go to specific view , which will be embedded in the pop up window.In the view go to ROOTUIELEMENTCONTAINER and set the width and height.This way you can restrict the size of the pop up window."
    This is [another approach|https://forums.sdn.sap.com/click.jspa?searchID=18635339&messageID=5836334] suggested by Abhimanyu Lagishetty for dynamically setting the size of your window:
    "Pass the URL like this to the create_external_window
    javascript:window.moveTo(0,0);window.resizeTo(screen.width,screen.height);window.location.href="http://google.co.in";
    Instead of http://google.co.in write your URL it will maximize the window"
    Regards,
    Uday

  • Setting the size of a JComponent which is not currently shown

    Hi,
    I got a problem to set the size of a maybe JButton, before the button is displayed on screen.
    Assume i got a button without any text.
    Then the button length and height is 0 before the button
    is displayed.
    But i don't want to set the width and height of the
    button dynamically in the paint method for performance
    reason.
    I got only the trick to set a JButton with like this
    JButton b = new JButton("                            ");But this is not nice.
    I found no method in a JComponent to set the
    size of a component static in the constructor.
    The usage of setPrefferedSize() etc. don't work
    until the component is not displayed.
    So is there a way to compute the size of a Component
    before displaying?
    regards
    Olek

    It seems that there is no way to calculate the size via legacy methods.as already mentioned, it has a preferredSize and all you need do is something like this
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        f.getContentPane().add(getPanel("Hello"),BorderLayout.NORTH);
        f.getContentPane().add(getPanel("Hello World"),BorderLayout.CENTER);
        f.getContentPane().add(getPanel("Goodbye"),BorderLayout.SOUTH);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public JPanel getPanel(String buttonText)
        JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
        JButton btn = new JButton(buttonText);
        Dimension d = btn.getPreferredSize();
        JLabel label = new JLabel("w = "+d.width+", h = "+d.height);
        p.add(label);
        p.add(btn);
        return p;
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }[EDIT]
    just reread your first post, you want to set (not get) the size (thwak!, uppercut)
    first reply amended
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame();
        f.getContentPane().add(getPanel(62,26),BorderLayout.NORTH);
        f.getContentPane().add(getPanel(99,26),BorderLayout.CENTER);
        f.getContentPane().add(getPanel(83,26),BorderLayout.SOUTH);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public JPanel getPanel(int w, int h)
        JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
        JButton btn = new JButton();
        btn.setPreferredSize(new Dimension(w,h));
        Dimension d = btn.getPreferredSize();
        JLabel label = new JLabel("w = "+d.width+", h = "+d.height);
        p.add(label);
        p.add(btn);
        return p;
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }Edited by: Michael_Dunn on Nov 6, 2007 4:40 AM

  • Can I set the size of a GUI control in centimeters?

    Hi,
        I know that I can get the resolution of the monitor, and with that set the display size of a control in a GUI. However, the real size (in centimeters) depends actually on the sizes (in centimeters) of the screen. Can I get that, programatically?
    Solved!
    Go to Solution.

    After writing #include <windows.h> at the beginning of the program, I wrote the following function called by the main.
    void GeometriaGUI(){
    HDC dc;
    double xPixelsPerCentimer, yPixelsPerCentimer,xPixelsPerMilimeter, yPixelsPerMilimeter;;
    dc = GetDC (NULL);
    xPixelsPerCentimer = GetDeviceCaps (dc, LOGPIXELSX) / 2.54;
    yPixelsPerCentimer = GetDeviceCaps (dc, LOGPIXELSY) / 2.54;
    xPixelsPerMilimeter= GetDeviceCaps (dc, HORZRES)/GetDeviceCaps (dc, HORZSIZE);
    yPixelsPerMilimeter= /*GetDeviceCaps (dc, VERTRES)/GetDeviceCaps (dc, VERTSIZE);
    //ReleaseDC (dc);
    SetCtrlAttribute (panelHandle, PNL_INSTR_2, ATTR_HEIGHT, (int)(40.0*yPixelsPerMilimeter));
    SetCtrlAttribute (panelHandle, PNL_INSTR_2, ATTR_WIDTH, (int)(40.0*yPixelsPerMilimeter));
     First, I eliminated the ReleaseDC line because it caused an error "Type error in argument 1 to `ReleaseDC'; found 'HDC' expected 'HWND'." at compile time.
    If I use xPixelsPerCentimeter to set the size of a control in the GUI, and set a value of 4*xPixelsPerCentimeter, I get, after measuring with a ruler, only 3.5 cm.
    If I use 40*xPixelsPerMilimeter,  I get a size of 1.8 cm. In both cases, 4 cm are expected.
    If I look at the values given the Windows sdk functions, the ones given by the resolution are atribute are fine (1280 x 800). However, the ones given by HORZSIZE and VERTSIZE attributes don't match what I measure physically. The sizes given are larger than the computer itself (a notebook with only 1 monitor).
    The idea is that the size of certain controls are constant across any monitor used. But the function, unfortunately, is not giving the expected results.

  • Frame to default to the size of screen

    How can I make a frame default to the size of a screen?

    I use the following to size a frame to the screen size:
    // Get the current screen size
    Dimension dimMonitor = Toolkit.getDefaultToolkit( ).getScreenSize();
    // Set the size of the frame
    setSize(dimMonitor.width , dimMonitor.height);

  • How do you set the size / bounds of a waveform chart at run time?

    I have a plot area that I would like to fill with as many waveform charts as the user specifies (at run time). The "bounds" property is read only and I haven't noticed an additional "size" property for a waveform chart as there is for a button. Is there a way to set the size of a waveform chart at run time, and if not, why not? (Labview 6.1)

    Look at it a little more carefully, I suspect that your assumption is only half wrong. The property does only resize the plot area--LV resizes the frame to fit the resized plot on it's own.
    You'll need to bear this in mind when you're figuring-out what size to set the property to.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • How can I set the size of the font so I don't have to change every new word?

    How can I set the size of the font so I don't have to change every new word?

    In what application?

  • How to set the size of printing subject

    I have a deskjet 3520 all in one and my computer is a laptop dv6 with windows7 prof. 64bit.
    I want to print out PCB traces so that I can make my own but I don't know to how set the size
    with this printer. They take up the whole page when I want them to be 2.35x3.35.
    Don't know if this can be done with this printer.
    Any help would be apreciated.
    This question was solved.
    View Solution.

    Can you post a link to a sample, or upload here a sample?  That would make it easier to debug what is going on.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How to set the size of an open dialog

    HI Everyone:
    I cannot set the size of the open dialog.
    I create a menu and menu item called "open"
    The menu item "open" will call OpenFile().
    However, I cannot set the size of the open dialog
    Everytime when the open dialog pops up
    the size isn't 500 x 500.
    Does anyone know what's wrong with this program ?
    Thanks a lot,
    Rodger
    ================================================================
    public void OpenFile(){
    JFileChooser fc = new JFileChooser();
    fc.setSize(new Dimension(500,500));
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    fc.showOpenDialog(this);
    ================================================================

    Try this and then tell us if it worked:
    JFileChooser fc = new JFileChooser();
    fc.setPreferredSize(new Dimension(500,500));
    fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
    JDialog d = new JDialog(new JFrame());
    d.setSize(500, 500);
    d.getContentPane().setLayout(new FlowLayout());
    d.getContentPane().add(fc);
    d.setVisible(true);

  • How to set the size of SUM()/SUM() of NUMBER Tyep?

    I met the oracle truncation error when I post the
    SUM(a field)/SUM(b field), a and b field are NUMBER Type
    From the OCI Doc, Numbers with up to 38 digits precision.
    and I set the size of data buffer 41 for NUMBER TYPE.
    (for example)
    rc = OCIDefineByPos( hstmt, &m_pDefine, ((CEBOracle *)pDatabase)->m_hpErr, index,
                   (dvoid *) m_lpszBindData, m_nBufSize+1, SQLT_STR,
                   (dvoid *) m_cbIndicator, (ub2 *) 0, (ub2 *) 0, OCI_DEFAULT);
    I always set the output datatype as SQLT_STR
    and m_nBufSize is 41 for NUMBER Type
    my client met the error when the result is 0.00012345678912345678912345678912345678912
    I think that it's not a solution that just enlarge the number form 41 -> 45
    How can I avoid this problem when user send the SQL Statement that the result has unlimited decimal number?
    Thank you in advancd

    ORA-01406 fetched column value was truncated
    I found the reason of that problem.
    I migrated from OCI Ver7 to Ver8
    If I set the buffer size to 10 (actually 40 in my program) and the result was
    0.0000000000000000001
    When I debuged the output buffer
    The result was 1.0E-19
    but now 0.00000000 and truncation error
    how to change floating point and scientific expression automatically depend on the result like OCI Ver7 and SQL PLUS?
    I changed define function
    odefin(m_hstmt, ii+1, (UCHAR *) m_lpszData[ii], m_lpLength[ii]+1, SQLT_STR, -1, m_lpcbValue[ii], 0, -1, -1, 0, 0);
    to
    m_rc = OCIDefineByPos( m_hstmt, &pDef, ((CEBOracle*) m_pDatabase)->m_hpErr, ii+1,
              (dvoid *) m_lpszData[ii], m_lpLength[ii]+1, SQLT_STR,
              (dvoid *) m_lpcbValue[ii], (ub2 *) 0, (ub2 *) 0, OCI_DEFAULT );

Maybe you are looking for

  • File Split based on Condition

    Hello I have a scenario where I get a file and need to split it into two based on a condition. Is it possible to accomplish this scenario at the file adapter configuration or do I need a mapping for this. Sample File  ABC1234asdfasfasdfasdfsdfasdfsdf

  • Need help in these topics. Or links please

    Hi guys, Could you tell me a resource where I can find information on these. 1. Programs written in java to manipulate on String functionaliy like String concat, substring, length and other string methods without using String's Builtin functions. 2.

  • Wont accept Payment details in Istore

    Hello, I just got an ipod touch for Xmas yesterday. I want to download some free apps from the Istore. When i register it just wont accept my payment information. Its 100% correct and i have now inserted the info 10 times. Im quite frustrated. Why wo

  • RDP with shadow switch on 2008 R2

    I have a problem with accessing remote session on Windows Server 2008 R2 by using this command: mstsc /v:172.20.0.1 /shadow:2 Session ID is correct. The command is executed from another 2008 R2 server. On both there is the newest mstsc version 6.3.96

  • Serious iPod problem, I'd be grateful for advice

    a couple of months ago, my iPod video 30G suddenly started acting strange. I am quite sure that the issue is a hardware problem. here it goes: when I play a given song, it will either work fine or stop after a random amount of time, which causes the