Ross Gerard

Ranch Hand
+ Follow
since Jan 30, 2016
Ross likes ...
Java
Java is Hard I need help
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
29
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ross Gerard

Trying to get code to compile but getting strange error message.






























6 years ago
Constructor Detail

BorderLayout

public BorderLayout()

Constructs a new border layout with no gaps between components.


http://docs.oracle.com/javase/7/docs/api/java/awt/BorderLayout.html#LINE_START
6 years ago
Hello I am trying to have an equal east and wast panel divided down the middle. But I keep getting a gap between the two. I want no gap.


6 years ago



Here is the solution all
6 years ago
This donesnt work unfort.


6 years ago
I simply want to select b1 with a mouse click and change b2 to random in actionPerformed but having problems with strange error message when I try to: //p1.b1.addActionListener(this); on MyJPanel2 I am not allowed to change anything in MyJPanel1. Exception in Main error





6 years ago
I have command line downloaded for startes and plenty of books. Just wondering about the pi emulator now
6 years ago
Hi everyone. Thanks for taking the time to read my post. I like messing around with computers or electronics and especially getting them attached to toys. So, I am looking for a platform to program with python. Ideally I would love to find an online emulator that allows me to practice my code on a pi device? If anyone could help me out it would be greatly appreciated.
6 years ago
I am working on it. Just need different perspectives like yours to bring it together for me. Thank you.
6 years ago
Okay, I can fiy the formatting of code to this style no problem and seperate each if statement by a blank line. Thanks for the find there was wondering why it semi worked but I didn#t get an error. Thanks for the tips it will sink in with practice. This is the first I have heard about debug statements however. I donĀ“t know how to display the value of a random unless I println it. Is that what you mean?
6 years ago
Hello, I want my program to listen to jl1 and read a random activity from b2 eachtime jl1 is pressed. For some reason each time I press jl1 nothing happens until the second time I press it then it always gives the same random response. I need some advice please.






























6 years ago
That was a great explanation I appreciate it. Now I can use that and study that then look up examples at Oracle. Thank you.
6 years ago
Abstract I want mjp1 and MJP2 to talk to each other and share objects. Not sure how.
Goal to enable jl1 when clicked to execture action listener on b2
























import java.awt.*;
import javax.swing.*;
import java.awt.event.*;




















6 years ago