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...
Type: Posts; User: pottsiex5
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...
Hey,
You are right, i was comparing it to a string rather than the variable name,
Thanks
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.*;...
How do i make an override constructor? What is it exactly?
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...
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...
Hey, I think that the card layout would be best for what im doing. Thank you :)
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...
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...
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...
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 :)
Hi,
I tried using this:
ActionListener al = new ActionListener(){
public void actionPerformed(ActionEvent event){
if(event.getSource()==add){
...
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...
ThankYou, I figured out what was wrong with it.
No, how do i do that? (I use BlueJ, btw)
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...
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...
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[]...
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...
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?
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;...
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...
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...
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...
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...