Want to remove component.

Hi to all.
Here is my code. I am able to draw circles ("o") Now I want to delete one of the circle. I am sending my code. If someone help me to do it I am really thankful to him in advance.
package Applet1;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class drawingcircle extends JFrame {
/** Initialization method that will be called after the applet is loaded
* into the browser.
private int xpos=0,ypos=0;
private int x[]=new int[100];
private int y[]=new int[100];
private int i=0;
public drawingcircle()
super("Drawing lines,");
setSize(200,200);
addMouseListener(new MouseClickHandler());
setVisible(true);
public void paint(Graphics g)
super.paint(g);
x=xpos;
y[i]=ypos;
for(int j=0; j<=i; j++)
g.drawString("o",x[j],y[j]);
System.out.println("xposition"+x[j]);
i++;
public static void main(String args[])
drawingcircle app=new drawingcircle();
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
private class MouseClickHandler extends MouseAdapter{
public void mouseClicked(MouseEvent event)
xpos= event.getX();
ypos=event.getY();
System.out.println("xpos"+xpos);
//String title = "Clicked" + event.getClickCount() + "time (s)";
// setTitle (title);
repaint();
public void init() {
// TODO start asynchronous download of heavy resources
// TODO overwrite start(), stop() and destroy() methods
Thanks in advance

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* @author user
public class drawingcircle extends JFrame {
    /** Initialization method that will be called after the applet is loaded
     *  into the browser.
    private int xpos=0,ypos=0;
    private int x[]=new int[100];
    private int y[]=new int[100];
    private int i=0;
    public drawingcircle()
        super("Drawing lines,");
        setSize(200,200);
        addMouseListener(new MouseClickHandler());
        setVisible(true);
    public void paint(Graphics g)
        super.paint(g);
        x=xpos;
y[i]=ypos;
for(int j=0; j<=i; j++)
g.drawString("o",x[j],y[j]);
System.out.println("xposition"+x[j]);
i++;
public static void main(String args[])
drawingcircle app=new drawingcircle();
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
private class MouseClickHandler extends MouseAdapter{
public void mouseClicked(MouseEvent event)
xpos= event.getX();
ypos=event.getY();
System.out.println("xpos"+xpos);
//String title = "Clicked" + event.getClickCount() + "time (s)";
// setTitle (title);
repaint();
public void init() {
// TODO start asynchronous download of heavy resources
// TODO overwrite start(), stop() and destroy() methods
well in this code you can see that where user clicks circle can be draw there. Now I want to delete one of the circle by using button or by using popup menu. If I click on the zero and try to remove it from JFrame. I hope now u understand my question.
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Reposition buttons in add/remove component?

    Could anyone tell me if it is possible to reposition the buttons in an add/remove component?
    If you want the add all and remove all buttons they are grouped with either add or remove. I need to know if you can move them so that you have Add and Remove, then Add All, Remove All??
    Thanks,
    Matthew

    Have you looked into just using setStyle() for a button on the page?
    You can generate a string containing the position, visibility and other attributes of a component and then use setStyle() to set the attributes in the prerender phase.
    Just set the style string as a session bean parameter and alter it where ever you need to.
    I don't use add/remove components, but just standard components where I set the render and style properties accordingly to display and position them.
    null

  • Family sharing one Itunes account, want to remove all of their computers content from my library... help

    My family shares one Itunes account and I believe it was home sharing that brought all of their music, purchases, movies, etc. onto my Mac's Itunes Library. I want to remove all of their content from it. I turned off Homesharing and that didn't work. All of their music is on my computer and synchs to my Iphone and it's driving me nuts. Please help !

    You can deauthorise all 5 at once, then reauthorize the one you want.
    Learn how to authorize or deauthorize your computer with your Apple ID.
      http://support.apple.com/kb/HT1420
    You need to log into iTunes on the computer you want to deauthorise. Otherwise, contact contact iTunes Store support to see if they can help.

  • I want to remove all of my photos out of iPhoto there are approximately 35000 some imported from an old hard drive and a SD Card from my Nikon D500 how do I do this

    I want to remove all of my photos out of iPhoto there are approximately 35000 some imported from an old hard drive and a SD Card from my Nikon D500 how do I do this?
    I have iPhoto version 9.1.5 (615)
    Mac OS X version 10.6.8
    I want to do this because when I imported from my old hard drive there was an error message stating that 12 photos were not imported as the programm did not recognise the format even though they were jpegs like the other photos in that particular album. The dates of the photo folders are wrong I have multiple copies of photos and every time I start iPhoto I get the following message 12 photos have been found in the iPhoto library that were not imported would you like to import them No or Yes
    if you press Yes the same message comes back again and if you press Yes again the program flicks to last import for 2 seconds and then opens events.
    if you press No the message The photos have been placed in the folder/user/judith/pictures/iphoto Library recovered photos then if you press OK the original message 12 photos have been found.............
    if you press No at this point the message The photos have been placed in the folder/user /judith/pictures/iphoto Library recovered photos_11 the end number goes up by 1 every time you go through this process
    Any help would be greatly appreciated

    Did you import an iPhoto Library from the old Hard Drive? Do you still have that old Library?
    The way to clear out a Library is to Export the photos - Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    For the annoying start-up message:
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • I want to remove the COnlineBank, OnlineBank and csample applications from my application and web server.

    How can I safely do this on Solaris? I've tried "iasdeploy removeapp" and "iasdeploy removemodule" with no luck. I want to clear all of this demo stuff out to make both the web and app server look more production like.
    Thanks
    Eric

    Eric,
    these applications are applogics which are not controlled by the
    iasdeploy tool. Unfortunately, there is no tool available to remove
    these applications for you. What you can do is to manually remove all
    their entries, but be careful if you do that. If you remove the wrong
    keys you might break your ias installation, so be warned and make sure
    you backup the whole ias registry before attempting to remove anything.
    Eric Coleman wrote:
    >
    I want to remove the COnlineBank, OnlineBank and csample applications
    from my application and web server.
    How can I safely do this on Solaris? I've tried "iasdeploy removeapp"
    and "iasdeploy removemodule" with no luck. I want to clear all of
    this demo stuff out to make both the web and app server look more
    production like.
    Thanks
    Eric
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!--
    Han-Dat Luc ([email protected])
    Senior Consultant
    SUN Professional Services (iPlanet)
    o .
    o .
    O _ ____ _ _
    (_) _ \| | __ _ _ __ ___| |_ TM
    | | |_) | |/ _` | '_ \ / _ \ __|
    | | __/| | (_| | | | | __/ |_
    |_|_| |_|\__,_|_| |_|\___|\__|
    e-commerce solutions
    Sun Microsystems Australia Pty Ltd

  • I am trying to load a movie onto my ipod touch and it is wanting to remove all my apps

    I don't want to remove all my apps.  I just want to load a movie. 

    What exactly happens when you try to redownoad by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    What exactly happens whne you try to download a free app?
    Are the apps "waiting"?
    http://lifehacker.com/5948155/fix-iphone-apps-stuck-waiting-during-installation

  • Items on ipod that do not show up on Device list, want to remove them

    A pod cast and a video I downloaded from itunes and copied to my ipod are on my ipod but when I connect the ipod they do not show up on the lists of items on the device. I can see and play them on the ipod, but cannot find them on the list of items on the ipod when I connect to itunes...
    I want to remove them and can't
    baffled....

    They should be able to help you. You must have the iPod set to manually managed. Podcasts generally work best when set to auto-sync.
    To find these files it is easiest to create a smart playlist on the iPod itself with the right rules to find the files while it is set to manually manage. To delete files through a smart playlist you will need to hold the "Alt" key on the keyboard then hit the Delete key. Atl/Delete is for Mac but may be a combination of Delete and Shift, Control, or Windows key on Windows PCs.

  • I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    It's almost impossible.  The new iMacs have a Target Display Mode, but it's built to do that.  Without ripping your screen out, finding an acceptable power supply, frame, and whatever electronics to convert a Thunderbolt signal to the screen, the cost will be much larger than buying a cheaper HiDef monitor that runs with an HDMI to Thunderbolt cable to your MacBook 15.  In fact, you can sell your 17" MBP for a lot of money, unless it's broken or something, buying you a really sweet monitor.
    By the way, I found your answer by searching this forum.  I would suggest using the search function here in the futuere.

  • How can I remove a Disabled Extension not compatible with Firefox 4.0.1? I just want to remove it... I don't want to wait for a compatible update. Why can't I remove it?

    When I upgraded from 3.XX to 4.0.1, it informed me that 2 extensions were not compatible and it never gave me the option to remove them. Firefox 4.0.1 disabled them and now I'm not able to remove them.
    Also they were added by Acrobat Pro X (Adobe Acrobat - Create PDF 1.0) and Nokia Ovi Suite (Firefox Synchronisation Extension 7.3.4.51).
    These extensions won't probably be updated unless they update the software that installed them. With this said, How can I remove the disabled extensions? Why it doesn't give me a button to remove them to start with?

    I think it's not the problem of compatibility. Extensions installed into Windows registry won't have a remove button ( or it's greyed out ). For these extensions, you can have a look into these keys:
    HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions\
    HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions\
    If you are under a 64bit OS as I am, you may also try this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\Extensions\
    And you may find the registry entries corresponding to the extensions you want to remove. Just export them to a backup.reg, then delete these entries. Firefox will do the rest, but it seems that fx still leaves extensions.rdf untouched. You can also delete the RDF entries corresponding to those extensions inside extensions.rdf
    cf: http://kb.mozillazine.org/Uninstalling_add-ons#Windows_Registry_extension
    BUT the Wow6432Node key wasn't mentioned in the above article
    I had to search the registry to find out the entry corresponding to a Fiddler2 extension, then I found the Wow6432Node key. I also saw the Nokia Ovi Suite entry beside the Fiddler2 entry.
    Hope it helps.

  • My computer space is full and i want to remove some of my itunes movies from my computer but i dont want to loose them completely how do i make it so i can find them under my purchased on icloud?

    My computer space is full and i want to remove some of my itunes movies/ t.v shows from my computer but i dont want to loose them completely how do i make it so i can find them under my purchased on icloud?

    You can't do that. iCloud does function that way.
    Allan

  • Want to remove Lossless files from dual-format library, keep elsewhere

    My iTunes library consists entirely of music ripped from audio CDs. Each CD was ripped twice, once in Apple Lossless format, once in AAC format.
    For several reasons (chief among them the desire to free up a lot of disk space on my iMac), I want to remove the Lossless files from my iTunes library. But I want to keep all of the AAC files there as they are, along with my playlists (all based on the AAC files only).
    However, for a measure of future-proofing, I still want to keep the Lossless files. And whenever I buy a CD, I want to still import it as both Lossless and AAC, keeping the Lossless files handy while adding the AAC files to the iTunes library.
    I must obviously begin with an external Firewire drive big enough for my Lossless content. How do I proceeed from there?

    I would take this approach, but others might have better suggestions.
    First, when you get your external drive, copy the entire iTunes folder to the external drive which will copy everything (media files, database files, artwork, etc.).
    Assuming you use the iTunes default settings where iTunes copied added items to your iTunes folder and organizes your library (meaning - everything is all self contained in the iTunes folder), then all you have to do is drag & drop your iTunes folder (not just the iTunes Music folder you find inside the iTunes folder) to the external drive and copy the entire thing.
    If you want to test that it worked or would like to actually start using it from that location instead, use these instructions when you start iTunes to point it to the new location...
    How to open an alternate iTunes Library file or create a new one
    http://docs.info.apple.com/article.html?artnum=304447
    If you are just testing, then close iTunes after you verify it works, and restart iTunes again with the same instructions and point it back to your internal drive (original) location. Now you can sort your library by "Kind" which is the format it is encoded as and all the Apple Lossless files will be grouped together. Select the first one, scroll down to the last one, Shift-Select the last one which will select all the ones in between and hit delete! Now your internal drive library is everything except Apple Lossless.
    If you wish, you can switch back to the external drive library and do the same for the AAC files.
    Now when ever you add a new CD you can do it a couple ways. But probably the most straight forward is to simply put in the CD, open the internal library, import as AAC files. Switch to the external library and import again as lossless.
    Patrick

  • I want to remove 3 of 4 iTunes connections?

    Windows 7 / iTunes latest version
    I have several computers in my home, and use them from time to time to recharge my iPod. iTunes says I have used 4 of my 5 allowed connections, and I want to remove all but 1 of them. I will be adding an iPad shortly, and I assume that will be a separate account? - Help appreciated, IM

    Hello there,
    These connections are referring to the number of computers you have authorized to play your iTunes content and as you saw the limit is 5. So if you wish to bring this number back down to 1, you will have to Deauthorize each computer you want to until you are back down to one.
    Simply, head to the Store drop down menu in iTunes on each computer you wish to deauthorize and choose "Deauthorize."
    [About iTunes Store authorization and deauthorization|http://support.apple.com/kb/HT1420]
    I will be adding an iPad shortly, and I assume that will be a separate account?
    No. It can be on the same iTunes account. There is no limit to the number of devices you can have synced to one iTunes library, account, or computer.
    B-rock

  • HT4993 I have 3 phones under the same apple ID. I  want to remove mine from the same one my kids use. How can I do this but keep their's on the current apple ID?

    I have 3 phones on one apple ID. I want to remove my phone which is the main phone on the acct to it's own apple ID. How can I do that but keep the other 2 on the current ID

    When you connect that iPad to iTUnes, go to the summary page and scroll down, there should be a box saying 'automatically update' or something to that effect. De select that.
    With automatically update on, what you buy on one goes onto the other. but with that box off you can choose.
    On the iPad itself, it's under
    Settings
    iTUnes and App Stores
    and then you can choose what you want automatically updated between the two devices.

  • How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.

    How do I remove an unwanted toolbar?  I added a radio station to my ibook and it set up its own toolbar so when I go to Safari I have to use it.  It involves using Bing for everything as well.  It's very annoying and I want to remove it.  I can't just type in a URL and have it go to the site.  It takes me to all of Bing's choices.  Also, when it anticipates what I'm typing (incorrectly) and I have to delete it's guesses all the time.  Can anyone help?

    Have you looked at Safari's menu bar > view> toolbars to see if it can be unchecked from there,also see if there is a button to collapse the toolbar on the bar itself.

  • I have two phone numbers in facetime want to remove one

    i have two phone numbers on facetime want to remove one.

    Settings>facetime> remove the number under the "You can be reached for video calls at" Option.

Maybe you are looking for

  • Time Machine and file sharing with XP on a Time Capsule

    Am I right in thinking that I can't use a Time Capsule to support Time Machine on OS-X and to support sharing files between OS-X and XP at the same time given Time Machine will not run on FAT32 and I can't partition Time Capsule hard drives without t

  • Authroization issue after the Upgrade for Multiprovider

    Hello Experts, After the upgrade has carried out in my Quality system, I'm unable to execute a query because of the authorization issue with Multiprovider. But earlier the same Authorization was assigned to the ID. The Role in Q and the Role in P is

  • Interview Question on Web Dynpro JAVA

    hi Could any body please send Interview Questons on Web Dynpro java. Mukesh

  • Upgrade Strategy To 4.1

    We are currently using 3.2 but want to start work on the upgrade to 4.1 or 4.2, if available soon. We currently have a dev, test and prod environments. 1 database with many schemas. 12 workspaces, each with 1 application and 1 schema. My boss wants a

  • Have paid subscription - unable to connect with ot...

    Hello, I need help asap. I was hoping for a little customer service for something I pay money for, but I am unfortunately unable to find any. I have a subscription for unlimited calling to the United States. All day today was one failed attempt after