How to Zoom In/Out on JPanel

Hi,
I am working on an application and it that i have created one JPanel and added custom components to it.
Now my problem is i want scale the JPanel, how an i do that and after scaling the Jpanel i want the all components i added in that also scale and reposined accordingly. Also i want to handle the event from that components after scaleing.
Thanks in advance.

all components i added in that also scale and reposined accordingly.Sounds like you want a Layout Manager, possibly GridBagLayout.
i want to handle the event from that components after scaleing.If I understand that correctly, you want ComponentListener.componentResized and/or componentMoved.
db

Similar Messages

  • How to (zoom in\out) on nokia e5 on images/photos

    how to (zoom in\out) on nokia e5 on images/photos ??
    I cant find zoom or any key to zoom any idea ??
    Solved!
    Go to Solution.

    Hello nour_esmat, did you try the volume buttons and the direction buttons? Try and reply.
    Nokia C7

  • The screen of my iphone 3GS has permanently zoomed in..any one knows how to zoom it out. i tried tapping twice but it never worked,

    the screen of my iphone 3GS has permanently zoomed in.. i tried tapping it twice but it didnt work. any one knows how to zoom it out?

    Double tap with THREE fingers to turn zoom off. Then go into Settings>General>Accessibility and turn it off for good.

  • E72 / Images - how to zoom in/out???

    Hi,
    Could not figure out how to zoom in/out when displaying an image in Media>Images... the usual */# do not seem to work here. And no clue in the provided help.
    Any ideas?
    Thanks!
    Rodolphe
    Solved!
    Go to Solution.

    Well done >

  • How to use scale method in Graphics2D for zoom in/out in JPanel.

    Hi All,
    Iam working on zoom functionality, I have JPanel as my Drawing view while creating iam setting scale as 1.0D... if you click on zoom in or zoom out button iam again setting the scale of graphics2D object like below.
    if(!(g instanceof Graphics2D)) {
    super.paint(g);
    return;
    else {
         Graphics2D g2 = (Graphics2D)g;
         g2.scale(m_dMagnitude, m_dMagnitude);
         super.paint(g2);
    As i added my JPanel on JTabbedPane and when i try to zoom out the view you can see the color difference as both have different back ground color. And when iam trying to add any graphics object it's not adding where you click mouse.
    Can any buddy let me know is there any way to do this, if any one have code pls pass to me.

    The only way to access a protected variable is to subclass.
    MyCalendar extends Calendar
    but I doubt you need to do this. If you only want to tell if a Calendar object has a time associated with it, try using
    cal.isSet( Calendar.HOUR );

  • How to zoom in/out AND resize image?

    sorry if they are stupid questions but i can't seem to find how to resize and image and zoom in/out. I am using Version 3 of Photoshop Album Starter Edition.
    thanks in advance.

    Don't know what you want to do...
    Resize the actual image file? If so, PSA SE can't really do that.
    Just look at an image at different magnifications? Select image, F11 for full screen, then use CTRL/+ and CTRL/- to adjust.

  • My ipod has suddenly 'zoomed in' and it won't zoom out. the touch screen does not move properly, and i do not know how to zoom it out

    My ipod has suddenly 'zoomed in' and it wont zoom out. the touch screen is not moving properly and I have looked in settings but there is no where to 'zoom it out'
    does anyone know how to fix this?

    It is three fingers, not two.  From the Users Guide:
    Zoom in or out:  Double-tap the screen with three fingers.
    kathyfromgrand forks wrote:
    Tap twice with two fingers.

  • Cant zoom back out  on iMac

    using magic mouse , i have accidently zoomed in and i cannot find how to zoom back out without actually having to close the program. i am a newbie - obviously.
    regards
    P

    Check your settings in:    System Preferences > Mouse
    Deselect:  Smart Zoom
    And check settings  in System Preferences > Accessibility > Zoom

  • Shortcut to Zoom in/out on audio waveform in source window?

    Right now the only way i can figure out how to zoom in/out on an audio waveform in the source monitor is by sliding that thin bar area in or out (not sure what that bar is called). Is there a keyboard short cut to do this? - / + and the actual zoom tool are only working on the timeline for me, even though the program window is highlighted.
    Thanks

    In CS6, + / - work.
    Thank you, Adobe!

  • Zoom in/out part of a picture

    Dear All,
    Could anyone please explain how to zoom in/out a particular part of a photo in AE? I had the tutorial once but I seem to have difficulty finding it. It had something to do with 'the anchor point'. It is a simple task with just a few steps but I cannot remember.
    Thank you very much.
    Palinkasocsi

    When you scale an image, it scales around the anchor point.
    This search pulls up a few tutorials about panning and zooming an image and using the anchor point to control the center of the zoom/scale.

  • How to Zoom in and Out on PDF files in Safari?

    Safari help is not helpful since it gives inaccurate information on how to Zoom in and Out on a PDF file that has opened in Safari. The help says to control click the page and choose the zooming level you desire. However control clicking the PDF file in Safari brings up a save page box. I tried some of the other keys with clicking and they did not work. Thanks in advance to those who helped me save a PDF file to the desktop so I can view in Preview.- But often I just need to be able to zoom in to read the tiny text that is displayed.

    Thanks for getting back to me-
    the website I am trying to zoom into a PDF on is:
    http://www.beedocuments.com/software/Timeline/screenshots.html
    I click on one of the screenshots- it loads into a safari window.
    When I control key click on the image- a pop up menu comes up asking me to save the image to deskotp- add it my image library and 2 other save options. No zoom in or Zoom out. I only have an apple pro mouse and my track pad- so right clicking isn't an option.

  • I am unable to zoom in/out using the touch pad; yesterday i could zoom in/out of website pages, pics, etc, now today it is not letting me; how do i fix this?

    i am unable to zoom in/out using the touch pad; yesterday i could zoom in/out of website pages, pics, etc, now today it is not letting me; how do i fix this?

    See Here  >  http://support.apple.com/kb/HT1212

  • How to Provide Zoom-in/out Facility in SmartForms Report?

    hi all,
    can someone tell me how to provide Zoom-in/out facility in a smartforms report? We have a report with very small font and we hardly read contents in preview screen. can someone provide some help on this?
    thanks in advance,
    sid

    This will take in your spool request and download a PDF file to your PC where you can view it in Acrobat:
    REPORT zpdf MESSAGE-ID zc LINE-SIZE 255 NO STANDARD PAGE HEADING.
    PARAMETERS: spoolid LIKE tsp01-rqident OBLIGATORY.
    DATA BEGIN OF pdf_table OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA END   OF pdf_table.
    DATA pdf_fsize TYPE i.
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
         EXPORTING
              src_spoolid   = spoolid
              no_dialog     = 'X'
         IMPORTING
              pdf_bytecount = pdf_fsize
         TABLES
              pdf           = pdf_table
         EXCEPTIONS
              OTHERS        = 0.
    CALL FUNCTION 'DOWNLOAD'
         EXPORTING
              bin_filesize = pdf_fsize
              filetype     = 'BIN'
         TABLES
              data_tab     = pdf_table.
    Rob

  • Safari 6.0 page zooms in (even if I'm not touching the mouse) how do I zoom back out?

    Safari 6.0 page zooms in (even if I'm not touching the mouse) how do I zoom back out?

    I turned off zoom in sys pref so hopefully that will help… but when it zooms in huge "on its own" you have to use the back button to go back to normal size as the double tap doesn't work but half the time the back button is greyed out so you have to close the window and start all over which is a pain in the … so why is my back button doing this. It will do this on a page that I used the backbutton on previously?

  • How to make the zoom in/out scale appear in the media browser ?

    How to make the zoom in/out scale appear in the media browser ? My videos only appear as a file list (only the names) and the zoom in/out device is currently not in the media browser...

    I meant that there is no "Icon mode" button or "List mode" button in my media browser. How to make them appear ?

Maybe you are looking for

  • Error received while accessing a view made

    HI, I have made a view and registered it to the application. But in application, when i access the view , it gives the following error We detected an Error which may have occurred for one or more of the following reasons: Could not find 'Applet' name

  • How to edit images on local drive and then archive to external?

    I have a Drobo that I use to archive my permanent lightroom archive and image files. Currently, everything lightroom resides on this external drive. But the Drobo is no where near as fast as my internal hard drive as far as read/write and seek speed.

  • How do I get my iPod nano to play through the list several times in a row?

    I am not sure if you did understand the question because my english *****... The point is that when i am listening to music the music just stops when the list is played through... I know that i can fix it so it starts over again, but I don't know how

  • Ad hoc query titles

    Hi all, I am making an adhoc query of an infotype - say 0001. Now whatever fields have lov's or f4 possible value helps, their heading in the output is coming in proper text like  'personal number" etc. All those fields which are free text - like Leg

  • What is the purchasing itemcategory in third party

    Hi gurus, What is the purchasing item categoy in third party item   please how can we find this Thanks & Regards Points will be rewarded