How do I deal with missing pixel-widths?

I apologize if this is the wrong forum. I am currently writing a GUI in swing, and I seem to be having some sort of a pixel mismatch problem. There are two verifiable symptoms so far. I have a BufferedImage that is intended to serve as a ribbon across the bottom of a larger page. I've run createGraphics() on it, and I am using that graphics object to draw hashmarks and numbers to the buffer, and thence the screen. The larger page is arranged in SpringLayout. I'm having two problems that I'm pretty sure are connected.
- first is that the numbers that I'm drawing to the BufferedImage keep dropping pixel columns. Zeros will be drawn with the middle column gone, for example (and thus no hole). At smaller resolutions, unbolded, they can look like Cs if the drop hits the wrong spot.
- the bottom ribbon itself goes all the way to the left edge of the page, but the numbering isn't supposed to start until a bit further in - matching up with a spring width from further up the page. The x coord used for drawing and the width spring used for layout are both drawing from the same variable, and thus should be identical, but the number and hashmark are about 4 pixels to the right of where they should be. My guess is that a detailed search would find that there are 4 columns missing between the hashmark and the edge of the screen - which would line up with the approximate frequency seen further in.
I have tried messing with (java-native) fonts and sizes, I have tried swapping back and forth on bold, and I'm pretty sure by now that it's an error somewhere in the pixel lineup. Does anyone have any idea what causes this, or how to fix it?
Thank you for your time.
Fibula

Hi, sounds like an interesting effect, but is rather hard for me to picture from just your description. A small compiling & runnable example demonstrating your problem would really help here. By the way, with "pages", do you mean panels?

Similar Messages

  • Hyperlinks in cells, how do you deal with it?

    I've got the hyperlinks palette open (Windows menu / Interactive / Hyperlinks)
    Selecting a cell (or a table), that I would like to be clickable in a PDF, disables the hyperlinks address text field:
    Obviously hyperlinks from cells are not supported.
    How do you deal with it? Do you put empty textboxed on top of each cell that should be clickable?
    Thanks,
    Andreas

    @Andreas – to choose buttons over text based hyperlinks would mean you can define the area that is responsive like you want (the size is the size of the button) and you could design different button states in different ways (color, images, what not…).
    For the scripter in you: Hyperlink objects have no geometric bounds, Button objects have…
    Just an idea:
    Imagine a script that is scanning all cells of a selected table and if there are hyperlinks detected uses position, width and height of that cell to generate a button just on top of the cell (it could be well on a different layer above) using the information the hyperlink provides. Every time the table is changed by the user and the script is fired again, the old buttons are removed and new buttons will be built…
    If there are more hyperlinks than one in a specific cell, the buttons will be built around the area the hyperlinked text will occupy…
    Uwe

  • How do I deal with JPEGs of wildly various sizes for my HD Project?

    My project comprises HD DVCPRO Interviews.  Within those Interviews I'm trying to integrate JPEGs that were given to me on an external drive, but their Frame Sizes vary from 159x180 to 12648x9575 !  How do I deal with a 4584x5928 .peg for instance?  Does anybody have any idea?  I tried MPEG Streamclip_Export Frame_720x480 and it comes out crushed horizontally.  What dimensions would you recommend? Thank you very much for any suggestion.

    When you add the anything to the timeline, they "adopt" the sequence settings.  The clips themselves won't change at all...but when added to the timeline, they "render" to the sequence settings. So the stills will remain with the dimensions they have, but when rendered, the portion you added to the timeline will adopt the timeline settings.
    No need to buy Photoshop. PREVIEW is free, part of the apps that come with your computer, and can resize any picture file.  No need to get GIMP. 
    Yes, resize all stills to under 4000 pixels BEFORE you import. FCP will have issues with anything over 4000 pixels. 
    >2)  How do you calculate the other Dimension to go with 3800?
    No idea what you mean.  Just use Preview...in the TOOLS menu use ADJUST SIZE, and make sure that the SCALE PROPORTIONATLY is checked and when you adjust one number, the other will scale to maintain the same dimensions.

  • Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Welcome to Apple Support Communities
    Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691

  • How do I deal with constant "error loading content" messages?

    I'm constantly seeing error messages on my Apple TV (2nd gen) on content I easily watch on my other iDevices. What gives? This thing is rapidly becoming a vy expensive paper weight. Possibly the worst Apple product I've yet purchased. Am I alone in this?  What can I do?

    You cannot connect to TC using USB.
    Plug the TC into the computer using ethernet.
    Press and hold the reset button on the TC for about 10sec.. until front led rapidly flashes.. release it.
    Open the airport utility and make sure you can locate the TC. Check the disk page that the disk started up without errors.
    When you say
    Sodrawi wrote:
    How do I deal with the error message at my Time Capsule saying "There is a problem to connect to server xxxx-Time-Capsule.local."
    I am guessing you mean Time Machine.
    If TM still cannot find the TC disk.. reset TM and redo the setup.
    Read A4 here.
    http://pondini.org/TM/Troubleshooting.html

  • HT1420 I purchased new computers twice within the same year because they old were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers.  How do I deal with this situation.

    I purchased new computers twice within the same year because they were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers because it has been less than a year.  How do I deal with this situation?

    BrianBlaze wrote:
    I have 3 Computers at home, I am studying computer sciences and am constantly rerformatting my computers, installing windows and linux over and over again.... EVERYTIME I reformat I have to authorize the same computer and so it takes up one of my 5 authorized computers... Anyways after deauthorizing all my computers in september I was not aware I couldn't do it for another year (why does APPLE assume these stupid tactics prevent piracy). Anywysw I need to reach apple and have them make it so I can do it again. I had a similar problem with Playstation and when I called them they fixed it for me... even windows (which you can only have one serial per computer) made it easy because all I had to do was call them and they fixed it for me. Now I need APPLE to do the same and this is the only place I could see to actually say what is going on... I can't believe I have to do this with my iPhone... I wanted an mp3 player and a phone together and if I can't put new songs until September 20, 2012 I am going to freak out!
    HELP!
    Brian
    Try this link: http://www.howtogeek.com/howto/23974/beginner-deauthorize-all-computers-associat ed-with-your-itunes-account/

  • It says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • HT5621 I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    Try here
    http://support.apple.com/kb/HT1311
    when you have UK Cards etc best to change as well

  • Adobe always quits unexpectedly in Mac when I read a bit fast. How can i deal with it, plz?

    Adobe always quits unexpectedly in Mac when I read a bit fast.
    It is the latest update.
    How can i deal with it, plz?

    You posted in the forum for iPad and iPhone (different app). I've moved your question to the Reader forum for desktop/laptop computers.

  • How can I deal with an apostrophy

    My simple questions is how can I deal with an apostrophy when I trying to save to the table, here is an example in how I am saving.
    'Sandr'as Casa' this gives me an error message. I have to do it like this
    Strings.replace("Sandr'as Casa"," ' "," ' ' "), a package function
    SQLDesFollow = "UPDATE [CRVMReq] " +
    "SET [SkillSet]='" + Strings.replace("Sandr'as Casa"," ' "," ' ' ")+ "'" WHERE [ReqId]='" + ReqValuesReqId[4] + "";
    dbs.execute(SQLDesFollow);
    SQLDesFollow = "UPDATE [CRVMReq] " +
    "SET [SkillSet]='Sandr'as Casa' WHERE [ReqId]='" + ReqValuesReqId[4] + "";
    dbs.execute(SQLDesFollow);
    any help will be appreciated.

    Here is the magic word: PreparedStatement.
    Start here:
    http://java.sun.com/docs/books/tutorial/jdbc/basics/pr
    epared.htmlSeconded, thirded and fourthed.
    And if later readers of this thread feel that they would like to provide another answer then they should think again because they would be wrong.
    There is only one correct answer to this question. PreparedStatement.

  • How can I deal with long sql by the oo4o?

    I am using VB and oo4o to develop a sql executor which is a extention of an old system.
    For some reason, I have to use oo4o v8.1.7 to deal with Oracle Database 8i to 11g.
    But when I send a very long sql(11KB) to it I got a error in the VB enviroment.
    The Err.Description is "automention error. Started object is disconnected by the client.".
    The Err.Number is "-2147417848 ".
    The sql that I send it to the program is a simple select sql that like select a, b, c, substrb(d, 1, 2), substrb(e, 2, 3) .... from A_TBL where A=aa;
    This sql is normally executed by the sqlplus but I got an error by the oo4o.
    When I insert a '' between the 30Xth items, it got exectuted normally.
    ex. select a, b, c, substrb(d, 1, 2), substrb(e, 1, 2) ..... substrb(303th, 3, 4), '', substrb(304th, 1, 2) ... from A_TBL where A = aa;
    How can I deal with this problem? Thanks.

    So how can use this function correctly?By learning what exceptions are, how they're used, and what you can do to deal with them. There's a tutorial here: http://java.sun.com/docs/books/tutorial/essential/exceptions/index.htmlAnd here's a quick overview:
    The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
    RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
    If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
    Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

  • How do I deal with the"new itunes library" fiasco

    how do I deal with the "new itunes library" fiasco...?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • TS1436 I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    I received this message twice on 2 new & separate attempts to burn a playlist to a NEW cd:  "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What is a "medium write error" and how can I deal with this?

    Hello Pat,
    The following article provides troublehsooting steps and information that can help get iTunes burning discs again.
    Can't burn a CD in iTunes for Windows
    http://support.apple.com/kb/TS1436
    Cheers,
    Allen

  • How Oracle to deal with the data lose?-----QNo.104

    In incomplete recovery,some data will be lost. How Oracle to deal with it?
    For example, at 9:00am, you find that it is a mistake to drop a user(you dropped it at 8:30am). But other users' transactions are in progress. A lot of data is input between 8:30 and 9:00. If decide to make a incomplete recovery, does this means all the data input between 8:30 and 9:00 will be lost?
    Message was edited by:
    frank.qian
    Message was edited by:
    frank.qian

    For example, at 9:00am, you find that it is a mistake to drop a user(you dropped it at 8:30am. But the transactions are in progress. To make you clear, you can't drop the user while session connected to this schema.
    I dont think that you would loose any data.
    The other workaround for this issue would be,
    I would clone this on other server just before the user dropped, take the export and then import the user in the production.
    Is this satisfy your question?
    Jaffar

  • How do I deal with a Runtime Error on Adobe Acrobat 9.5?

    How do I deal with a Runtime Error on Adobe Acrobat 9.5? The instructions say to contact the support team but I have to pay in order to do so.

    What operating system and what is the statement of the error. Typically you would first run a repair on Acrobat from the help menu (or in Windows you can do that from the Control Panel>Add/Remove Programs).

Maybe you are looking for

  • Multiple production clusters on the same network? just change UDP port?

    If I want multiple production clusters on the same network do I just make sure each cluster is on it's own multicast port? or are other changes required? Thanks, Andrew

  • Server start fails with "\Java\jre6\lib\ext\QTJava.zip was unexpected..."

    Killed the iop server in preparation for bootstrap. When I tried to start it back up, I got the error below. Get the same message when starting the Weblogic admin server. Rebooting didn't help. Has anyone seen this before? Thanks! C:\GFBT>REM Uncomme

  • Help me with this very little PROCEDURE

    create procedure Prueba as begin declare total_u number; begin select count(*) into total from emp; end; end; What I want is to count all the records and output it in the screen. But it looks like it cannot be performed in a procedure... is it possib

  • Cant use screen mirroring wirelessly since yesterday

    I got home today and i cannot get my HP laptop to connect to my samsung smart tv anymore..  I have only had this laptop for about two weeks but it has worked flawlessly since puchased and connected without any issues.  I use this feature to stream mo

  • EP6 on WAS 6.40 SP9 - ssl service does not start

    Try to start the service SSL provider within Visual Administrator (dispatcher->services->ssl provider) - but this error occurrs: java.rmi.RemoteException: Could not start service ssl on cluster ID 9788500; nested exception is:      com.sap.engine.fra