Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~6K People Reached
Favorite Forums
Favorite Tags
Member Avatar for pi_lord12

Hey guys, I'm working on a project to use Huffman trees to compress a text file into binary. For instance, based on the frequency of the characters in a string like "aardvark", a - 3 r - 2 d - 1 v - 1 k - 1, compression using a …

Member Avatar for pi_lord12
0
216
Member Avatar for pi_lord12

Hey, I'm new to Python and wondering about the following bit of code. It tells me that the module random has no attribute randint. I've looked at the documentation and such and I think I'm doing it correctly, but obviously something's wrong. Any ideas? Thanks! [code] import random int1=random.randint(1, 6) …

Member Avatar for pi_lord12
0
2K
Member Avatar for pi_lord12

I am creating a game in which I import images from files to represent characters, etc. I have created a class called Contents which represents anything that can be placed on a tile of the gameboard. A subclass of Contents (by several levels) is Wizard, to create a wizard character. …

Member Avatar for pi_lord12
0
143
Member Avatar for shahreza

index no.student room 41 18 M.OPERASI 41 27 M.OPERASI 41 PODIUM 41 24 PODIUM 41 25 PODIUM 41 19 B 206/207 this is a part of data in a text file that i will read and place it in array and save it in another text file.. but i got …

Member Avatar for shahreza
0
193
Member Avatar for dupowdis

So basically, I have this GUI program. I can run it, and it displays a graph of some data. The thing is, I want to put this program inside of JFramebuilder, and make changes to it. I dont know if it is even possible, but I figured if I opened …

Member Avatar for pi_lord12
0
134
Member Avatar for pi_lord12

I am working my way through an online book--Intro to Java Programming by David Eck--and in it he says that it is generally considered bad style to use the getGraphics() method to draw outside of a component's paintComponent method. Does anyone know why this is?

Member Avatar for pi_lord12
-1
141
Member Avatar for pi_lord12

I'm making a JPanel for a game. I want the background to be an imported image, so I set up a ClassLoader to import the image and converted that to a URL. However, that URL appears to be null, as when I try to put the panel into a JFrame, …

Member Avatar for pi_lord12
0
153
Member Avatar for Bewitched

I got this to run but it will not display the final result. It ask for C or F then the temp degree but will not display the conversion. The process just completes. Any ideas? I am new here.... Thanks My project::-/ [CODE]import javax.swing.JOptionPane; public class Assign8_Cheshire { public static …

Member Avatar for pi_lord12
0
176
Member Avatar for pi_lord12

So to get practice writing applets, I tried to write one that simply draws a chessboard in a 160 x 160 window. I am pretty sure I got the code right for both the html and java files, and I have the html file in the same directory as my …

Member Avatar for pi_lord12
0
118
Member Avatar for pi_lord12

Ok, so I'm trying to make a constructor for a text-based game for a monster. Here is the code for it: [CODE]public class Methods { String name; //characteristics of monsters int bodyPoints, mindPoints, attack, defense; public Monster(String name, int bodyPoints, int mindPoints, int attack, int defense) { this.name=name; this.bodyPoints=bodyPoints; this.mindPoints=mindPoints; …

Member Avatar for pi_lord12
0
2K
Member Avatar for pi_lord12

Hey, so I'm trying to make a text-based game using mostly Swing GUI; the code I have so far is below. When I use JOptionPanes I modify the icon, title, and suchlike on them, so I have about two lines of code for every JOptionPane. I created methods for them …

Member Avatar for pi_lord12
0
171