I tried putting my actionPerformed method before JVideo() (I think this is what you were referring to) but it didnt change anything, then I pulled my if statements out from there and put them right...
Type: Posts; User: Olympaphibian89
I tried putting my actionPerformed method before JVideo() (I think this is what you were referring to) but it didnt change anything, then I pulled my if statements out from there and put them right...
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JVideo extends JFrame implements...
wow... thank you so much, haha. its always something simple
--- Update ---
wohoo, i can finally begin on the rest of the project where clicking these things actually does something!
package Components;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JVideos extends JFrame implements ActionListener
{
JLabel explainSelector = new...
kinda was cut and pasted >.<
I had originally had the code outside the method and after seeing examples of others code I moved much of my code inside of the JVideos method. It would build before but...
package Components;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JVideos extends JPanel implements ActionListener
{
JLabel explainSelector = new...
huzzah!!! I got it working. I just sat here and really stared at it for a while. then I ran into the problem of this just going through the list once and it would print.
Posting this in case anyone...
Im still new to this. as Im reading my code Im thinking I need to include an if statement to check then switch the two numbers around inside of the for loop
hello :)
Okay, with this bit of code im working on listing a disorganized double array into ascending order. I used an example from my text book to run organize using bubble sort. Only issue is that...
So im trying to create a hangman like game. Ill add to it later but right now I just need the basics.
I'm trying to create a loop to find the position that a guessed letter is in then replace the...
Ah, I see it now. Yes, I forgot to actually call the into play the set method. I'm just jumping back into programming after a about a 2 year break so I'm super rusty. It runs fine now, tyvm.
So first I'm supposed to create a Die class for generating a random number from 1 to 6
import java.util.*;
public class Die
{
int faceValue;
final int HIGHEST_DIE_VALUE = 6;
final int...
ah, thank you very much! I sat here staring at it for what seemed like an eternity and couldn't see the problem. I see it now, hidden in plain sight!!!
import java.util.Scanner;
public class SetUpSite2
{
public static void main(String[] args)
{
final int FOUNDED_YEAR = 1977;
int currentYear;
int age;