Really need to show an image in this applet...

Hi,
I need to display an image in my applet as a sort of "Start Screen" like you get on games.
But I'm damned if I can get it to work, my tutor provided the unifinished shell of a program, and it seems that I need to display this image before any... panels.. or whatever it is... are initiated. So I could either create a new one, just to show this image, then make it go away when the image does, or, have it popup as part of a message box, or something.
I stumbled on a splash screen feature, found in Java 1.6, but although I'm using 1.6, my university still uses 1.5, so it's a no go.
Ideally, it would be a popup window I think, more like a fancy about box than a title screen. But I don't know how to do that either, so any help would be greatly appreciated ^^
Thanks

Look into addNotify() and MediaTracker.

Similar Messages

  • Hello, I have a Macbook Pro 2011, and put an SSD on it. Yesterday i upgrade to Yosemite and sadly mi trim is not supported .... I really need (and demand) a solution to this, because like i see in the manual of the mac, Iam allowed to install a disk.

    Hello, I have a Macbook Pro 2011, and put an SSD on it. Yesterday i upgrade to Yosemite and sadly mi trim is not supported .... I really need (and demand) a solution to this, because like i see in the manual of the mac, Iam allowed to install a disk.

    Try a Safe Boot to clear the dyld_shared_cache (dynamic loader cache)
    SafeBoot  http://support.apple.com/kb/HT1564
    Safe Boot, which automatically rebuilds this cache (among other things).

  • I do not know how to get the music that I buy on itunes, on my mac, onto an ipod. I have already authorized my computer and "downloaded" my music, but that did not do anything. Please I really need to know how to do this on my own but I am stuck.Thank you

    I do not know how to get the music that I buy on itunes, on my mac, onto an ipod. I have already authorized my computer and "downloaded" my music, but that did not do anything, or provid the results that I was expecting, at least. Please, I really need to know how to do this on my own but I do not know what to do.Thank you in advance to anyone that is answering this question that I know most everyone but me knows how to accomplish. thanks!!!

    In iTunes go to the Help menu in the upper menu bar.  Then click on iTunes Help. Then on Sync your iPod, iPhone or iPad and follow the instructions.

  • My iPhone 4s is stuck on the "connect to itunes" whenever I tried to turn it on. But at the moment I don't have a computer and I really need my phone on right at this moment. Is there anyway I can get it to turn on without a computer??! Thanks!

    My iPhone 4s is stuck on the "connect to itunes" whenever I tried to turn it on. But at the moment I don't have a computer and I really need my phone on right at this moment. Is there anyway I can get it to turn on without a computer??! Thanks!

    i tried to connect it but it didnt work...nothing changed...

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • I am wondering why the java site that I use workes on my Mac, but not my iPad or iPhone. I really need to be able to use this for my website... Any clue?

    I have a link for my website that runs java for this program. I need to be able to view this also on my iPad and iPhone, as I can with my Mac and pc. If anyone knows anything I can do to make this work, I would greatly appreciate it.

    VirtualChrome.

  • Significance of "You need to enable Java to see this applet"

    i am a novish for applet programming.
    i have written the code for drawing a spectrum.
    import java.applet.*;
    import java.awt.*;
    public class DrawingWithColor1 extends Applet {
    int width, height;
    int N = 25; // the number of colors created
    Color[] spectrum; // an array of elements, each of type Color
    Color[] spectrum2; // another array
    public void init() {
    width = getSize().width;
    height = getSize().height;
    setBackground( Color.black );
    // Allocate the arrays; make them "N" elements long
    spectrum = new Color[ N ];
    spectrum2 = new Color[ N ];
    // Generate the colors and store them in the arrays.
    for ( int i = 1; i <= N; ++i ) {
    // The three numbers passed to the Color() constructor
    // are RGB components in the range [0,1].
    // The casting to (float) is done so that the divisions will be
    // done with floating point numbers, yielding fractional quotients.
    // As i goes from 1 to N, this color goes from almost black to white.
    spectrum[ i-1 ] = new Color( i/(float)N, i/(float)N, i/(float)N );
    // As i goes from 1 to N, this color goes from almost pure green to pure red.
    spectrum2[ i-1 ] = new Color( i/(float)N, (N-i)/(float)N, 0 );
    public void paint( Graphics g ) {
    int step = 90 / N;
    for ( int i = 0; i < N; ++i ) {
    g.setColor( spectrum[ i ] );
    g.fillArc( 0, 0, 2*width, 2*height, 90+i*step, step+1 );
    g.setColor( spectrum2[ i ] );
    g.fillArc( width/3, height/3, 4*width/3, 4*height/3, 90+i*step, step+1 );
    Then it is requires to enable java to see this applet.
    i went to intenet explorer->tools->internet options->advanced->enabled jre(sun)and ok
    Please help me how to proceed further to view the final output

    If you're using Microsoft's JVM, I think you have to restart the browser after turning the JVM on.
    But it's an old, crappy JVM anyway.
    Install the Java plug-in from Sun.

  • Really need help on how to write this program some 1 plz help me out here.

    i am new to java and i confused on how to be writing this program.
    i have completed the Part 1 but i am stuck on Part 2 & 3 so it would would be really great if any 1 could help me out on how to write the program.
    Part I
    An algorithm describes how a problem is solved in terms of the actions to be executed, and it specifies the order in which the actions should be executed. An algorithm must be detailed enough so that you can "walk" through the algorithm with test data. This means the algorithm must include all the necessary calculations.
    Here is an algorithm that calculates the cost of a rectangular window. The
    total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per
    square inch (area) and the metal frame is 75 cents per inch (perimeter).
    The length and width of the window will be entered by the user. The
    output of the program should be the length and width (entered by the user)
    and the total cost of the window.
    FORMULAS:
    area = length times width perimeter = 2 times (length plus width)
    Here is the corresponding algorithm:
    read in the length of the window in inches
    read in the width of the window in inches
    compute the area
    compute the cost of the glass (area times 50 cents)
    compute the perimeter
    compute the cost of the frame (perimeter times 75 cents)
    compute the total cost of the window (cost of glass plus cost of frame)
    display the length, width and total cost
    The next step would be to "desk check" the algorithm. First you would need to make up the "test data". For this algorithm, the test data would involve making up a length and a width, and then calculating the cost of the window based on those values. The results are computing by hand or using a calculator. The results of your test data are always calculated before translating your algorithm into a programming language. Here is an example of the test data for the problem given:
    length = 10
    width = 20
    area = 200, glass cost= 100.00 (area times 50 cents)
    perimeter = 60, frame cost = 45.00 (perimeter times 75 cents)
    total cost =145.00
    Once the test data is chosen, you should "walk" through the algorithm using the test data to see if the algorithm produces the same answers that you obtained from your calculations.
    If the results are the same, then you would begin translating your algorithm into a programming language. If the results are not the same, then you would attempt to find out what part of the algorithm is incorrect and correct it. It is also
    necessary to re-check your hand calculations.
    Each time you revise your algorithm, you should walk through it with your test data again. You keep revising your algorithm until it produces the same answers as your test data.
    ?Now write and submit a Java program that will calculate the cost of a rectangular window according to the algorithm explained. Be sure to prompt for input and label your output.?
    Part II
    Write, compile and execute a Java program that displays the following prompts:
    Enter an integer.
    Enter a second integer
    Enter a third integer.
    Enter a fourth integer.
    After each prompt is displayed, your program should use the nextint method of the Scanner class to accept a number from the keyboard for the displayed
    prompt. After the fourth integer has been entered, your program should calculate and display the average of the four integers and the value of the first integer entered raised to the power of the second integer entered. The average and result of raising to a power should be included in an appropriate messages
    (labels).
    Sample Test Data:
    Set 1: 100 100 100 100
    Set 2: 100 0 100 0
    Be sure to write an algorithm first before attempting to write the Java code. Walk through your algorithm with test data to be sure it works as anticipated.
    Part III
    Repeat Part lI but only calculate the average, not the power. This time, make sure to use the same variable name, number, for each of the four numbers input. Also use the variable sum for the sum of the numbers. (Hint: To do this, you may use the statement sum = sum + number after each number is read.)
    For Part 1 this is what i got
    import java.util.Scanner;
    public class Window
         public static void main(String[] args)
              double length, width, glass_cost, perimeter, frame_cost, area, total;
              Scanner keyboard = new Scanner (System.in);
              System.out.println("Enter the length of the window in inches");
              length = keyboard.nextInt();
              System.out.println("Enter the width of the window in inches");
              width = keyboard.nextInt();
              area = length * width;
              glass_cost = area * .5;
              perimeter = 2 * (length + width);
              frame_cost = perimeter * .75;
              total = glass_cost + frame_cost;
                   System.out.println("The Length of the window is " + length + "inches");
                   System.out.println("The Width of the window is " + length + "inches");
                   System.out.println("The total cost of the window is $ " + total);
         Enter the length of the window in inches
         5
         Enter the width of the window in inches
         8
         The Length of the window is 5.0inches
         The Width of the window is 5.0inches
         The total cost of the window is $ 39.5
    Press any key to continue . . .
    Edited by: Adhi on Feb 24, 2008 10:33 AM

    Adhi wrote:
    i am new to java and i confused on how to be writing this program.
    i have completed the Part 1 but i am stuck on Part 2 & 3 so it would would be really great if any 1 could help me out on how to write the program.Looks like homework to me.
    What have you written so far? Post it.
    Part I
    An algorithm describes how a problem is solved in terms of the actions to be executed, and it specifies the order in which the actions should be executed. An algorithm must be detailed enough so that you can "walk" through the algorithm with test data. This means the algorithm must include all the necessary calculations.
    Here is an algorithm that calculates the cost of a rectangular window. The
    total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per
    square inch (area) and the metal frame is 75 cents per inch (perimeter).
    The length and width of the window will be entered by the user. The
    output of the program should be the length and width (entered by the user)
    and the total cost of the window.
    FORMULAS:
    area = length times width perimeter = 2 times (length plus width)
    Here is the corresponding algorithm:
    read in the length of the window in inches
    read in the width of the window in inches
    compute the area
    compute the cost of the glass (area times 50 cents)
    compute the perimeter
    compute the cost of the frame (perimeter times 75 cents)
    compute the total cost of the window (cost of glass plus cost of frame)
    display the length, width and total cost
    The next step would be to "desk check" the algorithm. First you would need to make up the "test data". For this algorithm, the test data would involve making up a length and a width, and then calculating the cost of the window based on those values. The results are computing by hand or using a calculator. The results of your test data are always calculated before translating your algorithm into a programming language. Here is an example of the test data for the problem given:
    length = 10
    width = 20
    area = 200, glass cost= 100.00 (area times 50 cents)
    perimeter = 60, frame cost = 45.00 (perimeter times 75 cents)
    total cost =145.00
    Once the test data is chosen, you should "walk" through the algorithm using the test data to see if the algorithm produces the same answers that you obtained from your calculations.
    If the results are the same, then you would begin translating your algorithm into a programming language. If the results are not the same, then you would attempt to find out what part of the algorithm is incorrect and correct it. It is also
    necessary to re-check your hand calculations.
    Each time you revise your algorithm, you should walk through it with your test data again. You keep revising your algorithm until it produces the same answers as your test data.
    &#147;Now write and submit a Java program that will calculate the cost of a rectangular window according to the algorithm explained. Be sure to prompt for input and label your output.&#148;
    Part II
    Write, compile and execute a Java program that displays the following prompts:
    Enter an integer.
    Enter a second integer
    Enter a third integer.
    Enter a fourth integer.
    After each prompt is displayed, your program should use the nextint method of the Scanner class to accept a number from the keyboard for the displayed
    prompt. After the fourth integer has been entered, your program should calculate and display the average of the four integers and the value of the first integer entered raised to the power of the second integer entered. The average and result of raising to a power should be included in an appropriate messages
    (labels).
    Sample Test Data:
    Set 1: 100 100 100 100
    Set 2: 100 0 100 0
    Be sure to write an algorithm first before attempting to write the Java code. Walk through your algorithm with test data to be sure it works as anticipated.So this is where you actually have to do something. My guess is that you've done nothing so far.
    Part III
    Repeat Part lI but only calculate the average, not the power. This time, make sure to use the same variable name, number, for each of the four numbers input. Also use the variable sum for the sum of the numbers. (Hint: To do this, you may use the statement sum = sum + number after each number is read.)Man, this specification writes itself. Sit down and start coding.
    One bit of advice: Nobody here takes kindly to lazy, stupid students who are just trying to con somebody into doing their homework for them. If that's you, better have your asbestos underpants on.
    %

  • TS2771 LCD screen shows double image, is this hardware or software?

    I have a 4th Gen iPod Touch that shows a double image on the LCD. About a third from the bottom of the screen you see the screen image repeated. The iPod was never dropped so I don't know how this damage occurred.
    I plan on replacing the screen, but I am worried that once I do, the problem won't go away. Has anyone seen this before? Do you know if the problem will go away with a new screen? Is this a logic board problem?
    Thanks.

    Try the following to rule out a software problem:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod
    If still problem then it is likely a hardware problem.
    I have no idea if it is a screen or ligic board problem.

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • Showing the images

    Hi.I need to show the images wich are in folder images &
    display "No Image" for those we have not the image in the folder.
    I wrote this code:
    <cfset PhotoLocation =
    "e:\www\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_image#</cfoutput> ">
    <cfif not FileExists(PhotoLocation)>
    <cfoutput>no image</cfoutput>
    <cfelse>
    <a><img
    src="#imagePath#images/manufacturer/#getBrands.cat_level2_image#"
    width="60" height="40" /></a>
    </cfif>
    but the result is incorrect & typed "NO Image" for all
    the images.
    would u plz help me what is wrong with my code?
    thanks

    Try
    <cfif
    FileExists(ExpandPath("\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_i mage#</cfoutput>"))>
    If you still want to use the PhotoLocation you need to amend
    thus:
    <cfset PhotoLocation =
    "\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_image#</cfoutput>">
    <cfif FileExists(ExpandPath(PhotoLocation))>

  • How to Show custom image  on Google Map Oracle Apex 4.1 page

    Hi.. All,
    Need to show custom Image (From Database Table which is a BLOB Column) as Marker on Google Map with fixed size if we zoom in or zoom out.
    I am using Apex 4.1 and oracle11g r2.
    Thanks in Advance

    Hello,
    This plugin Does Exactly What You Need.
    http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/extension-warp11-gmaps-item_109.html
    Please read the comments on the plugin, in case you come across problem in running the plugin....
    Best Regards,
    Fateh
    If you believe that my answer was correct, then please mark the answer as correct. This is for the best of all

  • HT4818 When I try to partition my hard drive for Windows 7, I get an error saying The disk cannot be partitioned because some files cannot be moved. I have a 2006 Macbook Pro I believe and I really need assistance as soon as possible.

    I have Windows 7 Premium Home and I have downloaded the Drivers and when I click Boot Camp Assistance to partition my hard drive, it says, "The disk cannot be partitioned because some files cannot be moved. Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot Camp Assistant again." I can't do any backup really because I don't have an external hard drive to work with. I tried repairing disk permissions but that did not do anything. I really need a lot of help with this with some easy, step-by-step tutorials or something. I believe I have a 2006 version of Macbook Pro(4,1).

    Once you have obtained an external drive and connected it you will 'clone' your internal drive to it.
    Download Carbon Copy Cloner (it is not free but there is a fully functional trial version which is). Use it to clone your internal drive to your external drive. When that is done you will reboot from the clone and use Disk Utility to erase the internal drive (choose Mac OS Extended (Journaled)) as the format (this is normally preset, but check). Make sure to give the external drive a 'distinctive' name, don't want to get drives mixed up in this process.
    Once that is done you will use Carbon Copy Cloner (from the clone) to restore the external to the internal.

  • Really Need Help ! (Two things)

    First off, i am trying to open a project in Final Cut, but can't find the project file itself. I go into finder, type the name, and I find all the sequences, all the clips and everything, but there is nothing I can specifically open. I really need to be able to open this project, so any help would be appreciated.
    Also, whenever I try to export anything I get an "Error : Out of Disc Space" message. I have checked all my scratch discs, and all of that and made sure it was going to my hard drive that has 300 some GB on it. I have also tried trashing the preferences without any success.
    plEASE HELP!

    FCE project files are normally located in your +Final Cut Express Documents+ folder. If it's not there, it could be anywhere. You might be better off looking in your +Final Cut Express Documents > Autosave Vault+ folder for a backup copy of your project file - if you do that, copy the project file to another folder (preferably your Final Cut Express Documents folder) and rename it before you open it.)
    +" ... whenever I try to export anything I get an "Error : Out of Disc Space" message ..."+
    This usually indicates that the drive you are trying to export to is formatted as FAT32. It needs to be formatted as Mac OS Extended. Don't reformat the drive unless you backup anything you need to keep first. Reformatting erases the entire drive.
    A lot more specific details from you would be helpful.

  • I really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying _

    i really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying

    If your rescue email is not working and you cannot remember even one answer, then you only have one option - call Apple.
    http://support.apple.com/kb/HT5665

Maybe you are looking for

  • How long is the power cable?

    I'd like to know how far away from a power socket can I place this camera? 

  • Bad PBR Sig - Solaris 10 x86 06/06

    Hello all, I have seen this error over and over... "Bad PBR Sig" and I have yet to find a way to fix it. I am installing Solaris 10 on a brand new disk. When the installation asks me, I tell it to use the whole disk for Solaris. Call me crazy, but I

  • UserManager in 10.1.3...

    I've read that the custom UserManager is deprecated in OC4J 10.1.3 and that a custom LoginModule is the preferred choice now. I am just getting my feet wet with JAAS and had a couple of questions: I wrote a custom user manager for OC4J 10.1.2 to take

  • Adding new field in MIRO SAPLMR1M '6510'

    hi all i have arequirement where in i need add a new field STCD1 in vendor screen of MIRO in SAPLMR1M '6510' need help in achieving this. thanks n regards laxmikanth

  • Can you download from i tunes to more than one i pod

    download from i tunes to more than one i pod