To All You Girls Out There

Would any of you girls (if your name were Carlene) be impressed by this program? Compile and run it. You'll have to make the window larger when it first starts up, though. (BTW, I am Jared.)
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Carlene implements ActionListener
  JLabel label = new JLabel();
  int numClicks = 0;
  public Component createComponents()
    JPanel panel = new JPanel();
    JButton button = new JButton("Find out who Jared likes!");
    button.addActionListener(this);
    panel.add(button);
    panel.add(label);
    return panel;
  public static void createAndShowGUI()
    JFrame frame = new JFrame("Jared's Crush");
    Carlene carlene = new Carlene();
    Component components = carlene.createComponents();
    frame.getContentPane().add(components, BorderLayout.CENTER);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
  public void actionPerformed(ActionEvent e)
    numClicks++;
    switch(numClicks)
      case 1: label.setText("C------"); break;
      case 2: label.setText("Ca-----"); break;
      case 3: label.setText("Car----"); break;
      case 4: label.setText("Carl---"); break;
      case 5: label.setText("Carle--"); break;
      case 6: label.setText("Carlen-"); break;
      case 7: label.setText("Carlene"); break;
  public static void main(String[] args)
    javax.swing.SwingUtilities.invokeLater(new Runnable()
      public void run()
        createAndShowGUI();
}

I was impressed by a program that split and load-balanced a povray rendering job across 60 Sparc machines once to cut a 6-7 hour job down to less than 20 minutes. I was also impressed by another program that monitored sub-atomic particles emitted during chemical reactions.
Neither was Java, and neither of these impressive programs helped the guy get me in the end, mind you
(I somehow ended up with a VB programmer?!?)
--alexx                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Hi there how are you guys out there of this forum? I got a question for y'a

    Hi there how are you guys out there of this forum? I got a question for y’all
    I wanted to know how I could record different folders using iTunes
    Cause when recorded 2000 thongs on the DVD
    There were 2000 songs to go through
    So I really wanted to have had folders and then the music recorded inside them
    So I could get right to where I wanted real quickly
    Could anyone please teach me how to do that real quickly?
    Can we do it with iTunes?
    I know we can do it with Nero.

    1) Go to file, select new playlist. Creat the playlaist.
    2) Download your music into iTunes.
    NOTE: CHECK 'Recently Added' before you download your music.
    If the select boxes has a check in them, turn it off by
    holding down the 'ctrl' key and selecting one of the
    checked boxes. This shold turn off all the checks.
    It would be better to clear 'Resently Add' of all
    previous downloads, but I don't know how to do that
    yet.
    3) under 'PLAYLIST' on the right, select 'Recently Add'.
    all of your song should show there with a check in the selection
    box.
    4)Hold the shift key and select the frist (selete records name),
    then the last recorded tune. All of the recordings shouls light
    up blue.
    5) While holding the 'shift' key, drag one of the records to your new
    playlist. All of the blue highlighted song will transfer to the new
    playlist.

  • Hello am dominic and i want a help from you guys out there i hope you will be able to help me out...i have an i phone which i bought from a friend but it has this i cloud account i wanna know if you can help me wipe it so i can usse it..thanks

    hello am dominic and i want a help from you guys out there i hope you will be able to help me out...i have an i phone which i bought from a friend but it has this i cloud account i wanna know if you can help me wipe it so i can usse it..thanks

    Only your friend can unlock it, either by giving you his Apple ID and password, or by removing it from his list of devices - please see:
    http://support.apple.com/kb/TS4515
    There is no way at all it can be unlocked without his doing this.

  • I have a great idea for an i product, would interface with all i's out there. Where do I begin?

    I have a great idea for a new "i" product, this would work with all "i's" out there where do I begin?

    You may want to read this before you go any further...
    http://www.apple.com/legal/policies/ideas.html

  • SKYE, if you are out there,

    SKYE, if you are out there, can you shed any light on the Aussie situation. Just be nice to hear it from a informed source
    total state of confusion

    Your problem is excessive swapping of data between physical memory and virtual memory.
    That can happen for two reasons:
    You have a long-running process with a memory leak (i.e., a bug), or
    You don't have enough memory installed for your usage pattern.
    Tracking down a memory leak can be difficult, and it may come down to a process of elimination. In Activity Monitor, select All Processes from the menu in the toolbar, if not already selected. Click the heading of the  Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select
    View ▹ Columns ▹ Real Memory
    from the menu bar.
    If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more memory over time without ever releasing it.
    If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.
    The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command: 
    sudo leaks -nocontext -nostacks process | grep total
    where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details:
    Memory Usage Performance Guidelines: About the Virtual Memory System

  • Att: Abelhinha  Re: Advice needed from you Professionals out there

    Hi again!
    Thanks for your replies yesterday.
    I went through your code, and done some reading on interfaces and stuff, and understand what your code is doing.
    I am going to explain, based on my understanding, what my code should do, and would greatly appreciate it if you will let me know if i am right or not!
    Here goes!=========================================================================
    -I will create a thread which will check the database and see if there are data to be
    put in the table.
    -If there are:
    --Check if the displayThread(which displays and updates the table) is running?
    ---If it is, then do nothing
    ---if not, then start the displayThread.
    -If there are not, then stop the displayThread.
    ===================================================================================
    Is this correct?
    Hope to hear from you soon.
    Regards

    Sorry, I haven't had any time during the weekend to take a look here.
    I'll try to answer you questions below:
    Hi again!
    I'm actually not sure if i need the listener at all,
    or rather for the first part of my problem!
    I think i only need the 1st listener, and the
    onConditionMet() method. Why?
    Well, because, if the condition is met, would also
    mean that there is data to be displayed.
    That certainly seems reasonable. And you should not forget, it's your application, so in the end it will be you who decides what works best for you. You could try a trial and error approach to see which solution fits best your problem.
    The problem now is that i have to still check if the
    Window which supposed to be displayed, with the table
    with the above data in, is active or not?
    At the start of the program, it will not be active, so
    i will create a new class for this window. However,
    afterwards i will have to check if it is visible, and
    update the values in the table, or if the
    onConditionMet is false, then to stop/close the
    window!I may be incorrect, because it's been a very long time since I used any type of GUI, but if you want to update your window, you will have to keep a reference to it somewhere. That reference may help you out, but if it doesn't, you'll probably still need some kind of windowlistener to tell you whether it has been closed etc, no?
    >
    Thanks and hope to hear from you soon.
    RegardsI hope this will help you.
    Abelhinha

  • ~BEE - hope you're out there

    You may remember me - I asked if it was necessary to reistall the OS with Safari crashing repeatedly.
    Even after all the fixes you suggested - there is no change - I've restarted Safari at least 6 times in the last 2 hours.
    Any other suggestions before I pull my hair out?

    Oly --
    You have posts in several different threads regarding your keychain problem.
    It's getting very confusing, as you are posting your problem among other people's threads, and it's hard to keep everything straight.
    Could you please open your own "New Topic"
    in Using Tiger Forum here
    http://discussions.apple.com/forum.jspa?forumID=758
    Include all pertinent information, like
    Your current situation
    How long it's been happening
    Exactly what you've tried so far to remedy the situation
    (This is important).

  • Interesting problem for all the DIYers out there

    I'm sure you've all heard about the compact flash upgrade for the iPod mini, where you replace the microdrive with a compact flash card to get more storage/better battery life/better durability. I dropped my mini a bit ago, and broke the microdrive in the process. I figured that I'd try this hack, but instead of using a compact flash card, I decided to use a SD/SDHC to Compact Flash Type II adapter instead, since SDHC cards are even cheaper than Compact flash for similar capacities at the moment. When it was all said and done, I actually wound up spending less on the adapter + 32gb sdhc card than I would have spent on a standalone 16gb compact flash card.
    However, whenever I restore my iPod, as soon as I reconnect it, iTunes tells me that it's corrupted and needs to be restored again. The thing is, the restore seems to be valid- after the restore process is finished, I can use the menu system on the mini perfectly fine. It's basically what it should be, the OS without any songs/media on it. ****, I can even play bricked. Still, the second I plug it back into windows, iTunes recognizes the iPod, fails to display a number in the capacity field, and tells me to restore it. Windows 7 RC1 also tells me that I'll need to format it if I want to use it with the computer. The memory stick is fine, as is the compact flash adapter. I can format the stick with or without the Compact Flash adapter just fine with my printer or PS3 (only two devices I own with a Memory card reader), but after I "restore" my iPod, if I try to just use the stick in either reader, it'll fail (the compact flash adapter becomes required). After restoration, if I view the contents of the compact flash adapter + sdhc, it appears with the volume label of "IPOD" with an empty directory listing. Finally, every time the mini "goes to sleep", it will prompt me to select a language on "wake up", which I guess means that it didn't write that setting to the disk....
    Any ideas? Could someone give me an image of their iPod mini that I could try to use to restore, or the contents of their mini drive (minus the music) in a .zip/.7z/whatever that I could try to work with?
    Any help would be greatly appreciated. Feel free to contact me at [email protected] if you feel that you have a solution.
    Message was edited by: Subject-17

    I'm sure you've all heard about the compact flash upgrade for the iPod mini, where you replace the microdrive with a compact flash card to get more storage/better battery life/better durability. I dropped my mini a bit ago, and broke the microdrive in the process. I figured that I'd try this hack, but instead of using a compact flash card, I decided to use a SD/SDHC to Compact Flash Type II adapter instead, since SDHC cards are even cheaper than Compact flash for similar capacities at the moment. When it was all said and done, I actually wound up spending less on the adapter + 32gb sdhc card than I would have spent on a standalone 16gb compact flash card.
    However, whenever I restore my iPod, as soon as I reconnect it, iTunes tells me that it's corrupted and needs to be restored again. The thing is, the restore seems to be valid- after the restore process is finished, I can use the menu system on the mini perfectly fine. It's basically what it should be, the OS without any songs/media on it. ****, I can even play bricked. Still, the second I plug it back into windows, iTunes recognizes the iPod, fails to display a number in the capacity field, and tells me to restore it. Windows 7 RC1 also tells me that I'll need to format it if I want to use it with the computer. The memory stick is fine, as is the compact flash adapter. I can format the stick with or without the Compact Flash adapter just fine with my printer or PS3 (only two devices I own with a Memory card reader), but after I "restore" my iPod, if I try to just use the stick in either reader, it'll fail (the compact flash adapter becomes required). After restoration, if I view the contents of the compact flash adapter + sdhc, it appears with the volume label of "IPOD" with an empty directory listing. Finally, every time the mini "goes to sleep", it will prompt me to select a language on "wake up", which I guess means that it didn't write that setting to the disk....
    Any ideas? Could someone give me an image of their iPod mini that I could try to use to restore, or the contents of their mini drive (minus the music) in a .zip/.7z/whatever that I could try to work with?
    Any help would be greatly appreciated. Feel free to contact me at [email protected] if you feel that you have a solution.
    Message was edited by: Subject-17

  • 23.98 to 29.97 fps --- Capt Mench if you're out there help!!!

    Hi again FCP community
    We captured at 23.98 fps using 2:3:3:2 pulldown and edited in 24fps sequence....why??? Because without stress, our lives would be boring. No for real, the directors shoot their in 29.97 and 24P, etc...that's why we captured in 23.98fps
    I exported the 24fps as QT mov and in Cinema Tools converted it to 23.98fps to be able to print to miniDV tape
    My questions is there a way to bump the 23.98 to 29.97 or 30 fps and keep the sound in sync??? HELP!
    If you need further explanation, please shoot me an email at [email protected] or [email protected]

    answered

  • To all C# freaks out there!!

    try running the following programs on the same machine simultaneously and see the difference!
    java==================================================
    import java.io.*;
    public class Counter
    public static void main(String args[])
    for(int i=0;i<20000;i++)
    System.out.print(i+"\r");
    c#======================================================================
    using System;
    class Counter
    public static void Main()
    for(int i=0;i<20000;i++)
    Console.Write(i+"\r");
    im sticking with java thank u very much. :)

    The reason NOT to use C# is because C# really is just Microsoft
    Visual J++ packaged under another name.I've implemented production VJ++ systems (somebody shoot me for that, please?) as well as .NET systems written using C#. Let me just point out that they are nothing alike - besides a bit of syntactical similarities - from a development, implementation, maintanence, et cetera perspective. .NET is far superior to M$'s old DNA architecture, on which their Visual X products were based, for a variety of reasons - most of which were based on Java technolgies and their respective architectures and designs.
    Java is cross-platform, and it's based on a community process.
    C# is completely controled by Microsoft.Well, technically, the design/status of C# itself is overseen by a standards committee (ECMA), but you're absolutely right that it's still controlled by M$ and this won't be changing very quickly. To me, M$'s relationship with ECMA is more of a PR thing.
    I think this makes C# a sloppy, and potentaly uglier implementation
    of Java than Sun's standard.Agreed.
    On a separate note, my statement with regards to Java vs. C# was made in the interest (and fun) of some good ole' this vs. that endless debate which unfortunately always spirals downward into a flame war. Let the games begin... (?)

  • For all those out there with Iphone5 WIFI issues,Please READ THIS

    I pre-ordered my iphone 5 (Black) got that last week. Quickly backed up my Iphone 4 and Restored my iphone 5.The first thing i checked to see is connecting to my WIFI network at home. And i kept getting a message "UNABLE TO CONNECT TO THE NETWORK". I had the iphone 4 aside and i can see iphone 4 is connected just fine. So are my laptop, Ipad and other devices.
    So what is different in Iphone5?
    After couple of days of head banging, and phone calls with apple support. I finally gave up and went to a apple store , they said, They have not heard any WIFI issues and my case was the first , However to keep me happy they said they will replace my device, But if have the same issue ,they will NOT be able to replace it again. And they even showed me the new iphoen connects to their "Non-secured" apple WIFI network.
    So i take the new phone home, and the first thing i try is connecting to WIFI.And i still get "Unable to connect to the wifi network ".And i still can see Iphone 4 working fine and connecting to the same network just fine. With the second iphone5 also not working, I realized it is not hardware, but something surely changed with WIFI in iphone 5. I have a NETGEAR router with its latest firmware installed(2.0.26). I then downgraded my firmware to 2.0.21, then gave a shot.
    BINGO..Iphone 5 works fine connects to wifi.and so is my iphone4 too.
    So for all those users out there, the fact is something changed in iphone 5 WIFI algorithm. And if anyone really disagrees with me on this, I am going to post a video to demonstrate on YOUTUBE. I believe it is completely UNFAIR for apple to now ask you Upgrade/change your router or its firmware. And it is not fair for router companies to Fix anything to make their firmware compatible with iphone5.
    So iphone 5 Users, Please lets us all push for a fix on this issue. WE WANT FIX.

    I can't tell you how frustrated/disappointed I was when this exact situation happened to me. I upgraded my wife's iPhone 4 to an iPhone 5 just to find out that it wouldn't connect to my home wifi but would connect everywhere else. Guess what...
    I found a fix!!
    On you iPhone go to Settings, General, About, scroll to "WiFi Address". Now stay there.
    Log-in to your modem thru your web browser via IP Address. (Keep in mind, I use a 2Wire modem, yours may be different) Clicked "Wireless" for wireless settings, scrolled down to "MAC Filtering" and clicked "Edit Allowed/Blocked Device List". At the bottom, there's a field to which you can manually enter a MAC address to you allow or block. If you're using a different modem with different menus/options, just browse around til you find a similar option of manually adding MAC addresses for access or blocking.
    MAC Address = Wifi Address. See where i'm going with this?
    Type the WiFi Address from you iPhone in the MAC address field, click "Add to List". If MAC filtering is enabled, it'll be added to the BLOCK list, simply click on the address, and click the double arrow pointing towards the ALLOW list so it'll transfer lists to where you want it, then click save.
    Now go back to your iPhone and attempt to re-connect to your wifi network as you normally would & voila!
    This worked for me, i hope it works for you as well.

  • Flash Newbie, Need Help From Flash Masters Out There

    Hi to all flash masters out there. Im new in flash
    and I only learned it trough flash help. My problem is that if i
    dont put a stop() on my first scene/layer1/frame1 my scene1 will
    immediately switch to scene2 without pressing the button. And if i
    put stop() to prevent scene1 from switching to scene2 without me
    clicking a button, all of the tweening effects in scene1 will not
    tween anymore.:( Please help, you can also email me at
    [email protected]

    Hi saxah_jean
    I am not a flash master but i think the problem can be solved
    . Try putting a stop on the last frame of your 1st scene, put a
    button on that that frame and give an action to jump to the next
    scene, frame 1.
    Abdul Aziz

  • I would like to make a suggestion for the next iso iphone 4-4s update.  Include a seperate treble and bass switch. What do u people out there think about this

    I would like to make a suggestion for the next iso itunes software update for the iphone 4-4s.  Include a serperate treble and bass switch for the ipod on the iphone.  What to you people out there think about this?

    vince20 wrote:
    Obviously you dont like listening to music on your ipod in iphone.  The EQ is crap
    Not true at all.
    I listen to music on my iphone all the time.
    It is your position that anyone who does not agree with you does not listen to music?
    Really?
    What a leap.

  • Any SCM-APO ABAPpers out there ????

    Hey folks -
    In my new job I'm going to have to do some exit/BAdI programming in SCM-APO.
    Somnath Manna has told me that over in the SCM-APO Forum,  the expertise is primarily functional, i.e. not many "techies" post or respond there.
    So who's going to answer my questions?
    Which of the "regulars" here at the ABAP Forum know the technical side of SCM-APO?
    Come on, folks ... I know you're out there ... !
    Regards
    djh

    Hi,
    You need to create a new ORDER_NUMBER every time a new order is created
    Best regards,
    Leandro Mengue

  • Help!! ALL of a sudden I cannot open ANY of my pictures in iPhoto. I have clicked the iPhoto icon on my dock, as I always have done, but no pictures appear. Can anybody out there help me???? Thank you!

    Help!! ALL of a sudden I cannot open ANY of my pictures in iPhoto. I have clicked the iPhoto icon on my dock, as I always have done, but no pictures appear. Can anybody out there help me???? Thank you!

    What does appear?

Maybe you are looking for