36,051 Topics

Member Avatar for
Member Avatar for drunkpanda

recently, i bought a textbook call "Objects first with java" for self study. at the chapter 7, design a "Command Line Game" and a exercise ask me to put more functions in the game, as i do so i encounter many problems, and one of the problem as sohowing below, …

Member Avatar for stupidenator
0
349
Member Avatar for Hjcooke

This is a piece of work i need to complete for my Object Orientated programming module at university. The task, (User Input) Order Number, Name, Address line 1 and Address line 2 and select either Computer and/or printer check box. N.B. These FIVE fields must be completed by User otherwise …

Member Avatar for shakaal
0
263
Member Avatar for lyn1261

my computer has been extremely slow the past week. I assume my son must have attained some viruses. The internet takes awhile to open and the entire computer is running slowly. Can someone please help? Here is my hijack this log: Logfile of HijackThis v1.99.0 Scan saved at 4:43:24 PM, …

Member Avatar for Monksrule333
0
356
Member Avatar for B33FALO

Hi everybody. I'm pretty new to java programming, just taking it as independent study my final year of high school, and I was looking for a little help. I was wondering if there was a way to have the program pause and wait for the user to tap any key …

Member Avatar for server_crash
0
7K
Member Avatar for hasan2003

Hi thanks for comming to this thread... can any one give me the idea how to use javax.swing.Icon interface?

Member Avatar for Ghost
0
117
Member Avatar for jengels

For this program, we need to read in a file which has baseball stats. Our program reads in the dat file then parses each line in the file. The file looks like this: Joe h,o,h,s,h,o,h,h,h,o,o,o Bill s,o,o,h,h,o,s,s,o So far I'm ok with this. Here is the part that I'm struggling …

Member Avatar for Phaelax
0
171
Member Avatar for nabil1983

Ok wrote this program out, compile it it compiles, when i run it it starts off nicely, but when i enter Album Name it gives me an error. Neone know where im going wrong..... import javax.swing.*; public class CdStorage { public static void main (String[] args) { String menu_choice; int …

Member Avatar for nabil1983
0
140
Member Avatar for tat2dlady

I have an assignment that I need to do that designs the necessary classes to facilitate an indirect blocking and non-blocking communication environment between threads (producers and consumers) using a bounded buffer whose size is defined at run time. I am to test the working of these classes by creating …

0
67
Member Avatar for jasweb2002

Hey everyone, Alright, my project requires that I write a program to demonstrate my understanding of class inheritance. Problem is the teacher wants us to use Java, something I have never used and the teacher did not even give us a crash course in. Right now I am trying to …

Member Avatar for paradox814
0
154
Member Avatar for Meldroz

Hey guys and gals, an int in java is 4 bytes as we all know i bet. Trying to break my into 4 bytes : int foo = 87; bytes[4] mybyte = new bytes[4]; the problem is i don't really know how to break my int into single bytes i …

Member Avatar for Meldroz
0
167
Member Avatar for server_crash

How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment?

Member Avatar for jwenting
0
164
Member Avatar for stupidenator

Hey all. I am attempting to build a java applet with just a textfield and a button for a search on a web site. When the button is pushed, I have it set up to look at what the user typed into the textfield and then match it to either …

Member Avatar for stupidenator
0
111
Member Avatar for c_s_m_o_s

hi. I read a .txt file and i want to put the values from it , to an array. I have dificulties. here is the code i am using: [CODE] public void read(File afile) { FileInputStream fInpStr = null; BufferedReader bRead = null; StringTokenizer strTok = null; String line = …

Member Avatar for c_s_m_o_s
0
155
Member Avatar for Ghost

I was wondering if anybody had any cool projects ideas. Please post them. Thanx, C++

Member Avatar for Phaelax
0
82
Member Avatar for gschoser

I at least have the program working correctly thanks to the awesome help from various boards and people I work with. However, now I want to tweak the program a little bit. I am currently using a combobox for the interest rate and term. I would like to use either …

Member Avatar for Phaelax
0
152
Member Avatar for ValerieJ

This problem started happening a couple of days ago. When I'm on certain websites and launch a window (usually a java pop up), the pop up window appears...begins to load for a second and then disappears completely. Also, the original Website that I launched from disappears too! :eek: I'm running …

Member Avatar for SteveS
0
719
Member Avatar for nabil1983

Hi all, Ok i've started doing a mini project about a CD collection database. i got the program working ata stage where you can enter a single entry and the record is printed to the screen, the problem im having is i can not seem to modify the program to …

Member Avatar for tonakai
0
161
Member Avatar for johnroach1985

[size=2]Hi I just started a new website kind of lame but that will be picked up soon.Ok here is the question did not know where to post it so I am posting it here.It is this: I am trying to make a users immmm how to called it comment box.You …

Member Avatar for johnroach1985
0
235
Member Avatar for jengels

I'm supposed to write a loop to loop through the days, the write a switch statement for the verses. The program should print out just like the song goes. For example: On the 1st day of xmas my true love gave to me, a partidge in a pear tree On …

Member Avatar for jengels
0
135
Member Avatar for Ghost

Hi, I am making a task-manager like program and i wanted to create a pie chart referring to the free/max memory (like the pie chart u see if you right click "My Computer.") Can anybody please tell me how to do this (oh yeah, it's an application, not an applet) …

Member Avatar for server_crash
0
176
Member Avatar for mikau nero

Runescape is the absolute BEST internet game. Its a Java game too. Java, you should be proud. *sniff* Anyways, the game is free, but its $5 a month for a premium account. You start out level 3 on a tutorial. Figure it out :) [URL=http://www.runescape.com]Go to this page, then click …

Member Avatar for OurNation
0
194
Member Avatar for paradox814

how can i create a weblink in my java program. I tried adding a weblink in JLabel usign the html tags: [code] JLabel wwwLink = new JLabel("<html><a href=\"http://www.domain.com\">my link</a></html>"); panel.add(wwwLink); [/code] But the text came out blue as if it were a link, but nothing happens when you click on …

Member Avatar for aj.wh.ca
0
133
Member Avatar for server_crash

I can't seem to remember how you create subitems in the menu's. Does anyone know how? Like this: Format --> Color(then like a drop down) *red *blue *green

Member Avatar for server_crash
0
283
Member Avatar for Greg W

OK, here's the reason I'm ready to shoot myself. I access a .jsp page with no problem on a number of computers. On another computer, I can access the page once, and then get an error message (page not available with IE, timeout with Firefox and Netscape). I have uninstalled …

Member Avatar for Greg W
0
236
Member Avatar for George2

Hello everyone, I want to use indexing technology to speed up searching operation of my application. I have found that Java built-in type Hashtable can only have one key for each object. But my requirement is that an object can have multiple keys for an object. For example, the objects …

Member Avatar for George2
0
111
Member Avatar for thug4life

This popup appears every 5 minutes : _________________________________ Microsoft Windows Security Warning _________________________________ Your Windows is corrupted with spyware virus. You must patch your PC urgently to protect yourself. Private info is accessed by ports : -8080 -3128 You can patch your PC for free only now and delete all …

Member Avatar for caperjack
0
238
Member Avatar for server_crash

I got this method that encrypts and decrypts text. All of it works fine, except when it comes to spaces. It doesn't convert the spaces correct. If you take a look at it, you might understand. [Code] import java.util.*; public class CustomCypher { public String encryptText(String key, String text) { …

Member Avatar for server_crash
0
76
Member Avatar for rational611

I would like to know if Java API has a built in shopping cart class which is readymade and ready to use. Thanks rational611

Member Avatar for server_crash
0
144
Member Avatar for mooling

i have a jsp program which use to download some files from the internet. i try to make it into multi-threading download. but at the end it still run in single thread.Do i need to use java bean? please help me. Thanks. <%@ page import="java.io.*"%> <%@ page import="java.net.URL"%> <%@ page …

0
73
Member Avatar for mackverick

this is my first Java course and i am having troubles doing one of the assignments... well i am suppose to read a file containing grades of students...here is an example 034-23-8901 45 78 85 34 342-67-1231 98 45 67 45 452-57-2351 49 78 61 52 the first 9 digits …

Member Avatar for mackverick
0
252
Member Avatar for server_crash

I'm trying to write this method that takes some parameters from my text editor, and encrypt the text. I got part of it written, but I'm stuck on the next bit. I got the part where you convert the "key", but I just can't figure out what to do next. …

Member Avatar for server_crash
0
318
Member Avatar for Lord Felix

I need some help in trying to find out how to cast a method that is within an object which is inside a LinkedList. Let me try to explain: I already know that I have to use a wrapper to convert an object back into another state. The think I …

Member Avatar for Meldroz
0
569
Member Avatar for Ghost

Hi; Does anyone know how 2 use jni??? I want to figure out the CPU temperature. Can somebody teach me how? Thanx in advanced, C++

Member Avatar for Ghost
0
317
Member Avatar for BMF

Hi, I am beginner in programming with java .. I have a silly question and I hope you help me! how to print an integer array contents without leaving new line after each digit because this happens when I use System.out.println.. I am sorry for disturbing you..

Member Avatar for server_crash
0
111
Member Avatar for michrob15

Alright, so i just restarted my computer yesterday and when it opened to the welcome screen (XP PRO w/ SP2) it was all written in a different font (marlett i later figured out) and so it's all symbols and squares and quite the mess. So, naturally, i logged into my …

Member Avatar for michrob15
0
127
Member Avatar for Ghost

Hi Everybody, I was wondering if anybody could help me. I want to find the most frequent lettter, and replace it with another letter. It hen want to find the second most common letter and replace it with another letter. It's not working. Could anybody please help?? [CODE]import javax.swing.*; import …

Member Avatar for paradox814
0
91
Member Avatar for ultimate_fusion

I have this system which I only want to try and borrow books from a library. I have data already in arrays. I need to check that nobody else has a book then add it to the data. I have commented where i think the problem is. i have tried …

Member Avatar for LunLun
0
2K
Member Avatar for kharri5

If anyone can tell me where I am going wrong with this method, that would be reaallly awesome, because I have no idea how to make hte method work properly. It consists of two methods actually, a driver method for the recursive method, and the recursive method itself: [code] public …

Member Avatar for Narue
0
104
Member Avatar for Darkfoxx

Hi, I'm working on a simulation that uses a fish in a 1x5 "fish tube" matrix. The fish (this symbol: ">=)" ) moves randomly around the tube and the number of "bumps" against the top, bottom, right, and left sides are counted. What I want to do is this: Turn …

Member Avatar for jwenting
0
180
Member Avatar for MrScruff

Yeah for some reason - on my main prog i click a button brings up a little display window to show a few details. But when i move this window. it goes black :S Any ideas?

Member Avatar for server_crash
0
141
Member Avatar for Ghost

Hi everybody, I was wondering if it is possible (and if it is, how to do it) to put a JPasswordField into a JOptionPane. Thanks in advanced, C++

Member Avatar for server_crash
0
183
Member Avatar for AQWst

Can someone help me create a rounding routine? I have some mathematical calculations being done in a program that the final result is a double. The only trouble is, is when I want to display it, there are too many digits appearing. I have searched the Sun web site and …

Member Avatar for paradox814
0
612
Member Avatar for Dahlia

Hi everyone,i really hope you can assist with the following problem that i have been having,how do i add components to JApplets,what are the methods tha i should use for the task?

Member Avatar for paradox814
0
1K
Member Avatar for the b

Hi, I am supposed to write a program for a school assignment that asks the user to enter the amount of coins, and then output the amount in quarters, dimes, nickels, and pennies. That was easy enough, but I found out that I need to use a constuctor to initialize …

Member Avatar for Meldroz
0
327
Member Avatar for server_crash

My applet is not showing up in a web page, and all of the code is correct... I'll post it and the html code: [Code] // import all need packages import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.applet.*; //extend JFrame for the user interface and actionlistener for events public class …

Member Avatar for server_crash
0
106
Member Avatar for Kaone

I am doing a visual traffic simulation project and i have the named problem in my main class.How do you solve it.the problem occurs in the following segment of the program:The roadDesigner,roadNetwork andsimPanel symbols cannot be resolve.(The problem starts at the bolded part of the program) [code] import java.awt.BorderLayout; import …

Member Avatar for Narue
0
303
Member Avatar for freesoft_2000

Hi everyone, I have an easy question but i can't seem to get it right. Bear with me. I have a buffered image where i would like to draw a rectangle around that buffered image. The thing is i need the thickness of the rectangle to be of a certain …

Member Avatar for Narue
0
99
Member Avatar for Juliane123

Hey guys, I need your help. I need to write a Java program for a simulation for a lottery. I got so far as I got numbers and everything. But how can i make sure that there is no number going to be there twice? Thanks for your help Julie

Member Avatar for Narue
0
1K
Member Avatar for Nashii

HI, I have problem cant open some pop up window as in links. Here's my system: AMD XP 2600 1.94GHz 514 Mb ram window XP professional 2002 SP2 IE ver 6 Some website that I've allowed pop up but not getting all pop ups to be opened. I've tried hold …

0
101
Member Avatar for Ghost

Hi: I made a java app. (with 3 windows) and I was wondering if there was a way to close two of the three forms (except one window) without closing the entire application (All 3 windows). Thanx in advanced, C++

Member Avatar for server_crash
0
143

The End.