Search:

Type: Posts; User: hiya54

Search: Search took 0.26 seconds.

  1. Replies
    3
    Views
    330

    Re: Animations on JFrame

    I'm not sure which code you were referring too, since i updated and removed the previous two codes, the one I currently have atm, runs with an animation in front of the background image. What I...
  2. Replies
    3
    Views
    330

    Animations on JFrame

    I am currently creating a GUI version based game for the game show deal or no deal
    What i have below in the code is an animation of the logo fading in and a background image

    The problem: the...
  3. Replies
    11
    Views
    305

    Re: Mouse Listner help

    None of the methods seem that helpful except this one
    public String paramString()
    Returns a parameter string identifying this event.
    Can you explain what that means, im not entirely sure on thier...
  4. Replies
    11
    Views
    305

    Re: Mouse Listner help

    Is it possible for you to give me the methods needed to check the button names
  5. Replies
    11
    Views
    305

    Re: Mouse Listner help

    String name = eventname.toString();
    would something like that work?
  6. Replies
    11
    Views
    305

    Re: Mouse Listner help

    No its java components, i was just implying a different method i have also tried using the getButton() method.
    Is there no simple way to just get the text on the button that the mouse clicked?
    I...
  7. Replies
    11
    Views
    305

    Re: Mouse Listner help

    Is there a method for that? I know for actions events you can use Actioncommand to get the string of the clicked button but mouse listener doesnt have it
    Methods that i know off so far only give you...
  8. Replies
    11
    Views
    305

    Mouse Listner help

    package Interfaces;

    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Image;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import...
  9. Replies
    2
    Views
    671

    Re: Restaurant Menu Program

    Variables to focus on, order for the textarea, and the String array starters, appetizers, etc

    Bad Behavior: So what happens is let say, you pick the Roquefort Salad, it would then appear below all...
  10. Replies
    2
    Views
    671

    Restaurant Menu Program

    package Buttons;

    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;...
  11. Replies
    5
    Views
    517

    [SOLVED] Re: Random Generator and 2D Arrays

    We werent taught array list or shuffle yet. I learned a bit of array list on my own spare time
    but yea not really that well, but anyways camel-man's method works with a simple while loop
  12. Replies
    5
    Views
    517

    [SOLVED] Re: Random Generator and 2D Arrays

    So do i need a if loop in the nested for loop? I know i had to do something like that i just didnt figure
    how to do it yet
  13. Replies
    5
    Views
    517

    [SOLVED] Random Generator and 2D Arrays

    So im making this ghost game where i display an 8x8 filled with 0s and a randomly generator five 1s in there
    I can get it to display 0s and add 1s, however sometimes the 1s that are randomly...
  14. Replies
    9
    Views
    1,133

    Re: Deal or No Deal game help!

    Thank you so much for your help! I will definitely take those suggestions and see what i can do with them.
  15. Replies
    9
    Views
    1,133

    Re: Deal or No Deal game help!

    package whileLoops;

    import java.util.Arrays;
    import java.util.Random;
    import java.util.Scanner;
    import java.util.ArrayList;

    public class testclass {

    // stores the money values and...
  16. Replies
    9
    Views
    1,133

    Re: Deal or No Deal game help!

    I was considering doing a loop or method, it made sense to not have a chunk of code in main, but i havent learned arraylist yet, i just picked it up last night on the web, as for putting it in a...
  17. Replies
    9
    Views
    1,133

    Re: Deal or No Deal game help!

    package whileLoops;

    import java.util.Arrays;
    import java.util.Random;
    import java.util.Scanner;
    import java.util.ArrayList;

    public class testclass {

    public static ArrayList listTest = new...
  18. Replies
    9
    Views
    1,133

    Re: Deal or No Deal game help!

    bumb
  19. Replies
    9
    Views
    1,133

    Deal or No Deal game help!

    package whileLoops;

    import java.util.Scanner;
    import java.util.Random;
    import java.util.StringTokenizer;

    public class DealOrNoDeal {

    public static void Instructions(){
    ...
Results 1 to 19 of 20