Search:

Type: Posts; User: pottsiex5

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Replies
    1
    Views
    1,361

    Start: Applet not initiallized

    Hi,
    Sorry if this is in the wrong place, i didnt know whether to post it under applets or under what wrong with my code...
    So, i have an applet that im trying to run in the browser with this HTML...
  2. Replies
    2
    Views
    1,976

    Re: CardLayout wont go to the next card

    Hey,
    You are right, i was comparing it to a string rather than the variable name,
    Thanks
  3. Replies
    2
    Views
    1,976

    CardLayout wont go to the next card

    Hi,
    I have a JPanel with a cardLayout, however when i try to go to the next card nothing happens. Here is my code:

    01 import java.applet.*;
    02 import java.awt.*;
    03 import java.util.*;...
  4. Replies
    4
    Views
    2,190

    Re: extended JPanel is empty

    How do i make an override constructor? What is it exactly?
  5. Replies
    4
    Views
    2,190

    Re: extended JPanel is empty

    I should also point out that im trying to call it in an applet. I called it in a normal JFrame and it worked fine, it just doesnt like the applet...
  6. Replies
    4
    Views
    2,190

    extended JPanel is empty

    Hi,
    I made a extended JPanel, but when i call on it in another class the panel shows but its empty... This is my code:

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public...
  7. Replies
    6
    Views
    3,125

    Re: How to make a new screen on applet.

    Hey, I think that the card layout would be best for what im doing. Thank you :)
  8. Replies
    6
    Views
    3,125

    Re: How to make a new screen on applet.

    I dont want it to open in a new window, i want it to clear the current screen and make the new one. I put some println and the actionlistener works fine before and after i call a new FindPage, but...
  9. Replies
    6
    Views
    3,125

    Re: How to make a new screen on applet.

    Yes, in my main applet i call on the next screen with :
    if (e.getSource()==add){
    FindApplet findapplet = new FindApplet();
    }

    and then the FindApplet class is a new...
  10. Replies
    6
    Views
    3,125

    How to make a new screen on applet.

    Hi, Im making an applet that has a bunch of stages. The applet has a little "next" button down in the corner, and i want it to take them to the next section, however, unlike making a regular program...
  11. Replies
    9
    Views
    5,496

    Re: How to use multiple actionlisteners

    Hey,
    I got it to work. I made the GUI in a constructor method and then used main to create the new GUI. Thank You for the help :)
  12. Replies
    9
    Views
    5,496

    Re: How to use multiple actionlisteners

    Hi,
    I tried using this:


    ActionListener al = new ActionListener(){
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==add){
    ...
  13. Replies
    9
    Views
    5,496

    How to use multiple actionlisteners

    Hi,
    I am trying to make a code that has multiple buttons, but the only way i know how to make action listeners are to either use inner classes (which require variable to be final, which isnt good...
  14. Replies
    9
    Views
    1,355

    Re: binarySearch troubles

    ThankYou, I figured out what was wrong with it.
  15. Replies
    9
    Views
    1,355

    Re: binarySearch troubles

    No, how do i do that? (I use BlueJ, btw)
  16. Replies
    9
    Views
    1,355

    Re: binarySearch troubles

    My problem is, that in the method that checks if the string matches the array slot, it adds 1 to the return value, even if it is equal to it... So it will always add it to the array even though its...
  17. Replies
    9
    Views
    1,355

    Re: binarySearch troubles

    So, the method checks to see if the string matches with a slot in the array, or array[counter]. If the string and the array slot are not equal, it adds 1 to the value that gets returned. If the value...
  18. Replies
    9
    Views
    1,355

    Re: binarySearch troubles

    Hey,
    I made a new method for it:

    import java.util.Arrays;
    import java.util.Random;
    import java.lang.StringBuilder;
    public class StringScramble
    {

    public static void main (String[]...
  19. Replies
    9
    Views
    1,355

    binarySearch troubles

    Hi,
    Im making a program that scrambles a word into all the possible permutations. So i swap letters in the string randomly to make a new string. I then want to search the array to see if that string...
  20. Replies
    4
    Views
    1,152

    Re: InnerClass troubles

    So, how would i access a variable from the innerclass, or make a reference to the instance (im not quite sure what that is). Is there a method for a string that allows me to set it as something else?
  21. Replies
    4
    Views
    1,152

    InnerClass troubles

    Hey,
    Im trying to use a variable from an inner/nested class in an outer class. My code is:


    import java.awt.*;
    import javax.swing.*;
    import java.io.File;
    import java.awt.event.ActionListener;...
  22. Replies
    3
    Views
    1,561

    Re: How to change an Imagepath

    Hi,
    Im not having troubles with layouts. The thing is at the moment i have multiple pictures. Instead i only want to have one picture that changes. I thought that by changing the path i could change...
  23. Replies
    3
    Views
    1,561

    How to change an Imagepath

    Hey,
    I am trying to change the file path for an image. What i had planned was an if function that would switch the path name, because at the moment i have a bunch of labels with a picture, and...
  24. Replies
    8
    Views
    3,247

    Re: Timer wont stop...

    I did take your advice and recompile it. Though i did find out that if i reduce the speed to anywhere below 1062 milliseconds it works... I also noticed in the title of the console it says...
  25. Replies
    8
    Views
    3,247

    Re: Timer wont stop...

    Hey, i downloaded BlueJ and my code worked in that, so there must be something wrong with my eclipse... Ill let you know if i figure it out...
Results 1 to 25 of 46
Page 1 of 2 1 2