Can i set a window Listener to JApplet

can i set a window listener to applet if yes how?
thanks

boss
my problem is i have some drawing in the panel.when i minimize the window it will disappear because it is dynamically getting drawn.So, for capuring the old drawing, i store the coordinates into the vector and
trying to redraw by calling a method when applet gets
maximized.
Initially the application was a stand alone , so i used
JFrame and window listener and whenever frame gets activated , i used to redraw the line . Now we have changed to applet.
And i tried to implement window listener, i could not able to add listener to the contenetPane.
So i decided to call my drawing method from START(),Since start is been called whenever applet is activated.I decided to do so.
But the problem is ,it is calling the method,identifying the
coordinates but the lines are not appearing in the screen.
My suspection is, it is drawing the line and once again
repainting the screen automatically.
If u people wants to see am ready to post the code.

Similar Messages

  • 10.8.6 Column view. Can we set the window width to resize to it's longest file?

    I have a MacBook Pro, 10.8.6. I always have my windows open in Column view. Can we set the window width to resize to it's longest file? I'm always having to manually make the width wider and it's annoying.
    Thanks

    Hi, the latest OSX is 10.7, soon to be 10.8, there is a way in Leopard/10.5 & Snow Leopard/10.6 to make finder display that...
    http://osxdaily.com/2007/12/02/show-full-directory-path-in-finder-window-title-b ars/
    A possible workaround for Tiger/10.4 is both of these which show the full path & is Copyable...
    Find Any File...
    http://apps.tempel.org/FindAnyFile/
    EasyFind...
    EasyFindPath
    Near the bottom of the page.

  • Can I set folder window appearance for a DVD-ROM I'm creating?

    Hi!
    I'm making a DVD-ROM project that my organizaion is going to have duplicated. I'd like the main folder window to have the same appearance (always open in icon view, have a specific background image, sort-by-name, etc.). Is there a way to set this so it will be stored with the folders? Would this have something to do with the .DS_Store file?
    A NOTE: This is gong to be a PC+Mac disc, so the file system won't be HFS+. It's a DVD-ROM of an audio series using a web-based interface. I am running Snow Leopard on my desktop and Lion on my laptop. Not sure if any of these details help.
    Thanks.
    -N
    Neil Marsh * [email protected]
    Artistic Director * The Post-Meridian Radio Players
    Winners of the 2012 Parsec Award for Best Speculative Fiction Audio Drama (Long Form)
    "Character is how you treat those who can do nothing for you."

    Hello,
    Firefox on Windows is now following display scaling options which may render text larger on high resolution displays.
    You can adjust your screen resolution.
    To modify it do the following:
    * Type '''about:config''' into the Firefox address bar and tap on the Enter key.
    * If the warning '''This might void your warranty''' appears, click '''I'll be careful, I promise'''.
    * Search for '''layout.css.devPixelsPerPx'''
    [[Image:Fx22layout.css.devPixelsPerPx]]
    * Double-click on layout.css.devPixelsPerPx to modify its value. The default is -1.0 in Firefox 22 and above. Change it to '''1.0''' to make it work like in previous Firefox versions.
    If necessary, further adjust the value in 0.1 or 0.05 steps. Use values between 1.0 and about 0.5 to reduce elements in size. Use values greater than 1.0 to increase size. For example, a value of 1.25 will increase font size to 125% to accommodate the default DPI setting in Windows 8. '''Double check the value that you enter.''' Setting a too small value will make everything disappear and a too large value will blow things up.
    If web pages still need to be adjusted then you can look at the [https://addons.mozilla.org/firefox/addon/default-fullzoom-level/ Default FullZoom Level] or [https://addons.mozilla.org/firefox/addon/nosquint/ NoSquint] extension.
    To adjust the font size for the user interface, you can use the [https://addons.mozilla.org/firefox/addon/theme-font-size-changer/ Theme Font & Size Changer] extension.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Where can I set the window dimensions for the "Java Applet window"?

    Hi,
    When I run a form on the web, the Java Applet is loaded and the form appear in the window. But "base window" have gived dimensions indifferent what dimensions has the window of the form which I run.
    So, where can I set the dimensions of the "core window" which is behind the MDI window of the application?
    Thanks in advance,
    Eugen

    Eugen,
    in formsweb.cfg you will find parameters "width" and "height". You can set absolute values in pixels or "relative" in percent.
    width=800
    height=600
    or
    width=100%
    height=100%
    Gerald Krieger

  • Can I set a window out of focus permanently?

    The reason I am trying to do this is because I want the Title Bar at the top of the screen to be set to grey permanently. I have tried 1000 other things to do this and nothing has worked so far. So I am curious if it is possible to set a window to look as if it is permanently out of focus? Any other suggestions on how to make the title bar grey are also welcome.

    Two things I would try.
    1st, set the next focusable item to itself
    2st, listen to the window event, I think there is an event for focus about to lose. Set up an eventhandler to set the focus to itself again.

  • Can't set up windows on bootcamp, keyboard doesn't work

    okay, i wait through the agony of the windows install non-sense, and it comes up to the part where i have to set up windows (name, accounts, etc.). But when i go to enter all my info, my keyboard doesn't work, or my mouse for that matter. I have a 24" iMac with the wireless keyboard and mouse. I don't know what to do!
    Message was edited by: jayqUon

    Jay:
    Below is excerpt I took from [HERE|http://support.apple.com/kb/HT1461] which mandates using an internal keyboard or a USB keyboard/mouse to install Windows via boot camp.
    Requirements
    To use Boot Camp, you need:
    1. *An Intel-based Macintosh computer with a built-in or USB keyboard and a built-in trackpad or USB mouse.*
    2. Mac OS X 10.5 or later
    3. The latest firmware updates available for your Intel-based Mac.
    4. At least 10 GB of free space on your startup disk (single partition).
    5. A full, single-disc version of Windows Vista, Windows XP Home Edition or Professional with Service Pack 2 or later. Boot Camp does not include Windows. You must provide your own properly licensed installation disc.
    Important: A Windows XP installation disc must include Service Pack 2 (SP2). You cannot install an earlier version of Windows and upgrade to Windows XP, nor install an earlier version of Windows XP and update it to SP2.
    6. Boot Camp Assistant (find it installed in /Applications/Utilities/ on Leopard).
    Axel F.

  • How can I set the window options for command-N?

    Hi,
    I have let the Mac OS-X software update run (Java and a few other things), and now when I want a finder window by clicking on the smiling blue face or with command-N, I get a stripped window with only the volumes but no tool bar nor the folders short cuts. How can I restore the full window by default? I can still get the whole window set from the menu bar or with a 3 keys command, but I don't remember where I can set that to be the default window... thanks!

    Oh Sorry, I have found it "show tool bar" in the Presentation menu!

  • How can I set the Window's icons working??

    I want (need) to know the code to set the 3 icons in the upper right corner handling the events (close,, biggest-smaller, to the Windows task bar). I was able to handle on closing, but I lost the right code and now it doesn�t work :-(
    Thanks a lot!!

    Perhaps rephrase the question. It's unclear what you mean by 'setting' the three icons. If you're just talking about listening for close events and the like, you need something like this..
    class MyWindowAdapter extends WindowAdapter {
       public void windowIconified(WindowEvent evt) {
          // code here executes when the user minimises the window to the taskbar
       public void windowDeiconified(WindowEvent evt) {
          // code here executes when the user restores the window from the taskbar
    class MyComponentAdapter extends ComponentAdapter {
       public void componentResized(ComponentEvent e) {
          // code here executes when the window is resized, including being maximised or restored from maximised state.
       Frame myFrame;
       myFrame.addWindowListener(new MyWindowAdapter());
       myFrame.addComponentListener(new MyComponentAdapter());

  • Can we set the window size of the applet dynamically

    if we have embeded applet as <applet code="some" height=200 width=200></applet> can we dynamically increase the size of the applet dynamically ie., width and height.

    yes you can with javascript

  • Can you set opening browser window dimensions?

    Can I set the window size that will open when a page is
    opened from clicking the link for that page?
    thks

    Select your link -> Behavior Panel > Add Behavior (+)
    > Open Browser
    Window >
    enter the dimensions, url, etc.
    Anurag
    Orr 4 wrote:
    > Can I set the window size that will open when a page is
    opened from clicking the link for that page?
    > thks

  • How can I set up my iTunes so I can listen to it at work and at home - same library.

    How can I set up my iTunes so I can listen to it at work and at home - same library.

    Put a copy of the whole library on a flash drive.
    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    I don't know if there is a Windows equivalent of the below:
    Slink ($25) - http://itunes.apple.com/us/app/slink/id402358338?mt=12 - "Slink is the easy way to remotely access your home network. Listen to your iTunes music and watch your movies from anywhere, get the files from your home Mac or Time Capsule that you forgot to bring with you on the road, or help your parents or kids out using remote screen sharing. "

  • Is there a way that iTunes can act as a Radio Alarm Clock? I have found the radio station I enjoy listening to in the iTunes Radio List. Is there anyway iTunes (and my Mac) can be set to come-on and start playing that Radio Station from Sleep mode at spec

    Is there a way that iTunes can act as a Radio Alarm Clock?
    I have found the radio station I enjoy listening to in the iTunes Radio List. Is there anyway iTunes (and my Mac) can be set to come-on from Sleep mode and start playing that Radio Station at specific times of the day?
    Any App or plug-in that does that?
    Many thanks
    Kevin

    Turning your Mac into a clock radio.
    1.  In iTunes create a playlist that contains just the radio station you want to wake up to.
    2.  Export the playlist (as .m3u works well).  Get Info on your playlist file and look at the Open With entry to make sure it points to iTunes, VLC or some other app that will stream your station.
    3.  In iCal create an event entry at the time you want to wake up.
    4.  Right (or Control) click on your wakeup event and select Get Info.
    5.  For "alarm" select Open File.
    6.  Now under Open File there will be a place to add the file to open.  It will probably be some default entry (like iCal).  Click on it will allow you to select "other."  Then use the file dialog to select your playlist file.
    Your Mac will wake you up at the appointed time.  You don't need to keep iCal running.  If you want to put you Mac to sleep for the night then there is one more thing you need to do.  Open System Preferences to Energy Saver and click on the Schedule button.  Check Start up or wake and set the wake up time to slightly before your iCal alarm time.
    Dan

  • How can I set up printing to queues on a Windows 2008 server directly from the iPad apps and not from third-party applications without using AppleTalk or Bonjour?

    We have a Windows 2003/2008 server-based network with a dedicated print server which we would like to be able to print to over Wi-Fi.  How can I set up the printers on the iPad without downloading a third party application such as Print Central or Print N Share?  I want to just click the arrow and "Print" then choose the printer, which doesnt show up.  I want to be able to use the existing TCP/IP-based network that we have to reach these queues, not having to install Bonjour or AppleTalk to reach them.
    Thanks,
    KMQ7

    This would really be the "Holy Grail"   right now.  I think this a feature that every large organization requires. AirPrint works on a small scale, but is not really an enterprise class application.  In addition it uses the Bonjour discovery process which is difficult in a large LAN WAN environment.  For those that would remind me, I am aware of the enhancement link 

  • Can I set Firefox as my windows 7 default mail client?

    I've already set Firefox's mailto/send etc email program to Gmail, but I want to also set the Windows 7 default mail client to use FireFox (which knows to use gmail). For example, when in Windows Photo Viewer I click "email" and then "attach" I get an error: "Either there is no default e-mail client, or the current client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default email client" What is the equivalent way to run FireFox and set it as the default Windows 7 client? I want my OS default e-mail to open Firefox and then use the e-mail settings already setup in FireFox.
    == For example, when in Windows Photo Viewer I click "email" and then "attach"

    No you cannot because Firefox is not a email client. [http://www.seamonkey-project.org/ SeaMonkey] has a built in email client that you can use

  • How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??

    How can I set home page for a new tab? how can i get firefox to open the home page every time i open a new tab in Windows vista home basic??
    == This happened ==
    Every time Firefox opened

    Firefox can have multiple home pages if you wish. Each home page that will open when starting Firefox is separated by the "|" character.
    See: http://support.mozilla.com/en-US/kb/How+to+set+the+home+page
    To have new tabs open a specific web site, add one of the following extensions:
    http://sogame.awardspace.com/newtaburl/
    https://addons.mozilla.org/en-US/firefox/addon/777

Maybe you are looking for

  • ITunes on iMac imports CDs slow and eventually stops

    I have 2 iMacs and one Macbook. Both iMacs are Snow Leopard, the Macbook is just Leopard. Only one of the iMacs has this problem. I'm running the latest iTunes and I take in all Apple supplied updates every week. This problem existed on the previous

  • Upagrading from CS2 to CS5.5 Design Standard

    I'm here for some re-assurance and hand-holding really, as these new style installations seem to get more complicated despite all the unconvincing blurb about how easy it is. I've ordered CS5.5 upgrade - at last - because a) CS2 (especially Illustrat

  • Start and stop time differ from iPod to computer

    I joined 2 .mp3 together using a music edtion program (the first song was 4:30 and the second one 3:40) making one long sound file. The stop time for the song in iTunes is set at 8:10. When I play the song on my iPod, it comes to a complete halt at 4

  • Picture messages does not display

    When I receive a picture message and I try to open it, It open up a grey sceen with IMG_12345. It allows me to save the picture and view it in my camera roll. How can I fix this? iPhone4 running 6.1OS Jailbroken

  • Where can i download photoshop elements 6.0?

    a direct link would be amazing. i have the serial code. i just need to download the trial so i can put my serial code in.