Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~4K People Reached
Favorite Tags
Member Avatar for Laidler

Using a code i got over the internet i managed to embed a .ram file on a html page. however after i copied this code to enter a second file the web page plays the second video in both palyers whenever i tell either of the files to play. Can …

Member Avatar for svrdeen
0
179
Member Avatar for Wootens

Hi guys, I'm working on a program which is essentially Rock Paper Scissors Vs. the computer. Anyway I'm having a bit of difficulty with it and could use some assistance. I need to use a class method, so I decided to separate the computer's choice in the class method, I'd …

Member Avatar for Laidler
0
378
Member Avatar for Laidler

Im trying to create a program which acts like a fruit machine at the moment i am writing an action listener to work with the spin JButton. i have a number of IconImages constructed. could i possibly set these images as an array and then use the random int method …

Member Avatar for Laidler
0
819
Member Avatar for latinajoyce

i have to code a program that ask for the user to enter a positive integer and then I have to find if the value that was enter is divisible by 11 (with no remainder) and display "yes" if it is divisible and "no" if it is not. <<My program …

Member Avatar for latinajoyce
0
94
Member Avatar for idgirl

I am very green at writing Java, I am trying to go through our chapter examples and putting in data for a mortgage calculator with a GUI. This code is far from finished but the example says "Now save and compile" and this is where I am getting the error …

Member Avatar for idgirl
0
144
Member Avatar for Laidler

Ok in my program i'm trying to prevent a user from adding too many objects. i have three arrays called subs airs and dests, the user shouldn't be able to have more than a total of 10 objects between them. in order to add an object to an array the …

Member Avatar for Laidler
0
138
Member Avatar for Laidler

i am currently working on a GUI for a program. i have created 100 jpanels which i have set opaque and colored blue. All of these blocks get an error which says that an identifier is expected for the lines which set them opaque and colors them, heres an example: …

Member Avatar for Laidler
0
88
Member Avatar for Laidler

i think theres something wrong with my computer, im trying to create a GUI for my program but it wont display my JLabels (which contain images) i downloaded a program with a GUI i made at the computer lab in my university which works there, but on my laptop it …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for Laidler

i have an array which fills with objects in my code after i press a certain button in my GUI I have another button which when i press should remove all of these objects from the array. however i cannot find a way to do this. can anyone help me …

Member Avatar for BestJewSinceJC
0
77
Member Avatar for Laidler

i am trying to code a toString() method which returns the string "Power: ON" if the power variable is equal to true and "Power: Off" if the power variable is equal to false (the power variable is the boolean type). However i dont know how to do this as the …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for Laidler

im having a problem getting an abstract method to work, heres the code [CODE] abstract ImageIcon getPicture(); { return picture; } [/CODE] When i compile the code i get the following error: Appliance.java:30: return outside method return picture; Can anyone help me fix this?

Member Avatar for BestJewSinceJC
0
196
Member Avatar for Laidler

I now have teo classes the first one contains this [CODE]import java.awt.*; import javax.swing.*; class fm1 extends JPanel { public fm1() { this.setLayout(new GridLayout(3,0)); Dimension D1 = new Dimension (300, 300); JLabel fruit1 = new JLabel(); fruit1.setPreferredSize(D1); fruit1.setOpaque(true); this.add(fruit1); JLabel fruit2 = new JLabel(); fruit2.setPreferredSize(D1); fruit2.setOpaque(true); this.add(fruit2); JLabel fruit3 = …

Member Avatar for Laidler
0
119
Member Avatar for Laidler

im trying to program a JAVA GUI but after i compile the code and try to run it i get an error message. i then downloaded a program i made at college and i get the same problem even though it ran at the university. [B]Heres the Code[/B] [CODE]import java.awt.*; …

Member Avatar for Laidler
0
111
Member Avatar for Laidler

Im trying to set my new laptop up to do java programming work on. when i try to compile a file i get the javac not recognised as internal external command error. ive tried different help topics including the [url]http://java.sun.com/docs/books/tutorial/getStarted/problems/[/url] link but their solutions dont solve the problem. anyone have …

Member Avatar for Laidler
0
90
Member Avatar for Laidler

ok heres my code [CODE]import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); Scanner myInput = new Scanner(System.in); String Input1 = myInput.next(); String s1="P"; String s2="C"; String s3="V"; String s4="Q"; do { tv.printImage(); System.out.println(""); System.out.println("Press P to turn …

Member Avatar for Laidler
0
118
Member Avatar for Laidler

import java.util.Scanner; class TestTelevisionV3 { public static void main(String [] args) { Television tv = new Television (4, 8, true); tv.printImage(); System.out.println(""); System.out.println("Press P to turn Power On or Off"); System.out.println("Press C to Change the Channel"); System.out.println("Press V to Change the Volume"); System.out.println("Press Q to quit"); System.out.println(""); Scanner myInput = …

Member Avatar for Laidler
0
167