QuickLook - Window Size/Zoom

Hello all !
I was wondering, if there is a way to set the default windows size of quicklook. I usually open PDF files and on my PBG4 15" the window, that is opened, is pretty small so i have to resize it to get a better look on my pdf.
I there a way? Any ideas?
Thank you in advance!
Best regards from Vienna, AUT
qbitskey

I looked around and there doesn't seem to be any way to set preferences for QuickLook at all. You can't even change the keystroke that activates it, or even disable it! You might be able to find or write a plugin that gives you more in-window options specifically for PDF files, but if not, I guess we'll just have to wait for Apple to allow better customization.

Similar Messages

  • Why is CS6 Zoom change window size is different then previous versions?

    Why in CS6 when zoom changes window size and a folating window fits in Photoshop window or on other display screen do I get scroll bars where a select all selection marching ants are not visible on all four sides till I drag out the window to get rid of the scroll bars so I can see all of marching ants.  In preious versions of Photoshop space for scroll bars is present but there are no scrool bar, select all marching ants are visible on all four sides when an image's window fits in Photoshop window or on second display. Is there a way to make CS6 work like previous versions? Also if I just open a document and Photoshop fits it to Photoshop window or second display the floating window is correct without scroll bars. Zoon add then even when not needed....

    Without manually resizing each open document window on my Mac, Photoshop 13.x would be simply unusable.
    I hadn't posted anything on the subject because the system on which I run Ps 13.0.1 is based on a laptop (MacBook) literally rescued from the trash and with minimal specs.  The graphics card is not even involved in processing.
    I put up with it because I'm basically using it to run ACR 7.2RC1, then bring the converted and ACR-adjusted onto my regular working machine running CS4.
    In a nutshell, nothing will make the window fit the main monitor, not Fit To Window, nor 100% view, nor any shortcut.
    I need to drag the window manually from the lower right-hand corner in order for it to fit the monitor.  Otherwise, there are substantial gaps on the right and at the bottom.  I never run in tab view.
    For the sake of thoroughness:
    2007, 2GHz MacBook 2,1, Intel Core 2 Duo, 4 GB of RAM (can use 3 GB), 160 GB internal boot disk, dedicated FireWire400 external HD for Ps scratch disk, external Time Machine HD.  Dual external monitors + built-in laptop screen Snow Leopard 10.6.8.
    The Mac-Intel is used for no other purpose than running ACR 7.2RC1 and the only other application I occasionally run on said Mac-Intel is TextEdit.
    My main working machine is a Power Mac (PPC) G5 Quad with 16 GB of RAM, on which 11.0.2 is the last version of Photoshop to run, so I have the Mac-Intel system described above just to run ACR 7.x under Photoshop 13.0.1.  I convert my raw files in ACR7.x open them in Ps 13.0.x and save them via Ethernet to an external HD connected to the G5 Quad for further processing in CS4.
    2.5 GHz Power Mac (PPC) G5-Quad; 16GB RAM; mutant, flashed 550MHz nVidia GeForce 7800GTX 1,700MHz 512MB VRAM; ATTO ExpressPCI UL5D LP SCSI card; Mac OS X Tiger 10.4.11 and Leopard 10.5.8 boot drives; intrusive Spotblight, Dashboard and Time Machine permanently disabled; dual 22" CRT monitors; USB wireless 'n' available but connected to the Internet via wired Ethernet; FW flatbed scanner; 2 SCSI scanners (one tabloid-size transparency scanner and a film scanner); various internal & external HDs; FW Epson 2200 and Ethernet Samsung ML-2850ND printers; 2 X Back-UPS RS 1500 XS units.

  • Window Size, Resizing, "Zoom"

    I have a question about Safari's windows. I have found, in comparison to Firefox, it difficult to use the resize or "zoom" function of the window options (the red, orange and green bubbles at the top left of every Macintosh window). Specifically, when I select the auto-resize (green button), I get a variety of window sizes which are meaningless to me, and I would like, as in Firefox, for the window to either maximize the screen, or return to some smaller (manually-set) size of previous.
    My question for the group would be: has anyone found this to be problematic for them, or has anyone found a work-around or solution to this?

    Hello,
    I just noticed that this isn't working for me in Safari or Camino. The 'zoom' button works as it should in Opera and Firefox.
    I tried your suggestion Hawaiian_Starman and it always reverts back. Just makes the window smaller than I want and clicking again just moves the same small window lower on the desktop. It will work as you say, but only for that one time. With Camino it reopens new window at whatever size another one is at. Hard to try completely without losing this page.
    I just upgraded to 10.5.8 yesterday and have had other oddities afterward but this is the most annoying. Not sure if it was like that before, but apparently it was according to the original poster.
    Haven't found this issue elsewhere, so I will call Apple tomorrow and report back if it gets resolved.
    Thanks

  • My Safari window has "zoomed in". I can't get it back to the regular size. How do I do this?

    I have a 27 inch new iMac.My Safari window has "zoomed in" and I can't get it back to the regular size. I am using Lion 10.7.3. Can anyone help?
    Thank you. 
    docbobbie

    If it's just the Safari window, Press Command - 
    several times to reduce.
    If it's the whole screen, including menubar and dock then Hold down the Control key while you scroll down.
    Regards,
    Captfred
    Also, If you're using a Magic Mouse, a double tap on the mouse with one finger will zoom, do it again to unzoom.

  • Missing zoom function - Zoom image to fit window size?

    Hi
    Can anyone tell me if it's possible to zoom the image so it fits the current document window size? (Not Fit-To-Screen, as this will change the doc window size)
    Thanks
    Steve

    I don't think there is a button per se for this like there is for Fit to Screen, but can use any of the numerous zoom functions to make the document fit inside the document window.

  • My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words.

    My macbook pro is running very slow with some strange mouse and window movements. The trackpad is very unresponsive and when responding the cursor moves on its own and/or very erratically. When on safari the window suddenly zooms in or highlights words and looks them up via dictionary. I currently have a wireless mouse connected and I am still having the same problems.
    I fee like I may have a virus or my laptop is perhaps being accessed remotely. All of the sharing options are unchecked.
    HELP PLEASE
    Very worried!!

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Reinstall the 10.9.2 update: OS X Mavericks 10.9.2 Update (Combo).

  • How can I adjust event window size while in day view on ical?

    How can I adjust the all-day event window size while in day view on ical?  I have thee all-day events, but they're just a little too big to simultaneously appear without having to scroll up/down the all-day event section.

    {Ctrl + Scroll wheel} does a Page Zoom and that setting is saved domain by domain.
    '''View > Zoom > Reset''' while you're viewing one of those zoomed-out pages in the SmartZone.
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • 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();
    }

  • Set custom default window size for opening Preview?

    I'm using a terminal-based text editor, and when I compile LaTeX files, I have a script to open the compiled pdf in Preview. The trouble is that Preview opens in the same default dimensions every time, which covers up other applications I have open.
    It's not a huge deal, but it would be nice to have Preview open flushed right and as half the width of the screen every time. Since I'm opening and closing it so often, moving it and resizing it every time gets really annoying.
    I realize this isn't a built-in option for Preview, but is there any way of doing it using Terminal or otherwise? I've googled around and haven't found any satisfactory answers yet.
    Thanks!

    Hi zazi,
    Each window opened takes the size of the previous window opened.
    Its possible to zoom in and out as well [https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages]
    Also see:
    [https://support.mozilla.org/en-US/kb/changes-toolbars-and-window-sizes-are-not-saved]
    You can look at this extension to adjust the font size for the user interface.
    Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer

  • Portlet window size changes in Webcenter

    We have a custom portlet that is deployed in Webcenter in AviTrust using the Application Page Template. As we step through the screens in the portlet, the width of portlet window changes. The portlet content itself is in a div and does not specify a specific pixel width.
    I'm fairly new to this but the way I understand the DIV tag, the width of the DIV tag is determined by the enclosing container. This would imply that the width of the Webcenter containers enclosing the portlet content is not fixed.
    I know one can fix the size fluctuation by setting the size of the portlet after it is added to a page. Is there any other way to stop the size change without actually specifying a fixed width in pixels?
    Much appreciated if anyone could comment on this behaviour in Webcenter so I can be sure of the possible fixes for this issue!
    Thanks heaps.

    Thanks.
    I dont like full screen mode, I prefer to keep the window at a size which is comfortabe for me to work.
    From what you have said, it seems as if I cant prevent the main window from constantly changing size each tyime I select fit to screen.
    I am baffled, because I have been using Phtotoshop CS4 with a window size setting which stays the same regardless of how I zoom the image/canvas. Odd isn't it?
    Regards

  • Mouse gesture causes sudden increase in window size

    I'm unsure where this question belongs, I have searched high and low but obviously have not struck the right combination of search terms. So if this is not the correct place please point me in the right direction.
    I generally have the Safari app opened to almost fill the whole Mac screen and have 5 or 6 tabs opened ready to look at each on in some detail.
    Sometime when searching the web with a few windows open, using Safari 5.1.4, Inadvertently my finger(s) brush the top of the Magic Mouse and the primary open window will zoom in [enlarge]. At least I think it is a light finger touch which causes this, unless it is a slight movement of the mouse itself. So what was visible, ordinarily normal, on a single web page is now extraordinarily expanded and only a small portion can fit and will appear on the web page. This happens when I go to attempt to drag the window up/down/sideways but I never get to that action. I have no keys pressed on the keyboard [Apple Bluetooth]. This anomaly does not increase the web page window size to fit the screen.
    I have tried the CMD - (plus) keystrokes to no avail. Similarly the CNTL - scroll wheel will not bring the page back to correct [previous] size. The only solution is to CMD-W that page and reopen to normal size, in effect, start again.
    I have no third party software on my Magic Mouse and I can not see any gesture to do this on the System Prefs for Mouse. I can not re-create this happening no matter what gesture I use on the Mouse and thus am unable to identfy the cause. The zoom happens so fast I can not tell where my fingers were at the time. I can find nothing relevant in Sys Prefs>Universal Access>Mouse>Mouse Options. I have Sys Prefs>Universal Access>Seeing>OFF checked. AFAIK I have no third party apps on my iMac which have any bearing on zoom. I have googled but as usual google results depend on the search terms which I seem not to be able to accurately describe.
    24in iMac 8,1 6GB RAM, OS X 10.7.3.
    I would appreciate any advice.

    What you describe sounds like the Smart Zoom gesture for the mouse - a gentle single-finger double-tap on the mouse will zoom the contents of a Safari window. Repeat the gesture to bring it back to normal.
    This can be disabled in System Preferences > Mouse > Point & Click by unchecking the Smart Zoom item.

  • How can I customize the window size of the PDF viewer?

    Hi
    Every time I open a PDF invoice in the built in PDF viewer - in Firefox Mac - I have to resize the the window and zoom the page to see what's on it. Is there a way to set a default window size that suits me better?

    You can vote for this bug to show your interest in getting this enhancement:
    *Bug 845946 - pdf.js does not remember zoom mode
    <i>(please do not comment in bug reports: [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html])</i>

  • Screen share window size is wrong following Mavericks upgrade

    Hi, I use screen share quite a bit, both over LAN but also over the internet and love the feature. I usually have no problems, but after the upgrade to Mavericks on my iMac and Mac Mini (Both 2011 models), I've started seeing problems with the window size of screen share.
    Going from my Mavericks iMac to my Lion Macbook pro, there's no problem, and my imac shows a screen share window that is the resolution of the MBP (1440x900). But if I do screen share from my iMac (2550x1440), to my Mac mini (Which is attached by HDMI to a HDTV at 1920x1080), the window gets continuously smaller on each session, and it is now stuck at what I would guess is 320x240.
    How can I change this size? I assume is has something to do with Mavericks horrible resolution handling, as I don't get a list of resolutions over HDMI anymore in System Preferences, which was nice and easy in pre-Mavericks OS'.

    Thanks, using the zoom button did actually improve quite a bit. It is not full resolution, but almost twice the size it was before and definitely usefull, thanks! Never though about doing that..
    Scaling manually doesnt work over the current max window resolution though.

  • Window sizes settings have somehow changed and my windows do not open in the correct size anymore. How do I get my original window sizes to come back PERMANENTLY?

    After upgrading to FF 10.0, my window sizes are not correct. I use a web-based invoicing system and my invoice windows used to open to the size of the invoice. Now, it opens invoices in full screen. I need the invoice windows to open the way the site tells them to open. How do I make that happen again and never change after that?

    Safe mode disables the installed '''Extensions''', themes ('''Appearance''') and '''Plugins''' in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. So it could be that an extension is causing it. You can try to isolate it starting with script blockers and similar extensions and '''Disable''' or '''Remove''' it.
    Please also note that safe mode also disables hardware acceleration: '''Tools''' > '''Options''' > '''Advanced''' > '''General''': '''Use hardware acceleration when possible'''.
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]

  • AP Divs (layers) move when I open my website on different window size.

    First of all, this is my first time trying to make a website.
    I'm doing an assignment for my class and i found it difficult for me to fix. I have spend 4-5 hours researching online but nothing work for me.
    Well,the problem is the AP Divs (layers) move when I open my website on different window size(iphone,ipad).
    The website only look right on 1366 x 786 resolution. Please take a look at my 2 pics below:
    And I don't know how to make the website to fit on the iphone and ipad so that I don't have to scroll down or sroll to the right to view the whole thing.
    Please someone help me!
    The code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width" />
    <title>Boston Green Community College</title>
    <style type="text/css">
    <!--
    body {
        background-color: #3f7244;
        padding: 0;
        color: #8d0101;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 100%;
        line-height: 1.4;
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
        padding: 0;
        margin: 0;
    h1, h2, h3, h4, h5, h6, p {
        margin-top: 0;     /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
        padding-right: 15px;
        padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
        border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
        color: #003702;
        text-decoration: NONE; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
        color: #028b66;
        text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
        text-decoration: none;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
        width: 960px;
        background-color: #FFF;
        margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
        background-color: #ADB96E;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
        padding: 0px 0;
    /* ~~ The footer ~~ */
    .footer {
        padding: 10px 0;
        background-color: #CCC49F;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
        float: right;
        margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
        float: left;
        margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
        clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    #apDiv1 {
        position: absolute;
        width: 251px;
        height: 101px;
        z-index: 1;
        left: 871px;
        top: 10px;
    #apDiv2 {
        position: absolute;
        width: 228px;
        height: 60px;
        z-index: 2;
        left: 9px;
        top: 1397px;
    #apDiv3 {
        position: absolute;
        width: 273px;
        height: 198px;
        z-index: 2;
        left: 851px;
        top: 383px;
    #apDiv4 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 3;
        left: 242px;
        top: 120px;
    #apDiv5 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 902px;
        top: 178px;
    #apDiv6 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 857px;
        top: 171px;
    #apDiv7 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 455px;
        top: 547px;
    #apDiv8 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 4;
        left: 853px;
        top: 113px;
    #apDiv9 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 5;
        left: 853px;
        top: 246px;
    #apDiv10 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 6;
        left: 513px;
        top: 121px;
    #apDiv11 {
        position: absolute;
        width: 200px;
        height: 115px;
        z-index: 6;
        left: 511px;
        top: 123px;
    -->
    </style></head>
    <body>
    <div class="container">
      <div class="header"><a href="#"><img src="Pictures/34d-1.png" alt="Insert Logo Here" name="Insert_logo" width="619" height="90" id="Insert_logo" style="background-color: #C6D580; display:block;" />
        <div id="apDiv11"><font color="#f4f1f1">
    <script type="text/javascript">
    var d=new Date()
    var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    document.write(weekday[d.getDay()] + " ")
    document.write(d.getDate() + ". ")
    document.write(monthname[d.getMonth()] + " ")
    document.write(d.getFullYear())
    </script></font>
    </div>
        <div id="apDiv1">
      <!-- Use of this code assumes agreement with the Google Custom Search Terms of Service. -->
      <!-- The terms of service are available at http://www.google.com/cse/docs/tos.html -->
      <form name="cse" id="searchbox_demo" action="http://www.google.com/cse">
      <input type="hidden" name="cref" value="" />
      <input type="hidden" name="ie" value="utf-8" />
      <input type="hidden" name="hl" value="" />
      <input name="q" type="text" size="40" />
      <input type="submit" name="sa" value="Search" />
    </form>
    <script type="text/javascript" src="http://www.google.com/cse/tools/onthefly?form=searchbox_demo&lang="></script>
                                  </div>
                                    </div>
      <div class="content">
        <center><img src="Pictures/DFDF11.png" width="959" height="556" longdesc="Pictures/junior-2-960x.jpg" /></h1></center>
      <!-- end .content --></div>
      <div class="footer">
         <img src="Pictures/RRR1.png" width="202" height="70" />
         <div id="apDiv3">
           <p> </p>
           <p><a href="Job.html">Jobs</a>         </p>
           <p><a href="Art Gallery.html">Art Gallery</a>         </p>
           <p><a href="Contact us.html">Contact Us </a></p>
        </div>
        <div id="apDiv4"><center>
    <P>About</P>
    <a href="visiting.html">visiting</a> | <a href="Map.html">maps </a>| <P><a href="About.html">about BGCC</a></P>
    <P>Academic</P>
    <P><a href="Courses.html">schools+courses</a></P>
    <P>Admissions  </P>
    <P><a href="cost & aid basics.html">cost & aid basics </a>| <a href="Apply now.html">join BGCC</a>
    <P>Studen Life</P>
    <P><a href="Athletics.html">Athletics</a></P>
    <P>Greenforce Education</P>
    <P><a href="Career.html">career center</a></P>
    </center> </div>
         <p><font size="2" color="black">BGCC | 99 GreenField | Boston, MA 02199 |617-0101-1000| TTY 617-0202-9944|</font></p>
        <div id="apDiv9"><a href="Donate.html" target="_blank"><a href="Donate.html"><img src="Pictures/three-green-logo.jpg" width="218" height="99" longdesc="Pictures/three-green-logo.jpg" /></div>
        <div id="apDiv8"><a href="Apply now.html" target="_blank"><a href="Apply now.html">
    <img border="0" src="Pictures/cxgvxdvxgd.jpg" alt="Apply Now" width="218" height="99"></a></div>
      <!-- end .footer --></div>
      <!-- end .container --></div>
    </body>
    </html>

    That's what APDivs do.  This is the single most common problem new people have with web page layouts.  DO NOT use positioning.  You don't need it.  Start over.  Learn to use CSS floats, margins and padding to align elements. 
    Below is a basic HTML5 Layout.  View source in browser to see the code.
    http://www.alt-web.com/sandbox/HTML5-BasicLayout.html
    Nancy O.

Maybe you are looking for