Display wrong size

Hi,
I had to hook my mac book pro up to a projector and had some difficulty getting the display to show up on screen.  We finally did, but when I disconnected the projector and restarted the laptop, my display size is off.  It has 1024 x 768 size, but it's too small so I'm using the 1024 x 768 stretch which looks off.  I'd appreciate any help. 
Thanks!
Faye

the problem is here
walls = new Rectangle(50, 50, WIDTH - 50, HEIGHT - 50);
at best the right/bottom walls will equal the frame's dimensions. try it as
walls = new Rectangle(50, 50, WIDTH - 100, HEIGHT - 100);
but this won't get you exactly what you want, due to the titlebar height (30?)
slightly different version
import javax.swing.*;
import java.awt.*;
class DemoWormPanel extends JPanel {
    private static final int WIDTH = 600, HEIGHT = 400;
    public DemoWormPanel() {
        setBackground(Color.BLACK);
        setPreferredSize(new Dimension(WIDTH-100,HEIGHT-100));
    public static void main(String[] args) {
        DemoWormPanel wp = new DemoWormPanel();
        JFrame f = new JFrame();
        f.setLayout(new GridBagLayout());
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(wp,new GridBagConstraints());
        f.setSize(WIDTH, HEIGHT);
        f.setVisible(true);
}

Similar Messages

  • File displaying wrong size.

    The file displaying the wrong size is Fallout New Vegas on a wineskin wrapper. The wrapper was 500 Megabytes. When I installed fallout New Vegas on the wrapper, it remained at 500 Megabytes. I had installed it on the Desktop and now my About my Mac is doing the same thing. It only displays the 500 megabytes the file shows. I clicked more info and it still said that. How do I fix this to display it?
    BTW, when I copy it, it says 8.33 Gigabytes and  that is it's correct size.

    The Mac is reporting file size in megabytes.  Windows is reporting file size in mebibytes.  The difference is that a megabyte is 1,000,000 bytes, while a mebibyte is 1,048,576 bytes.  This change was made in Mac OS X so that reported disk sizes would agree with manufacturer's claimed sizes...  most manufacturers claiming a size of 500 GB mean 500,000,000,000 bytes.  Mac OS X will also call that number of bytes 500 GB, while Windows will call it 465.7 GB.  That confused a lot of people.
    For more information, see:
    http://en.wikipedia.org/wiki/Gigabyte#Consumer_confusion

  • DB02 table space overview display wrong sizes

    Hi all
    I get this result when I run the transaccion DB02 and table space overview
    Tablespaces: Main data   (Last analysis: 13.12.2009 04:00:29)
    PSAPSR3                 55,000.00     2,458.31
    PSAPSR3700           44,980.00     2,128.50
    PSAPUNDO               5,060.00     4,921.94
    PSAPTEMP               2,000.00     2,000.00
    SYSTEM                                 880          14.38
    SYSAUX                                 340          20.75
    PSAPSR3USR                       20               14
    Its displaying wrong informaction. The correct its the informatcion below and I get with a detailed analysis.
    Tablespaces: Main data   (Last analysis: 21.07.2010 13:04:51)
    PSAPSR3                     75,000.00     4,352.13
    PSAPSR3700          44,980.00     1,634.44
    PSAPUNDO              5,060.00     4,752.81
    SYSTEM                                880     10.25
    SYSAUX                                360     23.5
    PSAPSR3USR                      20     13.31
    PSAPTEMP                          0     0
    I think is for the date of the last analysis, but I dont know how to update my table space overview analysis: i will appreciate it any one cant tell me how to update the analysis.
    Best regards.
    Edited by: Alvaro Olmos on Jul 21, 2010 8:16 PM

    To refresh the table space overview do :
    DB02 ->Refresh->there you will find two options choose second one
    And it will refresh the tablespaces.
    Or you can also schedule update stats job daily to update it automatically.
    Regards,
    Shivam

  • Help: JPanel/JFrame display complexities, wrong size

    I am trying to make a simple game of worms.I wan't to draw a rectangle in the center of the window where in the middle the game is played and on the outside score, lives and other such things are displayed. The problem is the rectangle won't draw properly because the window is the wrong size and I don't know if it is something I am doing wrong with the panel or frame.
    import javax.swing.*;
    import java.awt.*;
    public class DemoWormPanel extends JPanel implements Runnable{
        private static final int WIDTH = 600, HEIGHT = 400;
        private Graphics dbG;
        private Image dbImage;
        private Thread animator;
        private boolean running = false;
        private Rectangle walls;
        public DemoWormPanel() {
            super();
            setSize(WIDTH,HEIGHT);
        public void startGame() {
            if (animator == null) {
                animator = new Thread(this);
                animator.start();
            running = true;
            //defining game walls at 50 pixels within panel border
            walls = new Rectangle(50, 50, WIDTH - 50, HEIGHT - 50);
        public void gameRender() {
            if (dbImage == null) {
                dbImage = createImage(WIDTH, HEIGHT);
                if (dbImage == null) {
                    System.out.println("Error creating double buffer");
                    System.exit(0);
                dbG = dbImage.getGraphics();
            dbG.setColor(Color.black);
            dbG.fillRect(0,0,WIDTH,HEIGHT);
            dbG.setColor(Color.white);
            dbG.drawRect(walls.x, walls.y, walls.width, walls.height);
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.drawImage(dbImage, 0, 0, this);
            g.dispose();
        public void update(Graphics g){
            paint(g);
        public void run() {
            while (running) {
                gameRender();
                repaint();
                try {
                    Thread.sleep(1000/50);
                } catch (InterruptedException e) {}
            System.exit(0);
        public static void main(String[] args) {
            DemoWormPanel wp = new DemoWormPanel();
            JFrame f = new JFrame();
            f.setTitle("Worms");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(wp);
            f.setSize(WIDTH, HEIGHT);
            f.setVisible(true);
            wp.startGame();
    }Somewhere in there is my problem.
    What happens is that the right and bottom walls of the Rectangle are cut off of the screen because the window is not the right size. I changed the code to determine if the coordinates of the walls were accurate every iteration and they were. I also made it check the width and height every iteration by printing out this.getWidth() and this.getHeight() and found that instead of a 600 x 400 window, I have a 584 x 364. I also tried changing the panel and frame's size methods to make a new dimension instead of setting it directly from my constants and it had no effect. I also added directly to those constants to make it precisely 600 x 400 but the rectangle is still cut off, so maybe I also have a graphics issue. The only other potential issue I can think of is that I have Vista but I looked around here and searched google and found no similar issues to this.
    I am not new to java but I am also not advanced. I just started using java again after about 6 months and I have made a pong game before without this problem, on another computer though.I am at my wits end. I'll check for responses tomorrow and thank you for any help or insight you can offer.

    the problem is here
    walls = new Rectangle(50, 50, WIDTH - 50, HEIGHT - 50);
    at best the right/bottom walls will equal the frame's dimensions. try it as
    walls = new Rectangle(50, 50, WIDTH - 100, HEIGHT - 100);
    but this won't get you exactly what you want, due to the titlebar height (30?)
    slightly different version
    import javax.swing.*;
    import java.awt.*;
    class DemoWormPanel extends JPanel {
        private static final int WIDTH = 600, HEIGHT = 400;
        public DemoWormPanel() {
            setBackground(Color.BLACK);
            setPreferredSize(new Dimension(WIDTH-100,HEIGHT-100));
        public static void main(String[] args) {
            DemoWormPanel wp = new DemoWormPanel();
            JFrame f = new JFrame();
            f.setLayout(new GridBagLayout());
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(wp,new GridBagConstraints());
            f.setSize(WIDTH, HEIGHT);
            f.setVisible(true);
    }

  • Site previews fine in Firefox locally, but when I published the site all the text is the wrong size

    I am a rookie web designer. I recently created a site using CS6. http://www.joshuahetzler.com When I previewed the site in Dreamweaver it looked good in Firefox and IE. I published the site and now it is messed up in Firefox. All the text is the wrong size. Does anyone know how to fix this? Does it have something to do with my hosting provider? (I deleted a wordpress site from the directory an hourago and put this new site in its place) Why does IE display properly, but not Firefox...

    Caused by a bad link to your site's CSS file.  This is pointing to a file on your local hard drive which nobody but you can see.
    <link href="file:///C|/hetzlerj/jhgc/menu.css" rel="stylesheet" type="text/css" />
    Open your template and reconcile the path to your site folder.  It should probably look like this:
    <link href="../menu.css" rel="stylesheet" type="text/css" />
    Save Template.  Populate changes to Child pages.  Upload Child pages.
    Nancy O.

  • How to change the default window size display font size on Lync 2013 main window?

    Hi champs,
    Just a simple non-technical question: How to change the default window size display font size on Lync 2013 main window on Windows 7 desktop?
    Thanks,

    Hi,
    Did you mean change the Lync: Change the Default Font and Color of Instant Messages just as Edwin said above?
    If not, as I know, there is no natural way to change it.
    If yes, on the latest version of Lync 2013 client, there is a new option “IM” on Lync client “Options” list. And you need to change the default Font and Color of IM in the interface of “IM”.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Is there a way to display the size of a folder or group of folders in Bridge?

    In windows it is easy to click on any folder and see the size of it's contents, whether it is a single folder or contains subfolders.  This doesn't seem possible as far as I can see in Bridge.  The only way I can see to see the size of a folder is to select all files in the folder and then it will display the size. Seems quite a clunky way or working and is frustrating when you want to see the size of a folder containing sub folders.  Strange for a program which is supposed to make managing files easier.  However, I'm hoping that there is a way to do this and I've not discovered it yet.
    If anyone knows of a way to click on any folder and display it's contents (with or without subfolders) without having to select all files, I would greatly appreciate them sharing it.
    Many thanks,
    Julie

    In the Folders Tab, right click on  folder  then click Reveal in Explorer. This will open an Explorer window with the folder selected.  In Explorer you can right click > Properties or navigate to whatever you want to measure.

  • Create custom document with wrong size

    Hi,
    I have a problem (on Sun Solaris 5.8) when I create custom document with more than 10MB size.
    I've created an agent which detects the events on a custom data type
    MYDOCUMENT (extension .mydoc).
    When I put a new document test1.mydoc (size of 10MB for example), my agent detects the new document, creates a copy, sets the class object to
    MYDOCUMENT , removes the original document and puts the copy into the same folder.
    But sometimes, the copy created has a wrong size (less then 10MB).
    How can I configure the nfs server to be sure that the agent waits for the complete size of the added document.
    I need HELP !!!!
    Thanks

    Hi Pavithra,
                    yeah you can create your custom table by entering fields in Standard.  for more details
    refer below screen shots
    Regards,
      Thangam.P

  • PDF is the wrong size from framemaker 8

    I am trying to create a PDF from Framemaker 8. The page size of the doc is US letter (216mm x 279mm)
    I am tring to change this to A4 (210mm x 297mm). Margins or extra white space is not an issue.
    Not matter what setting I change in Framemaker 8, either in the print dialog under "PDF setup" or in "Setup"
    where I am changing everything to A4 my PDF generates as 210mm x 279mm
    I have tried various job options and but still the PDF is the wrong size
    FYI I am using Frame 8/Distiller 9..
    Any ideas..?

    >Any ideas..?
    Sure, ask in http://forums.adobe.com/community/framemaker

  • Images are displayed wrong in firefox

    Hello!
    I am a photographer, uploading images in png to my gallery at deviantart.com. I noticed that the images are displayed wrongly in firefox - but in IE9 and Opera they are shown correctly. I have tried with different color management settings in about:config but none of that has solved the problem. I would like to know why it is that firefox can't show the colours correctly, like opera and IE?
    If it's impossible to fix I will just simply have to stop using firefox which would be a shame when I have been using the browser for many years. The problem has not existed earlier.
    Best regards

    http://kasperarts.deviantart.com/gallery/#/d2to4iq
    That image for instance. And I save them using Adobe RGB since thtat's the colour space I work in, but this has never been a problem before.

  • Not able to have images display full size?

    Hi, I'm having an issue with images in safari. When I browse photo galleries which have links to images in their full size (larger than the browser window) it always displays them scaled down. I used to be able to set it so that they would automatically display full size without having to manually click on them to scale them up. Now (version 3.0.4) I noticed that I simply cannot find a way to have them come up full size. I always, ALWAYS have to click on them. Normally it'd be no big deal but when you come across some friends photos that have 100+ pictures it gets very annoying and tiring. Is there any way I can get it back to normal where I click on a link to a large image and it shows up full size?!
    - Jordan

    THe basic answer is to export them to a desktop folder and access them form there
    for a comnplete discussion see TD's post here -- http://discussions.apple.com/thread.jspa?threadID=1199193&tstart=15
    Larry Nebel

  • Printer prints wrong size

    HP 2570 Photosmart
    Running windows XP
    No messages
    No known changes
    I tried this question in the Home and Network printing forum, and after 4 days, not one person has replied, much less had an answer.
    Recently, my HP 2570 has been printing certain files the wrong size.  I have a graphics design program (basically line art) which is supposed to print my design at actual size.  The design has a background of a 1" by 1" grid. 
    Until recently, I have had no problems.  Now, when I try to print a design, the print preview shows the image as it should appear, but the printed image is reduced to about 87% of the actual size.  This is easy to verify - I measure the spacing of the grid lines - they are 7/8" apart. 
    I printed the same design on two different days, and the two printed images are NOT the same size. 
    The only thing which I can find which seems unusual is that when I look at the printer driver details, I find FIVE different files.  They are:
    C:\\windows\system32\drivers\serscan.sys
    .....................................hpotiop2.dll
    .....................................hpovst09.dll
    .....................................hpowiamd.dll
    .....................................hpzc3212.dll
    Any ideas?

    Hi there,
    Try downloading and running the print and scan doctor located here(to make sure there are no software issues causing the problem):
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Mx Components displaying wrong the embedded Font

    Hi, I'm developing with Adobe Flash Builder 4.5 and I have a problem that the mx components displaying wrong the embedded font which is embedded in a css-file. But spark components have no problems with displaying the embedded font.
    thanks

    See the embedded fonts post on my blog.  The MX components default to a
    different embedded font subsystem.
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • Fonts display wrong in Final Cut Pro

    One of the other editors in the office put together this piece and now I am making some changes to it on my machine. We're using the font "Baskerville" a common font that comes on the computer, and it is showing up correctly in the Font Book, but it is not showing up correctly in Final Cut Pro.
    There should be other options like regular, bold, semiBold etc, but there's only bold, italic, and bold italic.
    The other strange part is that when I first opened it on my computer it displayed wrong, and I tried reinstalling the fonts, and then it worked fine. I tried reinstalling the font again but it didn't help. I also tried restarting and that didn't help either. I checked in the Library > Fonts folder as well as the fonts folder under my user and the fonts match.
    Any suggestions as to what I could do?

    As far as I remember, Final Cut has always had this issue....
    I believe it has something to do with Final Cut only reading True Type (not Post script) fonts.
    That's why I only use Text for simple things like legals. For all other text uses, I use Photoshop...

  • Bug report : Navigator display wrong messages in package body

    Just run some code , you can see the Navigator display wrong messages in the package body,but the package work fine in sqlplus / toad or other tools.
    create or replace package SIMPLE AS
    Procedure simple_proc ;
    END;
    create or replace package body SIMPLE AS
    Procedure simple_proc
    IS
    v_tname varchar2(100);
    begin
    SELECT PERCENTILE_disc(0.5) WITHIN GROUP (ORDER BY tabtype DESC)
              INTO v_tname
              FROM tab;
    END simple_proc;
    END;
    Then open the package body in the Navigator (Connection Pane==> Connection Name ==> Packages ==> Simple Body ) , and show the error message:
    Unexpected token
    Missing Expression
    But if I just create the procedure out of the package , it work fine.
    CREATE OR REPLACE
    Procedure simple_proc
    IS
    v_tname varchar2(100);
    begin
    SELECT PERCENTILE_disc(0.5) WITHIN GROUP (ORDER BY tabtype DESC)
              INTO v_tname
              FROM tab;
    END simple_proc;
    /

    This has already been discussed a number of times (see http://forums.oracle.com/forums/search.jspa?objID=f260&q=Unexpected+token).
    As I understand it, it is related to the parser that SQL Developer is using to display the package decomposition in the navigator not coping with the full PL/SQL and SQL syntax (largely analytical functions from memory).

Maybe you are looking for

  • Bug using WEB-INF/lib Jar archives

    Hi, I am running iPlanet 6.0Sp3 on Windows 2000. I deployed our Web application in the form of a War file and it is now under the APPS/modules directory as the following directory: APPS/modules/ourapp. When I start the iPlanet Application Server, it

  • Connecting my hbogot rhough apple tv

    I am trying to authorize hbogo on my apple tv, when I log into hbogo.com on my computer it then has me login to my fios account. I then go to devices and try to add the apple tv, it has a small window pop up thats authorizing through verizon, then it

  • Distorted sound in videos/music through speaker?

    After about 5 minutes of watching an iTunes TV Show or listening to the iPod through the speaker, the sound becomes garbled. If I exit to Home and go back in, it fixes itself, for another few minutes, then it happens again.

  • Reg: Process Chain, query performance tuning steps

    Hi All, I come across a question like,  There is a process chain of 20 processes.out of which 5 processes are completed at the 6th step error occured and it cannot be rectified. I should start the chain again from the 7th step.If i go to a prticular

  • JTable.changeSelection() has stopped working for me in Java 1.5

    The application I'm working on has a search function for a large table of data. In addition, you can restrict the search to a selected area of the table. This worked fine when compiled on Java 1.4, but has stopped working on Java 1.5. It appears the