Small window preview question

Hi all,
In some graph/diagram drawing applications there is the possibility of showing the whole "diagram"
in a small window in a corner even if in the main window only a portion of its is visible. This small window
shows also the visible part of the diagram inside a red rectangle (something like Acrobat thumbnail view).
Does anyone know how this small window is called and if it is possible to create one in Java?
Thanks.

That's not hard to do. Say _diagramPanel is a reference to a JScrollPane containing the component rendering your diagram:
public class PreviewPanel extends JPanel {
   protected void paintComponent(final Graphics g) {
      final Graphics2D g2 = (Graphics2D) g.create();
      g2.scale(0.2,0.2); //here, of course, you should compute a proper scale factor
      _diagramPanel.paint(g2);
      g2.setColor(Color.RED);
      g2.draw(_diagramPanel.getViewport().getViewRect());
      g2.dispose();
}...and you're pretty much done. All you have to do then is make sure that the PreviewPanel is being repainted whenever the diagram panel updates in any way.

Similar Messages

  • Getting BHO from what looks like a program by eboom that shows up as a small window on RH bottom side. Also webpages being redirected automatically.

    I get a small window on bottom RH side of my screen with "suggested sites" Usually the very site I am on. I right click on this window and it does not act alike a normal window, cannot close it or view its source. It does state that Eboom is providing suggestions.
    Also something, i think this malware or BHO is trying to redirect my webpage. I have set up Firefox to not redirect. That helps a little. Also opening links in new tab seems to help.
    I reviewed my add-ons and extensions and nothing unusual. I have tried to look for something in history and I have found very little. I have run multiple malware, spyware, adware, and virus Scans. Used Malwarebyte, SuperAntispyware, Norton, and Exterminator from PC Pitstop, all to no help. I have looked up this information and all I find is an issue with a toolbar on IE. I do not get a toolbar.
    These links are some of the attempted redirects.
    http://findgala.com/?q=ask+question+firefox
    http://findgala.com/?q=question+ask+firefox
    http://www.freshswift.com/search.php?q=question+ask+firefox&xrid=2801278125030618963&resultid=0
    http://www1.activitycatalogue.com/?q=question%20ask%20firefox

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I am having a problem with pop pups and small windows with ads constantly opening up on my safari?? Thought that macs didn't get virus? this looks like one- any experts around? please help me fix it with your instructions? really don't know what to do...

    Hi everyone,
    I am having a problem with my Mac OS X 10.7.5 mac book air , there are constant pop pups and small windows with ads blinking constantly opening up on my safari in front of everything?? it is constantly interupting me and makes me mistakingly click on it then another new windows open behind the one im using..
    I am not too sure if thats a virus or trojan.. I always thought that macs didn't get virus? this looks like one to me… any experts around? please help me fix it with your instructions? really don't know what to do... thanks

    Those are not viruses. You have probably installed some malware:
    The Safe Mac » Adware Removal Guide
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using Dr.Web Light from the App Store. It's free, and since it's from the App Store, it won't destabilize the system. If you prefer one of the better known commercial products, then Thomas recommends using Sophos.(Thank you to Thomas Reed for these recommendations.) If you already use Sophos, then be aware of this if you are using Mavericks: OS X Mavericks- Sophos Anti-Virus on-access scanner versions 8.0 - 9.1 may cause unexpected restarts
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect anything targeting the Mac because there
         is no Mac malware in the wild, and therefore, no "signatures" to detect.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

  • When i open safari 8.0 it never open in the full screen mode.....only the small window.....how can i change this? thx

    when i open safari 8.0 it never open in the full screen mode.....only the small window.....how can i change this? thx

    I have the same question.  This is also made more difficult as apple has taken away the handy full screen icon on the upper right hand corner.

  • How can I get a small window to open when a link is clicked (AS2)

    Hi i,m developing a HTML site and used one animated flash button(AS2) I want a small sized window to open when a user clicks on a button.
    The window will contain information that i want to display.It dosnt require a normal 800x600 window to open. I just want a 1/4 size of 800x600 etc. Is this possible and if so how.
    I havnt done this before
    Thanks
    Manoj

    HELLO NED,
    I WAS RECEIVING MANY MAILS FROM YOU, BUT I DON'T UNDERSTAND WHY DOESN'T RELATED WITH MY PETITION, I SEND
    TO YOU AGAIN MY QUESTION, AND IF YOU CAN HELP ME I APPRECIATED VERY MUCH LET ME KNOW.
    THIS IS MY QUESTION....."ABOUT DATAGRID AS3
    Hello Ned, I appreciate very much your soon answer, I believe you have understand me, but how can I do that? could you give some help? This is part of the code and this is the function that I use
    var url: String = "xmls/rests.xml";
    var req:URLRequest = new URLRequest(url);
    var myLoader:URLLoader = new URLLoader();
    myLoader.addEventListener(Event.COMPLETE, completeHandler);
    myLoader.load(req);
    function completHandler(event:Event):void {
           var myLoader:URLLoader = event.currentTarget as URLLoader;
           var xmlDP:XML = new XML (myLoader.data);
           XML.ignoreWhitespace = true;
           dp = new DataProvider(xmlDP);
           dp = sortOn("name", Array.CASEINSENSITIVE);
           dDg.dataProvider = dp;
           aDg.addEventListener(Event.CHANGE, changeHandler);
           function changeHandler(event:Event): void {
                var thisItem:Object = eve.target.selectedItem;
                descripTa.text = thisItem.description;
                aUI.source = (thisItem.image);
                preloader_mc.visible = true;
    My intention is that when a button from a main (swf) loads the swf it displayed the first selected item with a image (UILoader) and the description (TextArea)
    Thanks in advance Ned
    Joselyn             .................."
    THANKS AGAIN NED
    REGARDS
    JOSELYN
    Date: Thu, 13 Oct 2011 07:49:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I get a small window to open when a link is clicked (AS2)
    Re: How can I get a small window to open when a link is clicked (AS2) created by Ned Murphy in Flash Pro - General - View the full discussion
    Look at the Methods section and choose whichever suits your needs, the first one listed does not.
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3969302#3969302
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3969302#3969302. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Flash Pro - General by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • 100 percent width issue with smaller windows

    It took me many times to try and submit this, perhaps as the title had the percent sign? I kept getting the system errors and logging out automatically (see system error below) even though other similar posts have the % sign in the title.  So I am trying to view similar discussions, especially at https://forums.adobe.com/thread/1455954?q=100%%20width but my browsers won't let me read that page once I'm signed in.
    Anyway, I am having a similar issue in that when my window is made smaller (ie. a small laptop was browsing) until the horizontal scroll bar appears, after scrolling to the right many of my verified 100% width objects do NOT continue.  See homepage of htttp://www.STLcello.com for example (looks fine unless you force to a smaller window, than scroll to the right to see how the header and footer items don't continue even though they do.
    I'm hoping someone will have an answer to this or the other guy's question that this has been unanswered for months now!
    STL
    System Error
    We're sorry but a serious error has occurred in the system.
    Status Code: 500
    Exception Type:
    Error Message:
    Request URI: /adobe-logout.jspa
    Stack Trace:
    javax.servlet.ServletException: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "%2"

    Hi Dandalo
    Unfortunately this is not possible with Tooltip , but you can use full screen slideshow which will have the similar effect but the limitation being the content on the page which will be not same as the referenced site you have posted.
    Thanks,
    Sanjit

  • U/I is a small window + preference can't be seen on imac the popup too small

    When the T-Bird opens within the 21" iMAC is the Yellowstone OS, it is a small window and I have to manually enlarge.....and when I go to the preferences the popup is too small plus can't move the window information to read, in spite of the font being large enough. The popup is static in size so I can't enlarge it. Since the version installed, in the past three weeks, can't be found due to this problem. Sorry, can make it take a screen shot for you.
    My question then is: will there an update soon or will I need to switch to another?

    lets have that screen shot. Please

  • My printer prints very small .i preview doc. it look good [150] then i print ,results very small

    hp photosmart my printing comes out small. i preview set view 150 then print ,it cones very small

    Sorry to learn tha you are having this issue;
    Can you share what printer (complete printer model) are having issues with?.  take time to read this post  GO HERE  it will give you a better perspective on how post your question for maximun possibility of getting help.
    I will do my best to assist you;
    Regards;
    RobertoR
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • Overprint Preview question

    I am trying to print a film positive for a spot UV job that is supposed to have some text reversed out of it.  Output Preview does not show the text. My RIP does not see it either. I can only see the knocked-out text when I turn off overprint preview in Acrobat preferences. I guess my question is what did the artist do wrong when he made the PDF? Also, is there a preflight profile I should use on all the files I receive, to prevent this confusion from happening again?
    I am using Acrobat 9.5.1 on Windows 7
    RIP is Roland VersaWorks

    Do you know what software the artwork was created in?
    If I didn't see reversed text, I would first check that the reverse field object was not set to overprint -- which would eliminate reversed-out type. Some other issues can interfere with reversed type -- using an unavailable font for example, or the text not being set to white, and several more exotic settings and techniques. Some DP software has trouble knocking out type if it's not the frontmost object on the page.
    BTW, the title says "Overprint Preview question" but I think you're just asking about "output" preview, though it did make me think of the overprint setting issue.
    As to preflight profile, you have to make sure everything is set right for your particular output device/print conditions. You might want to run a profile that checks for missing fonts, low-resolution images, non-CMYK inks -- anything that would give problems in film/plate output or on the press.
    Also, when I have text problems, I try printing to other devices -- laser printer, inkjet, whatever -- to see if the problem is device-specific.
    Hope that helps a little

  • IPhone 6Plus on every reboot after putting in my password it opens to a small window asking for apple id password

    everything works on phone and wow it's big compared to my iPhone 5s. went with space grey since i have had 3 white phones in a row. restored via iCloud backup. updated iTunes as i have about 3,000 songs. 250 bought the rest ripped to AAC from my cc's....what a pain but switched from my windows desktop to this new rMBP late 2013 for xmas and iTunes is slightly different on a mac than windows and where everything is stored on drive.
    anyhow problem is every time i reboot after putting in my password and arriving at whatever page i left at i get a very small window asking for my Apple id password. Now the top half is pre filled in with the email address i use for iCloud/itunes/apple/etc.
    i did see in settings there is a checkmark i cannot remove that says for apple password "ask immediately" there are no other choices. it can't be unchecked by any method i found.
    any help appreciated.

    In case anyone else gets this I hit cancel once and it has never come back.

  • I see a small window displaying "Are you sure you want to shut down your computer now". How do I stop appearing this window

    I see a small window displaying "Are you sure you want to shut down your computer now". How do I stop appearing this window

    Is this after you've chosen to Shutdown from the Menu, or just on it's own?
    You can press the esc key to cancel, or Enter key to shutdown.
    Check your System Preferences>Energy Saver>Schedule & see if it's set to shutdown at a certain time.

  • TS3274 my ipad won"t turn off. there is a small window with an email text in it and it appears frozen on the screen. How can i turn the ipad off?

    my ipad won"t turn off. there is a small window with an email text in it and it appears frozen on the screen. How can i turn the ipad off?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Could you please add to the smaller windows in mission control the icons to the open applications

    Please Apple add this feature.  I loved spaces and could see in the open windows better to know where I'm going.  Just add the icons to the small windows and that should take care of the problem.  I'm getting lost because I'm not sure which the application is in what window.

    Apple don't read these forums, they're for user-to-user only.  You want:
    http://www.apple.com/feedback/macosx.html

  • How to change background color in small windows?

    MacBook Pro, OS 10.6.3, G5.
    When I open an image to edit, the adjustable small windows, e.g., Navigator, size, opacty, all have a dark gray background that makes reading the number almost impossible.  Surely I am doing something wrong but I'll be danged if I can figure out how to change that background.  In fact, in the individual preferences also, e.g., Units & Rulers, the "adjustable" small windows (Column Size: width, gutter; New Document Preset Resolutions: print resolution, screen resolution) are also very dark. 
    I have used Elements for Windows for years and have just received Elements 8 for Mac and this is extremely frustrating.  I appreciate your help and your patience as I try to sort this out and solved

    I greatly appreciate the two responses above. However I think I may be out of luck. The first response doesn't seem to include the Mac operating system, which I am using, and the second may not have understood my problem - but I could not figure out how to follow the advice given using "preferences" to even try it. It appears to be a matter of terrible user-oriented design by Adobe. I have in fact started again using my earlier version on my old XP Windows machine, as my brand new version is essentially useless to me - I simply can't read the dark grey numbers on the dark grey "windows".

  • Ever since installing iCloud and Lion my computer is slow or freezes.  The color wheel comes on and My work stops.  I have only a small window of time where my computers will function normally during the day. I know many others that have the same problem.

    Ever since installing iCloud and Lion my computer is slow or freezes.  The color wheel comes on and My work stops.  I have only a small window of time where my computers will function normally during the day. I know many others that have the same problem. I'll get 20-30 minutes of work done and then a sync or something comes on, the color wheel of death shows up, and my productivity is shot.  I have to shut the computer down the hard way!  when it comes back up, it is still either frozen or slow.  I've checked in at the genius bar and all they say is that there have been some problems that Apple is trying to fix.  It effects Mail, Contacts, Safari, Calendar....yeah, pretty much everything.  My iPhone and iPad are not effected as much so I end up doing what I can with them.  I've seen the blogs out there and understand that many have the same problem.  I have been waiting to read about a fix but I have found nothing!  Any ideas?

    Not enough free space on the startup disk can slow the system down.
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    For startup issues...  open System Preferences > Users & Groups - Login Items. Delete any apps listed there then restart your mac.
    And disable the Lion "resume" feature.
    Open System Preferences > General
    Deselect:   Restore windows when quitting and re-opening apps
    And Spotlight may be indexing... you can turn that off > Turning Off Spotlight | Mac Tricks And Tips

Maybe you are looking for

  • Switch statement problem

    I am doing a question in which I have to make a simple ATM program that can withraw and deposit money as many times as the user wants. To exit the program the user has to hit "x". I have to use a switch statement. Im getting incompatible type errors

  • Hi abap experts (one help)

    hi 1. please send standard data base table names related to    fi/co? 2.  please send any objects related to fi/co (weather its   reports bdc, scripts or smarforms)?

  • Oracle 9i not sgetting started automatically

    hi Oracle 9i not getting started automatically after installation on windows 2000 does it works properly on windows 2000 has anyone installed it before with out problems i have to connect internal and then it mounts the database can anyone please tel

  • Can i use apple tv through my imac monitor?

    can i use apple tv through my imac?

  • External Report Service

    Hi, I am using the External Report Service to run and extract some custom data. I have the process working fine in SOAP UI, which returns XML, with the report contents as BASE64 string in the <reportBytes> tag. The problem comes when I try to parse t