Any idea similar to this view???

i'm still new in learning Java..by using JCreator LE, i've try to make a simple task..can anybody help me by giving any idea similar to my task attach below?
import java.awt.event.*;
import java.awt.*;
class Aplikasi {
     public static void main(String[] args) {
          ApplicationFrame tingkap;
          Bekas bekas;
          Cip cip1, cip2, cip3;
          tingkap = new ApplicationFrame(400, 400);
          tingkap.setTitle("mInE");
          bekas = new Bekas(50, 150, Color.white, "E");
          tingkap.masukkan(bekas);
          cip1 = new Cip(20, 30, Color.red, "A");
          cip1.setJejari(30);
          tingkap.masukkan(cip1);
          cip2 = new Cip(100, 30, Color.blue, "B");
          cip2.setJejari(30);
          tingkap.masukkan(cip2);
          cip3 = new Cip(180, 30, Color.yellow, "C");
          cip3.setJejari(30);
          tingkap.masukkan(cip3);
          tingkap.paparHasil();
          tingkap.pungut("A");
          tingkap.paparHasil();
          bekas.masukkan(cip1);
          tingkap.paparHasil();
          tingkap.pungut("B");
          tingkap.paparHasil();
          bekas.masukkan(cip2);
          tingkap.paparHasil();
          tingkap.pungut("C");
          tingkap.paparHasil();
          bekas.masukkan(cip3);
          tingkap.paparHasil();
}

WTF?
One bit of advice: Putting all your code in a single main method is not very object-oriented. This is procedural coding at its worst.
I have no idea what you're trying to do (looks like an AWT frame). What is the problem? Does the code not compile? If there are compilation errors, fix them. Does it not run the way you think it should? Please describe the error.
This is an example of a poorly posed question.
Please read this:
http://catb.org/~esr/faqs/smart-questions.html
%

Similar Messages

  • Any ideas how I can view this flv file?

    I have CS3 Flash using Flash Player 9 and Actions Script 3.  I am publishing a progressve loading swf, which has an absolute path to an flv of http://www.haleygroup.com/work_images/basics.flv.  The swf file is located here http://www.haleygroup.com/work_images/basics.swf, along withn the html, flv, and skin.  When I click the button (configured by an XML file) on my web site to view the file, I get a flickering box.  Other flvs in the XML file are configured the same way and work fine.  See this flickering box at http://www.haleygroup.com/, enter site and go to "et al" page, then click "Basics".  Any ideas how I can view this flv file?  Many, many thanks.

    I just changed the path to a relative path of just "basics.flv" and still have the problem.  See swf at http://www.haleygroup.com/work_images/basics.swf.  Thanks.

  • Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.

    Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.

    Is the disk cache and the memory cache enabled?
    You can check these prefs on the about:config page.
    * http://kb.mozillazine.org/browser.cache.disk.enable
    * http://kb.mozillazine.org/browser.cache.memory.enable
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    Your More system details list shows two outdated Flash plugins that you should remove and update to Flash 10.1 r102 or at least remove 10.0 r45 and wait until your distribution offers a 10.1 r102 update.
    # Shockwave Flash 10.0 r45
    # Shockwave Flash 10.1 r85
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • TS2771 on i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    On i pod touch the orientation does not change when I turn it on it's side when using safari etc.  When viewing youtube it only displays widescreen and will not display portrait , anyone any ideas? is this a fault or do all ipod touch do this?

    The user guide says:
    Movies viewed in Videos and YouTube appear only in landscape orientation. Street views in Maps
    also appear only in landscape orientation.
    Do you have the scree orientation lock turned on? If on there is a circular arrow icon with a padlock inside next to the battery charge icon in the upper right.

  • Scanning in Mavericks? I can no longer use the scanning function in my HP Officejet 4500. HP says to go through Preview, Image Capture, or Print/Scan in System Prefs. Still doesn't work. Any ideas/similar experiences?

    Scanning in Mavericks? I can no longer use the scanning function in my HP Officejet 4500.
    HP says to go through Preview, Image Capture, or Print/Scan in System Prefs.
    Still doesn't work. Any ideas/similar experiences?

    Sure it is, yet it's called HP LaserJet Professional M1210nf MFP Series *
    Today, I followed your other advice, and deleted the printer, deleted the /Library/Printer/hp folder, downloaded the entire set of driver, re-installed the printer twice, once with the driver, once with Bonjour.
    The Bonjour Printer has the scan option active, but it is doesn't work (refer to above.), it is called M1217nfw
    The Apple Driver Printer doesn't show the scan option at all, it is called M1217nf (as on the http://support.apple.com/kb/HT3669#HP list.) This model number doesn't exist, as far as I can tell. 
    Still, everything works perfectly in Snow Leopard, for a MF printer that has been manufactured years after Snow Leopard was released.
    Why going up in software version means going backwards in compatiblity for brand new product is really the question that puzzles me here.

  • TS1812 Hi Everyone, I have tried all the solutions mentioned by apple and still have a white screen with a blinking file folder with a question mark in the center, anyone have any ideas or experienced this?

    Hi Everyone, I have tried all the solutions mentioned by apple and still have a white screen with a blinking file folder with a question mark in the center, anyone have any ideas or experienced this?

    Nooo or you would use OS X Recovery Mode: Disk Utilty and then Startup Disk.
    Mac OS X & Mountain Lion Community
    https://discussions.apple.com/community/mac_os
    https://discussions.apple.com/community/mac_os/os_x_mountain_lion?view=discussio ns
    Recovery Mode
    http://support.apple.com/kb/HT4718
    ExpressLane
    https://expresslane.apple.com/
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725

  • Some new purchased songs will not sync to IPhone.  Any ideas on resolving this?

    Some newly purchased songs will not sync to Iphone.  Any ideas to resolve this issue?

    Similar issue:
    I purchased several complete albums from the iTunes store on my laptop. Everything syncs fine with my iPhone except for two tracks from two seperate albums. I get the same error for both tracks: "iTunes could not copy ..... to the iPhone because the file could not be converted."
    From what I can tell both tracks are the same format as the other tracks on those albums - m4a (purchased AAC audio file) and wouldn't need converting (except that I have "convert higher bit rate songs to 128 kbps AAC" checked... but the other tracks convert just fine). Files play just fine on the laptop.
    I checked that everything was purchased with the same user accounts. Not sure what to try next... any ideas?
    In case it of any use here are the tracks:
    Being Single Again (track 2 from Louis C.K.'s album Hilarious)
    Letters to Magazines (track 15 from Paul F. Tompkins' album Impersonal)
    Maybe the tracks are just so funny that the iPhone is cracking up too much to transfer them over.

  • When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    I too have the same problem.  The audio drop out of sync in about 5 sec in not uncommon for the audio to be 30+ sec behind video.  Apple needs to fix this!!!!!!!!!!!!!!!!   its a joke,  my iphone is all messed up after the last update as well.  at one time not to long ago apple products and software were top rated, not so much any more, more and more problems are showing up and apple is unwilling or unalbe to fix the many issues.  Apple needs to fix the audio sync problem, it not the computer hardware or other software it ITUNES!!!!,  there is no workaround other then hitting pause and hitting pause and hitting pause to temp fix the problem. 

  • I updated the software on my 2009 MBP to Mountain Lion. Since then, my iPhoto has been unable to open my photo library. I have updated iPhoto, and still no luck. Any ideas for fixing this problem?

    I updated the software on my 2009 MBP to Mountain Lion. Since then, my iPhoto has been unable to open my photo library. I have updated iPhoto, and still no luck. Any ideas for fixing this problem?

    Welcome to the Apple Support Communities
    Do you see any message when you open iPhoto? Try to open iPhoto holding Option key and select the library

  • Since the recent update I can no longer use my camera connection kit on any of my iPad's. Any ideas to remedy this?

    Since updating my iPad  devices  (iPad 1,2 and iPad) with the latest iOS, I can no longer use the camera connection kit to load photos directly into my camera roll. Anybody have any ideas on remedying this problem?

    Open Disk Utility, select the External Hard Drives first icon in the list of Drives, click the Repair Disk button.
    Dennis

  • My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this

    My wireless keyboard no longer connects with my iMac since changing the batteries. It now shows as not connected, not paired and not configured. A friend recently connected his iPad to the iMac and since then the problem started. Any ideas to resolve this?

    a friend told me that he wants my os x cd for my macbook pro to upgrade his imac.
    The discs that come with your Mac are "machine specfic" and cannot be used on another Mac.

  • I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    I have purchased two audiobooks from iTunes. They play perfectly for about 13 minutes and then abruptly stop. I have purchased other audiobooks and have not had a problem. Please, any ideas on why this is happening and what can I do to fix it.  Thanks!

    As long as you use your computer like King Penguin stated for Report a Problem, you should be fine. If you can't get to your computer, are not using your computer, or your computer is not longer in the mix since you have been using your iPad, email iTunes support about the problem.
    http://www.apple.com/emea/support/itunes/contact.html

  • My MacBook Pro doesn't start; in safe mode shift CMD V the message "disk0s2: media is not present" is written on the screen repeatedly but the MacBook doesn't start.  Do you have any ideas of why this should be or what I should do to resolve this?

    My MacBook Pro doesn't start; in safe mode <shift CMD V> the message "disk0s2: media is not present" is written on the screen repeatedly but the MacBook doesn't start.  Do you have any ideas of why this should be or what I should do to resolve this?  Thanks  Eamonn

    Thanks for these suggestions: I have tried safe mode re-starts (both "verbose" and simple "shift" + power) to no avail.  I get the error message "disk0s2: media is not present".  Following this I inserted the installation disc and from there ran disc utility.  The "Verify Disk" indicated an error " invalid sibling link" which it could not repair.
    I also tried to completely re-format/erase the disk, but again got an error message "disk object invalid or unable to serialize".
    Any ideas of what could be causing this or the best solution?  I fear I am fast running out of options.

  • Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.  

  • ActionForward(somepage, true). Is there any thing similar to this in JSF.

    I want to open a new window for onlineHelp
    When I click on Help link i want to open a new window to show the appropriate help file. (instead of opening index page of help file)
    For this I store the URL in properties file and when the HELP LINK is clicked,. i check for the keyword of the page in properties file and get the value for that key and say
    return new ActionForward(somepage, true) in struts. (where somepage="some url" )
    I want to achieve this in JSF.,
    Is there any thing similar to this in JSF.

    In JSF, you need to have all your navigation mapped out in the faces-config.xml (similar to the struts-config).
    I use h:commandLinks with the target attribute set to _blank to open pages in a new window.                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Entourage (running under leopard) in microsoft exchange

    Is it possible that entourage in leopard works properly or I need to update to snow leopard. It tooks me one week but I´m not able to do it right. thanks again.

  • How to load data into an ods from multiple info sources.

    hi all... i am given a task to load data into an ods from 3 infosources ... can someone plz give me the flow . thank u in advance..

  • Cisco prime 4.2 monitor SFP conn & isdn active call session

    Hello all, my customer already bought cisco prime 4.2 , they asked me if this cisco prime is able to monitor the SFP (fiber connector) status active/not active and monitor the voice call active session for 24 hours ? anyone can help me to configure i

  • Projecting slideshows and pictures on TV or other?

    I have a series of pictures I'd like to project from my iPhone through a classroom hookup onto a big screen. I have all the wiring and technology figured out, but I cannot figure out how, using the "Photos" app, to project individual pictures. The ap

  • Why does Mail completely not work?

    I've been using Mail ever since I got my macbook. Got it linked up with both my hotmail and gmail accounts so I have at least a couple thousand emails on it. And now when I open it, its just not working at all. It feebly tries to retrieve mail.. When