The graphic of Java2D is too small

Dear all,
I dunno why, but my graphic is always very very small,
no matter how big I change the x and y of Point2D[]...
the Line2D of (0, 0) to (0, 10) is the same as (0, 0) to (0, 1000)
Should I set some Renderer for Graphic2D g2??
or use some setBlah Blah method for JPanel??
Please help,
George

Ok, thanks :)
public class Xxxx extends JPanel
    private AbstractPainter painter;
    private Point2D[] points;
    public Xxxx() {
        this.setPainter(new LinePainter());
    public void setPainter(AbstractPainter painter) {
     this.painter = painter;
     int n = painter.getPointCount();
     points = new Point2D[n];
     repaint();
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.draw(painter.drawShape(points));
public class LinePainter extends AbstractPainter
    public LinePainter() {
     uper(2);
    public Shape drawShape(Point2D[] p) {
        return new Line2D.Float(p[0], p[1]);
}

Similar Messages

  • When i browse with firefox the search results come up too small to read and I can't find any menu buttons (ie, can't find anywhere to zoom in or the view menu)

    Have just got a new computer. Downloaded firefox as it has always been better than explorer and I've never had trouble on previous computers. It seemed to download okay. I set google as my home page. When I type a search phrase into it, the results page comes up too small to read. It's like it's normal but miniature. You know how google has google images, googlevideos, google maps across the top of it, if I click on the minature 'images' word, it comes up with the google images page but also very tiny. But if I click the mini 'videos' word, the videos search page is normal sized and so is the maps page.
    It's driving me crazy because the initial page seems okay but there's no normal google stuff on that either, and then when I try to search for something, it goes tiny.

    Hello Ashley.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    On the other hand, you may have Firefox configured to display fonts like that. Check Tools > Options > Content > Fonts & Colors and see that the font size is not too small. In my experience, sizes bellow 16 will be way to small to read.

  • I'm new to Mac's and I find the display's just slightly too small. I'd like to increase the size for all my program. Is there a single setting that I can change?

    I'm new to Mac's and I find the display's just slightly too small. I'd like to increase the size of my display for all my programs. Is there a single setting that I can change as a default setting?

    You can drop the resolution a little, but it makes everything blurry.
    OS X isn't as friendly like Windows is to give some UI adjustment, one of many major complaints about the platform that has gone unheeded for years now.
    As a lifelong Mac user who's eyes are going due to age, I'm really liking Windows 7 more and more every day.
    If you use Firefox, NoSquint and Theme Font & Size Changer add-ons, with a nice persona that makes better contrast, tweak the FF toolbars, you can at least make your web surfing tolerable on Mac's.
    Also you can set a Control key in System Preferences > Universal Access plus a scroll wheel mouse, if you need to zoom in/out certain areas of OS X, however for a pernament UI scale solution there is none that's practical, unless you have a large room, a projector and a smooth wall.
    A larger monitor won't work up close neither, however dropping the resolution and sitting back a bit might sharpen the images a bit.
    The UI really needs to be adjustable and it's not.

  • Why are the graphics/page in facebook suddenly smaller font and images? Is not happening in IE and screen resolution is correct.

    Why are the graphics/page in facebook suddenly smaller font and images? Is not happening in IE and screen resolution is correct.

    I heard back from Nike+ support and they said that there will be newer pics soon and it also appears that this corrected itself for my runs, but not the user pic, I only get girly options, I wouldn't mind a picture of a guy on 'ROIDS!!! Just kidding, but something less feminine or cartoon like, I'm trying to be serious about this and the site should reflect that.

  • The font in the URL address line is too small. How do I make it bigger? My computer screen is already set for maximum size.

    # Question
    Since Firefox last updated to a new version, the font in the URL address line is too small. How do I make it bigger? My computer screen is already set for maximum size.

    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #urlbar .textbox-input-box {font-size:13pt !important;}
    #searchbar .textbox-input-box {font-size:13pt !important;}
    #FindToolbar .textbox-input-box {font-size:13pt !important;}
    </nowiki></pre>

  • I bought Adobe CS6 Design Standard, however on my new laptop (3840x2160 pixel screen) the program interface is way too small and i cannot size it larger. Anyone an idea?

    I bought Adobe CS6 Design Standard, however on my new laptop (3840x2160 pixel screen) the program interface is way too small and i cannot size it larger. Anyone an idea?

    Hi,
    Is there any particular application's interface that is coming up small or is it happening with all the products?
    Cheers,
    Kartikay Sharma

  • The App Store print is too small and apparently unadjustable.  I am in my 60s and this problem will not resolve itself over time.  How does one effectively complain to Apple?

    The App Store print is too small for my 7th-decade eyes and is apparently unadjustable.  How does one effectively complain to Apple about this?
    Thanks, Jeremy

    Hi Jeremy...
    There's a work around that may help you. The Mac OS X has "accessibity" features installed that can assist in viewing text.
    Open System Preferences then select Universal Access then select the Seeing tab.
    Zoom settings are available there.
    More about Mac OS X accessiliity here >  Apple - Accessibility - OS X - Vision
    You can provide feedback to Apple here >  Apple - Mac OS X - Feedback
    If you are not aware, when viewing Safari webpages, you can press Command + (plus)  or Command - (minus) to adjust the size of the page.
    For zooming text only, click View from the Safari menu bar then from the drop down menu click Zoom Text Only.

  • How can I remove the BootCamp partition? as the size i created ws too small to install MS Office on 64Bit Windows 8.1 on MacBook Pro (Aug'13)

    How can I remove the BootCamp partition drive for Windows 8.1, as the size which I created was too small for me to install Microsoft Office onto Windows 8.1 64-BIt. The machine which I have is the MacBook Pro 13' inch purchased in August 2013.

    Either use Paragon's CampTuneX to resize it or use Boot Camp Assistant to remove the partition and restore the drive to one partition. Then create a new, larger Boot Camp partition. This will remove/delete/erase your Windows system.

  • Hello MacBook Pro Musicians- I cannot read sheet music from the ipad. It is too small. I want to connect a large monitor, hopefully wirelessly to my 13 inch macbook pro. what would I need to connect ? Any suggestions on how to keep monitor from falling?

    Hello Macbook Pro Musicians--I cannot read sheet music from my 13" macbook or from an IPad. The print is too small for these aging eyes! So I need to get a large monitor to attach to the Macbook.  I want the monitor to be connected wirelessly or using a blue tooth.  This will eliminate alot of potential mishaps
    when playing out.  Also I am having a time figuring out how I am going to safely keep the monitor on somekind of music stand without falling!!!  Can anyone help me with this?

    Hi Julius,
    As you can see in my profile section, my MBP is older by 5 years, 2GB RAM and with regards to question 1 (Q1), has no problems with having all those programs open at the same time with the possible exception of Photoshop since I use Gimp instead. With twice the RAM and much overall much better specs, Photoshop shouldn't be an issue. But you listed some other activities that might need that additional RAM. But the advise most give is to not get it from Apple but from a third party.
    Q5 - I always get Apple Care. Only had to use it once but it paid for itself that one time.
    Sorry, can't help you much with the questions you really want answered since I won't have a new MBP until (hopefully) next week but for Q4, I believe it depends on the peripheral. My current monitors are too old to allow them to be hooked up in a chain. Supposedly, if the monitors do have the ports, you could via the MBP Thunderbolt port. The speeds are also dependent upon the peripheral. If the external hard drive is using a USB 2 port, you are limited by that speed (480 Mb/s). If it has a Thunderbolt port, then from what I understand, we, my friend, are in for some great times because I believe your RAM will have the ability to access data as fast as it can take it at 10Gb/s (and if will need those kinds of speeds, the 8GB of RAM may be the way to go). The Thunderbolt demos on YouTube where they are accessing four video files from a Raid drive, then sending them back out via Final Cut Pro to a monitor are amazing. I'll probably never push this machine to anywhere near it's limits but I can't wait to see what others do.
    Peace,
    Jeremiah

  • Has anyone solved the problem of 'oop,file too small' when uploading iMovie project to Vimeo.

    Vimeo says ' oops, file too small' when I try to upload an iMovie project. My file is definitely big enough. Any clues, please?

    It's OK, I've cracked it with the help of my son.

  • In iPhoto 11 imported tiff files remain tiff after editing.  I need to convert to large file jpegs. How? using the "export" function they become too small

    I thought imported tiff files would be converted by iPhoto to JPEGS in previous versions of iPhoto.  this might have been a disadvantage but my current project requires JPEGs as the final product.
    thanks for any guidance
    Jim

    Drag the photo from the iPhoto window to the desktop or export as kind = JPEG
    As to too small - what is too small?  The pixel dimensions of the exported JPEG will be identical to the original TIFF - the file size is smaller because JPEGs are compressed - which of course reduces file size - which of course is the reason that JPEG exists
    LN

  • I use gmail and some emails I get do not show the graphic or picture only a small graphic icon.

    I use gmail for my email. Some of the emails I receive do not show the graphic or photo. I can see the graphic/photo in Internet Explorer and when I hit reply in Firefox. This started happening about 5 months ago. I used to be able to see the emails with no problem... I have checked all options and do have display images turned on. This happens with every email from a yahoo group and some other emails as well. I have the latest version of Firefox. I tried uninstallng and reinstalling firefox... no change.
    == This happened ==
    Every time Firefox opened
    == about 5 momths ago

    Check the image exceptions: Tools > Options > Content: Load Images: Exceptions - See [[Options window - Content panel]]
    A way to see which images are blocked is to click the favicon (''Site Identification'' icon) on the left side of the location bar and click the "More Information" button.
    This will open the Security tab of the ''Page Info'' window (also accessible via Tools > Page Info).
    Go to the ''Media'' tab of that Page Info window.
    Select the first image and scroll down though the list with the Down arrow.
    If an image is grayed and there is a check-mark in the box ''Block Images from...'' then remove that mark to unblock the images from that domain.
    See also [[Images or animations do not show]] and http://kb.mozillazine.org/Images_or_animations_do_not_load

  • When I open an e-mail, I get 2 read panes. One in the middle of the in box and the normal reader pane. It blocks part of the in box and is too small to read

    In the last 2 weeks, I get a second reader pane for my e-mail. It is between the in box and the normal reader pane. It is small and I cannot read the message. I want to get rid of it. I went to Microsoft explorer and had no problem like this. Please help!
    Thanks,
    LeVoy

    Acrobat Support

  • HT201504 2015 Calendar font for the month in IPhote is too small.  How do I make it larger?

    I have created a 2015 calendar in IPhoto but the month is printed in a tiny font.  I can't make it larger. The 2014 calendar used a large font for the month.  How can I resolve this so can actually read the name of the month without my glasses?

    That was just a test.  It showed that your current library is damaged and needs repairing. Do the following to your current library:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window. Be sure to follow the circled recommendation in the screenshot.
    2 - run Option #4, Rebuild Database.

  • The icons on cs6 are too small

    Icons on cs6 are too small

    If your using a high resolution PC tablet or Laptop you can use a low resolution external display.  CS6 UI was designed for displays with a 96 DPI resolution.

Maybe you are looking for

  • Microsoft's connect website doesn't show content properly in firefox

    I have contacted Microsoft directly regarding this matter but did not receive a reply. Also their connect website no longer allows filing bugs on the website itself so I don't know where else to report this. Please forward this to whomever oversees t

  • Bex Query Exception Not Appearing In Bex Report

    I have a created an exception in a Bex Query and built a report using the Bex Report Designer. But the exceptions that work fine in the query dont seem to work once I've embedded the query in a report. Is this right? is it not possible to use excepti

  • Form hangs some time frequently??

    hello expert, in my erp system some time a form hangs very frequantly. what could be the reason??? form is used for new BOM or to modify BOM. there is two buttons Add and Mofidy. when i click on Add button, its hangs some time very frequently but mod

  • 9 downloaded install files for CS5.5... what install order, Todd?

         Just got my license approval for CS5.5 and am downloading it from the Adobe licensing site... When I clicked to download the Master Collection CS5.5, I was given a whole bunch of files to download. After leaving out the 32-bit CS4 versions of th

  • Creating Gender option buttons in the Screen ZP000200

    Hi all, I am creating Gender option button (male, female) P0002-GENDR in the customized module pool ZP000200.  Also the Gender field is maintained in the CI include or table P0002.   CHAIN.     FIELD p0002-categ.     FIELD p0002-pstay.     FIELD p000