Safari content width (NOT window width!)

Okay, so that none of you are confused: I know how to make my Safari browser window as wide as my screen, and I do it for my own reasons. I like it that way.
This is not a philosophical question: How do I make the content match the width of the window?
For reference: On the PC at work, when I open the New York Times it fills the whole screen, soup to nuts. On my Mac at home, when I open the New York Times it only fills about half the width of the page, leaving a sea of white unused browser to the left and right of the content. I hate having the computer up to my face to be able to read it, and I feel that if the width of the page were to fill the screen it would not be an issue; it isn't at work.
Since I can't find the answer via google, I'm hoping I can get some help here. Remember, I just want the website to match the width of my screen. I know that some websites automatically do this. Basically I just want to zoom.

David Lewis15 wrote:
For reference: On the PC at work, when I open the New York Times it fills the whole screen, soup to nuts. On my Mac at home, when I open the New York Times it only fills about half the width of the page, leaving a sea of white unused browser to the left and right of the content.
It sounds like your PC's monitor at work is smaller and/or has a lower screen resolution (i.e. renders objects and text larger) than your Mac's screen.
I opened your first New York Times link in *Windows Internet Explorer* with the window at my full screen width and this is how it looks:
And this is the same page in *Safari on my Mac*, also with the window at my full screen width, same size screen and same screen resolution:
They look the same, taking up the same amount of page width.
It's not Safari that is rendering things differently than on your PC. I'm almost certain it's that your screen on your PC is a very different size or has very different resolution settings. If so, the actual width in pixels of the window you have open on your PC is much smaller than the width in pixels of the window on your Mac, essentially allowing just that central portion of the page to be visible in your PC's browser window.
On your PC at work, go to the control panel and check the settings in Appearance and Themes, Change the Screen Resolution. What does it say the current screen resolution is? (e.g. 800 by 600 pixels, 1024 by 640 pixels, etc.) Then on your Mac check System Preferences, Displays, in the Display section, and check the resolution setting there. If the Mac's screen resolution is much higher (larger numbers) that explains the difference you're seeing. You' have more pixels to work with on the Mac, so you're seeing more of the web page.
I hate having the computer up to my face to be able to read it, and I feel that if the width of the page were to fill the screen it would not be an issue; it isn't at work.
It sounds like you might be having problems that are not related to the layout of web pages as much as with the size of text and other page elements on your Mac as opposed to your PC? If that's the situation, there are several things you can do to make things easier to read on your Mac. Let me know if that's the problem and I'll go further with that thought.
Message was edited by: Rachel R

Similar Messages

  • Setting Portlet Header Widths (not region widths!)

    Am having trouble with portlet headers / portlets' widths being determined by the text width.
    My region widths are set yet I have noticed that when I show portlet headers the width of the portlet appears to be determined by how many text characters in the header- (not how many text characters in the portlet itself)
    Is there some way I can set the portlet width (as opposed to the region width) to ensure uniformity across my site?
    Any help appreciated!
    Thanks
    Jo

    The user you have responded to is totally unaware of your post as watches on threads only persist for a few weeks. Do not post follow-ups to ancient threads. Many of the participants in such threads will no longer be active on the forum (check the "recent messages" in their profiles).
    Posting follow-ups to ancient threads/departed users is NOT an effective way of getting help:
    <li>Other users may ignore the thread if it is closed
    <li>Your assumption that the questions are related may be incorrect, leading to confusion about the nature of the problem and potential solutions
    <li>Watches on the thread may have expired, so the original participants may be unaware of the new post, or they may no longer be active on the forum
    <li>You have no ability to mark posts as helpful or correct
    Post your question as a new thread, including at least the following information:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    <li>Links to related posts and threads (using the methods in the FAQ)
    Please read the FAQ and forum sticky threads for more information on using this forum effectively.
    Update your forum with a real handle instead of "user11986803".

  • How can I get the width of window?

    Hi. I would like to get the width of window on IE.
    If on Netscape, I can use "window.inner(outer)Width".
    However, I don't know what to do with IE.
    I am sorry that this question might be very begginer.
    Thank you,

    and this is not a question taht in belongs in this forum! it is a IE/IE.Script question. perhaps you find an answer here: http://developer.irt.org/script/window.htm

  • How to fit an image to window width

    hello
    wat is the code for fitting an image to window width in an image monitoring
    system.

    Hi,
    No the problem is not the layout, I am using the lable on a panel with null layout. Probably you dont understand my situation.
    Lets take an exemple:
    -my Lable has a width and a height of 10 cm,
    -the image has a width and a height of 20 cm,
    So I just can see an area of the image of 10x10, the rest is "outside" the lable.
    What I want is to stretch the picture into the lable,i.e. in my case, to "shrink" the picture to the size of the lable, 10x10, when the picture is showed.
    znx

  • How do I find the current browser window width in pixels?

    I'm writing a PHP script that will use the current browser
    window width
    and height, but I don't know how to find that. Is there some
    way to
    capture the width and height of the current window in pixels?
    TIA

    Thanks Micha, you certainly may ask why.
    I posted a message some time ago in the appdev forum about
    the Recordset
    Paging server behavior being geared toward use with tables. I
    was
    frustrated because I wanted to do something with repeated
    div's in a
    liquid site. But the Recordset Paging s.b. locks the number
    of records
    per page to a fixed number. I'm trying to figure out how to
    make the
    records per page a variable that's determined by the window
    width. I've
    created a liquid site with a products page that contains both
    text and
    thumbnail product images. The text occupies 2/3 of the width
    of the
    window, and the div container that holds the floated div
    thumbnails I
    want to account for the other third. The thumbnail div's are
    produced by
    a WHILE statement and I want them to be paged based on the
    number of
    div's that will fit within a container that occupies a
    percent of the
    browser window width. Here's what I've got so:
    $window_size_wide = ; // Current browser window width in px
    $window_size_tall = ; // Current browser window height in px
    $thumb_cont_wide = $window_size_wide * .3; // 30% of window
    width incl.
    padding in px
    $thumb_cont_tall = $window_size_tall * .4; // 40% of window
    height incl.
    padding in px
    $thumb_size_wide = 100; // thumbnail div width incl. margins
    in px
    $thumb_size_tall = 100; // thumbnail div height incl. margins
    in px
    $no_thumbs_wide =
    ceil(($thumb_cont_wide/$thumb_size_wide)-1);
    $no_thumbs_tall =
    ceil(($thumb_cont_tall/$thumb_size_tall)-1);
    $records_per_page = ($no_thumbs_wide * $no_thumbs_tall);
    $offset = ($thispage - 1) * $records_per_page;
    $total_pages = ceil($total_records/$records_per_page);
    etc.
    What I don't know is how to find the current window width or
    height. I
    would also like to know if the $thumb_cont_wide and the
    $thumb_cont_tall
    can be determined in some way based on the div size generated
    through my
    CSS. In other words, I don't want to declare the percent of
    height and
    width in this script, I want to declare it only in my CSS and
    have it
    determined by the browser window width and height. The only
    element I
    want to hard code is the size of the thumbnails as they will
    always be
    the same. It seems to me that something like this could be
    done to make
    recordset paging scalable to match a scalable web page.
    So the question is, can I define a PHP variable based on a
    Javascript
    variable? If so, how? If not, how can I accomplish this? Is
    this just
    not possible?
    Thanks for your help.

  • Fit the image to window width, window height and  the window size

    hi all
    here we wrote the code for "fit the image to window width, window height and the window size". we are facing some problems in it. and all these operations have to perform even after zooming operations are done.if the below code doesnt satisfy kindly provide appropriate code .
    thanks .
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.io.File;
    import javax.swing.filechooser.FileFilter;
    import java.awt.geom.*;
    public class DP extends JFrame implements ActionListener,
                                               MouseListener,
                                               MouseMotionListener {
        private final int PEN_OP = 1;
        private final int CLEAR_OP = 2;
        private int radius;
        private int radius1;
        private int mousex = 0;
        private int mousey = 0;
        private int prevx = 0;
        private int prevy = 0;
        private boolean initialFreeHand = true;
        private boolean initialLine = true;
        private boolean initialEraser = true;
        private int Orx = 0;
        private int Ory = 0;
        private int OrWidth = 0;
        private int OrHeight = 0;
        private int drawX = 0;
        private int drawY = 0;
        private int polyX = 0;
        private int polyY = 0;
        private int eraserLength = 5;
        private int udefRedValue = 255;
        private int udefGreenValue = 255;
        private int udefBlueValue = 255;
        private int opStatus = PEN_OP;
        private int colorStatus = 1;
        private double zoomPercentage=10;
        private Color mainColor = new Color(0, 0, 0);
        private Color xorColor = new Color(255, 255, 255);
        private Color userDefinedColor =
            new Color(udefRedValue, udefGreenValue,udefBlueValue);
        private JButton openButton = new JButton("open");
        private JButton closeButton = new JButton("close");
         private JButton zoominButton = new JButton("ZoomIn");
         private JButton zoomoutButton = new JButton("ZoomOut");
         private JButton zoomto100Button = new JButton("ZoomTo100");
         private JButton fwwButton = new JButton("Fit window width");
         private JButton fwhButton = new JButton("Fit window height");
         private JButton fwButton = new JButton("Fit the window");
        private JButton clearButton = new JButton("Clear");
        private JTextField colorStatusBar = new JTextField(20);
        private JTextField opStatusBar = new JTextField(20);
        private JTextField mouseStatusBar = new JTextField(10);
        private JPanel controlPanel = new JPanel(new GridLayout(18, 1, 0, 0));
        JToolBar jToolbar = new JToolBar();
        private Container container;
        private JScrollBar horizantalSlide=new JScrollBar();
        public BufferedImage image;
        BufferedImage bgImage;
    //    public ImageIcon icon=null;
        JFileChooser fileChooser;
        DrawPanel drawPanel = new DrawPanel(bgImage,zoomPercentage);
        public DP() {
            super("WhiteBoard");
            fileChooser = new JFileChooser(".");
            container = getContentPane();
            container.setBackground(Color.white);
            container.setLayout(new BorderLayout());
            container.add(jToolbar,BorderLayout.NORTH);
            container.add(horizantalSlide);
            jToolbar.add(openButton);
            jToolbar.add(closeButton);
              jToolbar.add(zoominButton);
              jToolbar.add(zoomoutButton);
              jToolbar.add(zoomto100Button);
              jToolbar.add(fwwButton);
              jToolbar.add(fwhButton);
              jToolbar.add(fwButton);
            jToolbar.add(clearButton);
            colorStatusBar.setEditable(false);
            opStatusBar.setEditable(false);
            mouseStatusBar.setEditable(false);
            controlPanel.setBackground(Color.white);
            drawPanel.setBackground(Color.white);
            container.add(controlPanel, "West");
            container.add(drawPanel, "Center");
            openButton.addActionListener(this);
            closeButton.addActionListener(this);
              zoominButton.addActionListener(this);
              zoomoutButton.addActionListener(this);
              zoomto100Button.addActionListener(this);
              fwwButton.addActionListener(this);
              fwhButton.addActionListener(this);
              fwButton.addActionListener(this);
            clearButton.addActionListener(this);
            drawPanel.addMouseMotionListener(this);
            drawPanel.addMouseListener(this);
            addMouseListener(this);
            addMouseMotionListener(this);
            opStatusBar.setText("FreeHand");
            colorStatusBar.setText("Black");
        public void actionPerformed(ActionEvent e) {
            if(e.getActionCommand().equals("open"))
                showDialog();
            if(e.getActionCommand().equals("close"))
                closeDialog();
              if(e.getActionCommand().equals("ZoomIn"))
                   drawPanel.zoom(1);
              if(e.getActionCommand().equals("ZoomOut"))
                   drawPanel.zoom(-1);
              if(e.getActionCommand().equals("ZoomTo100"))
                   drawPanel.zoom(+10);
              if(e.getActionCommand().equals("Fit window width"))
                   drawPanel.fitwindowwidth();
              if(e.getActionCommand().equals("Fit window height"))
                   drawPanel.fitwindowheight();
              if(e.getActionCommand().equals("Fit the window"))
                   drawPanel.fitthewindow();
            if (e.getActionCommand() == "Clear")
                opStatus = CLEAR_OP;
            switch (opStatus) {
                case CLEAR_OP:
                    clearPanel();
        private void showDialog() {
            if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File file = fileChooser.getSelectedFile();
                try {
                    bgImage = ImageIO.read(file);
                } catch(IOException e) {
                    System.out.println("IO error: " + e.getMessage());
                clearPanel();
        private void closeDialog() {
            drawPanel.setVisible(false);
            drawPanel.repaint();
        public void clearPanel() {
            opStatusBar.setText("Clear");
            Graphics g = image.getGraphics();
            g.setColor(drawPanel.getBackground());
            g.fillRect(0, 0, drawPanel.getBounds().width, drawPanel.getBounds().height);
            if(bgImage != null)
                g.drawImage(bgImage, 0, 0, this);
            g.dispose();
            drawPanel.repaint();
        public boolean mouseHasMoved(MouseEvent e) {
            return (mousex != e.getX() || mousey != e.getY());
        public void setActualBoundry() {
            if (mousex < Orx || mousey < Ory) {
                if (mousex < Orx) {
                    OrWidth = Orx - mousex;
                    drawX = Orx - OrWidth;
                } else {
                    drawX = Orx;
                    OrWidth = mousex - Orx;
                if (mousey < Ory) {
                    OrHeight = Ory - mousey;
                    drawY = Ory - OrHeight;
                } else {
                    drawY = Ory;
                    OrHeight = mousey - Ory;
            } else {
                drawX = Orx;
                drawY = Ory;
                OrWidth = mousex - Orx;
                OrHeight = mousey - Ory;
        public void setGraphicalDefaults(MouseEvent e) {
            mousex = e.getX();
            mousey = e.getY();
            prevx = e.getX();
            prevy = e.getY();
            Orx = e.getX();
            Ory = e.getY();
            drawX = e.getX();
            drawY = e.getY();
            OrWidth = 0;
            OrHeight = 0;
        public void mouseDragged(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseReleased(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseEntered(MouseEvent e) {
            updateMouseCoordinates(e);
        public void updateMouseCoordinates(MouseEvent e) {
            String xCoor = "";
            String yCoor = "";
            if (e.getX() < 0)
                xCoor = "0";
            else {
                xCoor = String.valueOf(e.getX());
            if (e.getY() < 0)
                xCoor = "0";
            else {
                yCoor = String.valueOf(e.getY());
            mouseStatusBar.setText("x:" + xCoor + " y:" + yCoor);
        public void mouseClicked(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseExited(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseMoved(MouseEvent e) { updateMouseCoordinates(e); }
        public void mousePressed(MouseEvent e) { updateMouseCoordinates(e); }
        public static void main(String[] args) {
            DP wb = new DP();
            wb.setDefaultCloseOperation(EXIT_ON_CLOSE);
            wb.setSize(1024,740);
            wb.setVisible(true);
        private class DrawPanel extends JPanel {
            private double m_zoom = 1.0;
            private double m_zoomPercentage;
            private BufferedImage m_image;
            double theta = 0;
            double thetaInc = Math.PI/2;
            public DrawPanel(BufferedImage imageb,double zoomPercentage) {
                m_image = imageb;
                m_zoomPercentage = zoomPercentage / 100;
            protected void paintComponent(Graphics g) {
                Graphics2D g2d=(Graphics2D)g;
                if(image == null)
                    initImage();
                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                double x = (1.0 - m_zoom)*getWidth()/2.0;
                double y = (1.0 - m_zoom)*getHeight()/2.0;
                AffineTransform at = AffineTransform.getTranslateInstance(x, y);
                at.rotate(theta,m_zoom*getWidth()/2,m_zoom*getHeight()/2);
                at.scale(m_zoom, m_zoom);
                g2d.drawRenderedImage(image, at);
      public void zoom(int inc) {
            m_zoom += inc * m_zoomPercentage;
            repaint();
              public void fitwindowwidth()
                int w1=drawPanel.getWidth();
                int h1=drawPanel.getHeight();
                BufferedImage image2=image.getScaledInstance(w1,h1,Image.SCALE_DEFAULT);
                drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
               drawPanel.repaint();
              public void fitwindowheight()
           BufferedImage image2=image.getScaledInstance(500,680,1); 
           drawPanel.setImage(iicon);
           drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
           drawPanel.repaint();
              public void fitthewindow()
           BufferedImage image2=image.getScaledInstance(1000,680,1);
           drawPanel.setPreferredSize(new java.awt.Dimension(100,image2.getImage().getHeight(null)));
           drawPanel.repaint();
            private void initImage() {
                int w = getWidth();
                int h = getHeight();
                image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
                Graphics2D g2 = image.createGraphics();
                g2.setPaint(getBackground());
                g2.fillRect(0,0,w,h);
                g2.dispose();
    }

    thank you for giving reply.
    your code is very helpful to us.but i couldn't integrate it in my code.here's my code.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    import java.io.File;
    import javax.swing.filechooser.FileFilter;
    import java.awt.geom.*;
    public class IS extends JFrame implements ActionListener,
                                               MouseListener,
                                               MouseMotionListener {
        private final int PEN_OP = 1;
        private final int CLEAR_OP = 2;
         private     final int DISTORT = 3;
        private final int SCALE   = 4;
        private final int FIT     = 5;
        private final int FILL    = 6;
        int scaleMode = SCALE;
        private int radius;
        private int radius1;
        private int mousex = 0;
        private int mousey = 0;
        private int prevx = 0;
        private int prevy = 0;
        private boolean initialFreeHand = true;
        private boolean initialLine = true;
        private boolean initialEraser = true;
        private int Orx = 0;
        private int Ory = 0;
        private int OrWidth = 0;
        private int OrHeight = 0;
        private int drawX = 0;
        private int drawY = 0;
        private int polyX = 0;
        private int polyY = 0;
        private int eraserLength = 5;
        private int udefRedValue = 255;
        private int udefGreenValue = 255;
        private int udefBlueValue = 255;
        private int opStatus = PEN_OP;
        private int colorStatus = 1;
        private double zoomPercentage=10;
        private Color mainColor = new Color(0, 0, 0);
        private Color xorColor = new Color(255, 255, 255);
        private Color userDefinedColor =
            new Color(udefRedValue, udefGreenValue,udefBlueValue);
        private JButton openButton = new JButton("open");
        private JButton closeButton = new JButton("close");
         private JButton zoominButton = new JButton("ZoomIn");
         private JButton zoomoutButton = new JButton("ZoomOut");
         private JButton zoomto100Button = new JButton("ZoomTo100");
         private JButton fwwButton = new JButton("Fit window width");
         private JButton fwhButton = new JButton("Fit window height");
         private JButton fwButton = new JButton("Fit the window");
        private JButton clearButton = new JButton("Clear");
        private JTextField colorStatusBar = new JTextField(20);
        private JTextField opStatusBar = new JTextField(20);
        private JTextField mouseStatusBar = new JTextField(10);
        private JPanel controlPanel = new JPanel(new GridLayout(18, 1, 0, 0));
        JToolBar jToolbar = new JToolBar();
        private Container container;
        private JScrollBar horizantalSlide=new JScrollBar();
        public BufferedImage image;
        BufferedImage bgImage;
    //    public ImageIcon icon=null;
        JFileChooser fileChooser;
        DrawPanel drawPanel = new DrawPanel(bgImage,zoomPercentage);
        public IS() {
            super("WhiteBoard");
            fileChooser = new JFileChooser(".");
            container = getContentPane();
            container.setBackground(Color.white);
            container.setLayout(new BorderLayout());
            container.add(jToolbar,BorderLayout.NORTH);
            container.add(horizantalSlide);
            jToolbar.add(openButton);
            jToolbar.add(closeButton);
              jToolbar.add(zoominButton);
              jToolbar.add(zoomoutButton);
              jToolbar.add(zoomto100Button);
              jToolbar.add(fwwButton);
              jToolbar.add(fwhButton);
              jToolbar.add(fwButton);
            jToolbar.add(clearButton);
            colorStatusBar.setEditable(false);
            opStatusBar.setEditable(false);
            mouseStatusBar.setEditable(false);
            controlPanel.setBackground(Color.white);
            drawPanel.setBackground(Color.white);
            container.add(controlPanel, "West");
            container.add(drawPanel, "Center");
            openButton.addActionListener(this);
            closeButton.addActionListener(this);
              zoominButton.addActionListener(this);
              zoomoutButton.addActionListener(this);
              zoomto100Button.addActionListener(this);
              fwwButton.addActionListener(this);
              fwhButton.addActionListener(this);
              fwButton.addActionListener(this);
            clearButton.addActionListener(this);
            drawPanel.addMouseMotionListener(this);
            drawPanel.addMouseListener(this);
            addMouseListener(this);
            addMouseMotionListener(this);
            opStatusBar.setText("FreeHand");
            colorStatusBar.setText("Black");
        public void actionPerformed(ActionEvent e) {
            if(e.getActionCommand().equals("open"))
                showDialog();
            if(e.getActionCommand().equals("close"))
                closeDialog();
              if(e.getActionCommand().equals("ZoomIn"))
                   drawPanel.zoom(1);
              if(e.getActionCommand().equals("ZoomOut"))
                   drawPanel.zoom(-1);
              if(e.getActionCommand().equals("ZoomTo100"))
                   drawPanel.zoom(+10);
              if(e.getActionCommand().equals("Fit window width"))
                   //drawPanel.fitwindowwidth();
              drawPanel.scaleImage(0,0,0,0);
              if(e.getActionCommand().equals("Fit window height"))
              drawPanel.scaleImage(0,0,0,0);
              if(e.getActionCommand().equals("Fit the window"))
              drawPanel.scaleImage(0,0,0,0);
            if (e.getActionCommand() == "Clear")
                opStatus = CLEAR_OP;
            switch (opStatus) {
                case CLEAR_OP:
                    clearPanel();
        private void showDialog() {
            if(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
                File file = fileChooser.getSelectedFile();
                try {
                    bgImage = ImageIO.read(file);
                } catch(IOException e) {
                    System.out.println("IO error: " + e.getMessage());
                clearPanel();
        private void closeDialog() {
            drawPanel.setVisible(false);
            drawPanel.repaint();
        public void clearPanel() {
            opStatusBar.setText("Clear");
              int w = image.getWidth();
            int h = image.getHeight();
            Graphics g = image.getGraphics();
            g.setColor(drawPanel.getBackground());
            g.fillRect(0, 0, w, h);
            if(bgImage != null) {
                int x = (w - bgImage.getWidth())/2;
                int y = (h - bgImage.getHeight())/2;
                g.drawImage(bgImage, x, y, this);
            g.dispose();
            drawPanel.repaint();
        public boolean mouseHasMoved(MouseEvent e) {
            return (mousex != e.getX() || mousey != e.getY());
        public void setActualBoundry() {
            if (mousex < Orx || mousey < Ory) {
                if (mousex < Orx) {
                    OrWidth = Orx - mousex;
                    drawX = Orx - OrWidth;
                } else {
                    drawX = Orx;
                    OrWidth = mousex - Orx;
                if (mousey < Ory) {
                    OrHeight = Ory - mousey;
                    drawY = Ory - OrHeight;
                } else {
                    drawY = Ory;
                    OrHeight = mousey - Ory;
            } else {
                drawX = Orx;
                drawY = Ory;
                OrWidth = mousex - Orx;
                OrHeight = mousey - Ory;
        public void setGraphicalDefaults(MouseEvent e) {
            mousex = e.getX();
            mousey = e.getY();
            prevx = e.getX();
            prevy = e.getY();
            Orx = e.getX();
            Ory = e.getY();
            drawX = e.getX();
            drawY = e.getY();
            OrWidth = 0;
            OrHeight = 0;
        public void mouseDragged(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {
        public void mouseReleased(MouseEvent e) {
            updateMouseCoordinates(e);
            switch (opStatus) {}
        public void mouseEntered(MouseEvent e) {
            updateMouseCoordinates(e);
        public void updateMouseCoordinates(MouseEvent e) {
            String xCoor = "";
            String yCoor = "";
            if (e.getX() < 0)
                xCoor = "0";
            else {
                xCoor = String.valueOf(e.getX());
            if (e.getY() < 0)
                xCoor = "0";
            else {
                yCoor = String.valueOf(e.getY());
            mouseStatusBar.setText("x:" + xCoor + " y:" + yCoor);
        public void mouseClicked(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseExited(MouseEvent e) { updateMouseCoordinates(e); }
        public void mouseMoved(MouseEvent e) { updateMouseCoordinates(e); }
        public void mousePressed(MouseEvent e) { updateMouseCoordinates(e); }
        public static void main(String[] args) {
            IS wb = new IS();
            wb.setDefaultCloseOperation(EXIT_ON_CLOSE);
            wb.setSize(1024,740);
            wb.setVisible(true);
        private class DrawPanel extends JPanel {
            private double m_zoom = 1.0;
            private double m_zoomPercentage;
            private BufferedImage m_image;
            double theta = 0;
            double thetaInc = Math.PI/2;
            public DrawPanel(BufferedImage imageb,double zoomPercentage) {
                m_image = imageb;
                m_zoomPercentage = zoomPercentage / 100;
            protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                Graphics2D g2d=(Graphics2D)g;
                if(image == null)
                    initImage();
                g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                              int w = getWidth();
                    int h = getHeight();
                  int iw = image.getWidth();
                  int ih = image.getHeight();
                  if(scaleMode == SCALE) {
                double x = (w - m_zoom*iw)/2;
                double y = (h - m_zoom*ih)/2;
                AffineTransform at = AffineTransform.getTranslateInstance(x, y);
                at.rotate(theta,m_zoom*getWidth()/2,m_zoom*getHeight()/2);
                at.scale(m_zoom, m_zoom);
                g2d.drawRenderedImage(image, at);
                   else {
                scaleImage(w, h, iw, ih);
              private void scaleImage( int w, int h, int iw, int ih) {
                             Graphics2D g2d = image.createGraphics();
            double xScale = (double)w/iw;
            double yScale = (double)h/ih;
            AffineTransform at = new AffineTransform();
            if(scaleMode == DISTORT) {
                double x = (w - xScale*iw)/2;
                double y = (h - yScale*ih)/2;
                at.setToTranslation(x, y);
                at.scale(xScale, yScale);
            } else {
                double scale = (scaleMode == FIT) ? Math.min(xScale, yScale)
                                                  : Math.max(xScale, yScale);
                double x = (w - scale*iw)/2;
                double y = (h - scale*ih)/2;
                at.setToTranslation(x, y);
                at.scale(scale, scale);
            g2d.drawRenderedImage(image, at);
      public void zoom(int inc) {
            m_zoom += inc * m_zoomPercentage;
            repaint();
            private void initImage() {
                int w = getWidth();
                int h = getHeight();
                image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
                Graphics2D g2 = image.createGraphics();
                g2.setPaint(getBackground());
                g2.fillRect(0,0,w,h);
                g2.dispose();
    }

  • JAVA GUI window content does not fill out when window is enlarged (Win,Mac)

    I've been using the SAP JAVA GUI on a Windows XP workstation as well as a couple of MacBooks running OS X over the last year and a half or so, running versions from 7.10 r 7(maybe earlier) thru 7.10 r 10 (installed today.) The GUI has performed generally well on these platforms, but has one major irritation.
    When I open certain pop-up windows, such as the SPAD [List of Output Requests > Status Description |http://img171.imageshack.us/i/screenshot20091006at241.png/|screenshot], it usually does not open a  large enough window to display all the data - one must scroll horizontally and/or vertically to see the entire window content.  The real aggravation is that if [one enlarges the window|http://img101.imageshack.us/i/screenshot20091006at242.png/|screenshot] so as to see more data, the resizing is ignored.  The contents of the window are still displayed within the original window boundaries instead of filling out the expanded window.   It is not possible to get the entire window contents displayed, it is still necessary to scroll around.
    What am I missing here?   How can I get window resizing to work correctly?   (Or is there a way to make such windows at least open up at a larger initial size??)
    I only found one other thread in this forum, Sap gui screen size in ubuntu., which seemed to be addressing the same problem, but the suggestion was to apply the latest patch to the GUI and get JAVA 1.6.   One would think that since that post in 2008, any patches would have made it into the latest revisions.  I'm already running Java 1.6.
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Apple Inc. Version 1.6.0_15
    OS: Mac OS X(i386) Version 10.6.1
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Sun Microsystems Inc. Version 1.6.0_15
    OS: Windows XP(x86) Version 5.1
    Any suggestions?  Anyone else even seeing this?
    Thanks!
    Rich

    I'm now running
    SAPGUI for Java 7.10 rev 11
    (Version ID 071000041100)
    Tue Dec 8 16:04:41 MET 2009
    uw1059, 710_REL, 1119101
    Java VM: Apple Inc. Version 1.6.0_17
    OS: Mac OS X(i386) Version 10.6.2
    I've also updated my XP system to 7.10 rev 11 and both continue to display the same failure to resize corrrectly.  
    Here's a [video capture of this behavior|http://img163.yfrog.com/i/sapresizebug.mp4/].
    Given that installs on two separate operating systems have consistently misbehaved like this, I have a hard time believing it is something  we are doing.  (But not that hard...)  I find it hard to believe that is the way these screens present on most SAP sites...
    Any comments or suggestions would be welcome!
    Rich

  • Script Main window Width Adjustment Problem

    Hi All,
    I'm working on an existing Z script. In that I cant able to change the width of the Main window. It shows in Display mode.
    Help me to solve this.
    Points assured.
    Regards,
    Viji.

    The probelm for this is you original language is different from the language which you key in in your script.
    To modify the main window, follow the below steps.
    1) Go to SE71, give your form name, Display. Goto Header details, administrative Data and find out the original language, Ex, DE.
    2) Go back to SE71, give form name and Language i.e., original language name identified in step 1 and click change. Now change your main window dimensions and adjust the width according to your requirment,save activate..now it will automatically reflects the changes for all languages.
    3) Go back to SE71, give form name and language, now you will see the main window width is adjusted.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Adobe Muse Footer not full width in preview mode?

    Hi, I originally had my footer 100% width when previewing in browser and preview mode, and now for some reason it is not 100% width. Not sure what I have done for this to occur and it doesnt make it any easier when in design mode it is 100% width. Any help much appreciated.

    Just answered my own question, bounding box was not quite out to full browser width. To ensure it goes out to the full width keep dragging across until the guides turn red. I must of bumped it when I went in the masters page to do something and it was out by just a bees dick! Unreal....2 hrs of my life I wont get back haha :-)
    PS...Do I get 10 points for answering my own question? ;-)

  • How do I get "fit to window width" to work?

    I'm having a problem getting "fit to window width" to work.  It was working ok until recently.  I'm viewing a letter size page and full page view is at 73.1%.  When I select fit to window width it goes to 72.9% and is still in full page view.
    Is there some setting somewhere to fix this?
    Thanks,
    Mike

    Hi Mike20878,
    Thank You for posting on the forums. Kindly try the steps mentioned below, hope it helps.
    1) Open Acrobat
    2) Click on Edit>Preferences
    3) Go to Page Display under Categories
    4) Change the ZOOM to "Fit Width"
    5) Click OK
    6) Restart Acrobat and then open the file.
    The preference now saved would apply to all files.
    Thanks,
    Vikrantt Singh

  • Glossary Tab Content is not Showing in .chm on Windows 2008

    We just discovered that our Glossary content is not showing in the our compiled .chm help files on Windows 2008 64 bit.
    We made sure that the HHActiveX.dll was on the machine and registered it, but it still does not display the content on Windows 2008 64 bit machines.  We did the same procedure on Windows 2003 and the Glossary content is now displayed. It also seems to work on Windows 2008 32 bit, so I assume that this is a 64 bit issue. Is this a known issue? Is there a workaround?
    We are currently using RoboHelp 8 (Technical Communication Suite 2) to generate the .chm files.
    Any information would be very much appreciated.
    Thanks,
    Mack

    Mack. I found another post that suggested there was an issue with the HHACTIVEX.DLL on Win 64 PCs. The only solution offered was to contact Adobe Support
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • 10.8.6 Column view. Can we set the window width to resize to it's longest file?

    I have a MacBook Pro, 10.8.6. I always have my windows open in Column view. Can we set the window width to resize to it's longest file? I'm always having to manually make the width wider and it's annoying.
    Thanks

    Hi, the latest OSX is 10.7, soon to be 10.8, there is a way in Leopard/10.5 & Snow Leopard/10.6 to make finder display that...
    http://osxdaily.com/2007/12/02/show-full-directory-path-in-finder-window-title-b ars/
    A possible workaround for Tiger/10.4 is both of these which show the full path & is Copyable...
    Find Any File...
    http://apps.tempel.org/FindAnyFile/
    EasyFind...
    EasyFindPath
    Near the bottom of the page.

  • Dynamic increase of width of window

    Hi Friends,
    I am working on swings, in that I have a window which displays some text in the JTextArea. My problem is, according to the size of the text the window width should also increase (keeping the height as constant). ie if a small text is to be displayed then window size will be small, if text is huge then only width will be increasing automatically
    Please help me....

    [http://forums.sun.com/thread.jspa?threadID=721804&messageID=4163543]

  • Safari 5.1 not loading MOST of the times. like 1 in 100 attempts it works fine, and that too, as long as you work in same window. and what's the webkit2webprocess.exe file?

    safari 5.1 not loading MOST of the times. like 1 in 100 attempts it works fine, and that too, as long as you work in same window. and what's the webkit2webprocess.exe file?

    the webkit2webprocess.exe has something to do with the sound. Safari works fine for me, except for the occasional time when the webkit2webprocess.exe crashes. Sometimes it crashes Safari altogether but sometimes it just reloads all the tabs I have opened. Either way, it's a huge pain. I hope they fix it with an update soon.

  • Fit to window width

    hello
    i would like to know the code for setting an image to the size of a window width and to window height.

    Hi Mike20878,
    Thank You for posting on the forums. Kindly try the steps mentioned below, hope it helps.
    1) Open Acrobat
    2) Click on Edit>Preferences
    3) Go to Page Display under Categories
    4) Change the ZOOM to "Fit Width"
    5) Click OK
    6) Restart Acrobat and then open the file.
    The preference now saved would apply to all files.
    Thanks,
    Vikrantt Singh

Maybe you are looking for

  • If I buy a new MacBook Pro w/ Retina Display is OSX Mavericks Preinstalled? Or we should pay separately for the OSX Mavericks.

    I was planning to buy a Macbook Pro w/ Retina Display. I was kinda confused if the MacBook Pro has OSX Mavericks pre-installed or we should buy it separately? Pls. Reply ASAP... We will buy it this Christmas Season 2013... Thanks!

  • Extended withholding Tax in ECC6

    Hi All We have activated extended withholding tax in IDES ECC6.Have completed all the stuff from IMG, while assigning Tax code to Vendot Master, we are not finding the 'WHTType' and 'Liable'  field ready to input. These two fields are disable. Furthe

  • Rules of thumb for sizing an Oracle BPM 11g deployment

    Anyone out there have some rules of thumb they are using to size out an environment for Oracle BPM 11g? I know processing power can vary widely for process complexity and amount of data floating around. Still, I get asked questions like how much proc

  • Upgrade to iPhoto 6, keep library on external HD

    I am finally upgrading from iPhoto 2 (go ahead, mock me) to iPhoto 6. Since my internal HD is so small, I keep my entire iPhoto library on my external firewire drive. When I do the install of 6, will I have to move the new library like I did the old

  • System Preferences - Trackpad settings not saving

    This topic is refers to the location of System Preferences > Trackpad The problem I am having is every time I modify this section of my system preferences and check in say for example 'Tap to click' when my MBP restarts or comes out of sleep they wil