32,199 Topics

Member Avatar for
Member Avatar for jonboy_us

I just got out of class where I had my final for Java2. I wasn't able to complete the assignment and it's bugging the heck out of me. Could you all help me figure out what I was doing wrong? The final product should have printed out all the "Students" …

0
74
Member Avatar for matt_5104

How do I code an IF loop to perform the following?: if a > X b = //a value// else b = //another value// Thanks!!

Member Avatar for pajac
0
157
Member Avatar for AQWst

I created a program, which I will include the source below with a problem. It appears to compile fine, but I get an error when I try to run it. The error is: "Exception in thread "main" java.lang.NoSuchMethodError: main." What does this error mean? [CODE]/* This program will allow the …

Member Avatar for AQWst
0
225
Member Avatar for nanosani

I am doing my final year project in j2ee. I am making an online health management system ... it'll be like [URL=http://www.curemd.com]this[/URL] Nowadays I am documenting the project .... The question is that are there some useful documentations over the net or you people have ? I want some professional …

Member Avatar for nanosani
0
153
Member Avatar for bh99mh

:sad: Hello there, Can anyone help? I have not been able to get my radio programme and when checking other things I find that it is anything that is opened with JavaScript. I can only assume that my grandson has done something when he was up last week. How do …

Member Avatar for caperjack
0
92
Member Avatar for server_crash

Is it possible to update your programs information from other websites? I mean if you have like a stock program or currency program, the data changes everyday. So can you recieve updates from websites, and change this info? If so could you point me to a site that explains how, …

Member Avatar for server_crash
0
73
Member Avatar for grifflyn

Hi i Have written some code at Uni for two programs this is my first one // filename: ArrayClient.java // Author: // Last Updated :Jan 2005 // // Program to demonstrate how to provide a class // of array utilities // public class ArrayClient [code] { public static void main …

Member Avatar for grifflyn
0
197
Member Avatar for jollygreen

How do i print int num1; a 5 digit number like `1 2 3 4 5` ive been working this daxm problem for like 1-2 hours and cant get it to print i dont want an answer i want a hint on what to do i want to work it …

Member Avatar for jwenting
0
891
Member Avatar for koa1aboi

can somebody help me with this... i need a javacript code to print multiple documents when a print button is pressed. I posted 20 documents on my site and i just wanted to have a print button underneath the links of all the documents so the viewers can just print …

Member Avatar for koa1aboi
0
124
Member Avatar for tigerxx

HI, How can we print an MS Word document from Java ??? We can print .txt files, but while printing .doc, it gives junk chars in print out when we set DocFlavor docFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE; I tried, 1.DocFlavor docFlavor = new DocFlavor("application/msword", "java.io.InputStream"); 2. DocFlavor docFlavor = new DocFlavor("application/vnd.ms-word", "java.io.InputStream"); …

Member Avatar for jwenting
0
236
Member Avatar for ikanku15

i need to develop a snake game. the simple one. can anybody come out with the skane game source code using java or c++ language, or any recommendation. please!!!!!!!!!!!! i dont want to fail this subject! :sad: :sad: :sad:

Member Avatar for 1o0oBhP
1
117
Member Avatar for server_crash

Does anyone know how you could process an equation, or even get an equation with more than two operands? Right now, in my calculator, I can only have two operands, and I want to have more. Right here is what I have: [Code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public …

Member Avatar for server_crash
0
826
Member Avatar for themetalmozart

As a part of our project i need to learn 'JAVA swing'. can i get a free tutorial on it anywhere ,or any site ,u could suggest.i got a couple of books on java but none has more on swing. Please help me.

Member Avatar for Phaelax
0
143
Member Avatar for AQWst

Is there a way within Java to adjust the screen size? When I wrote a program in C++, I used the following code to do it, but I can't find anywhere (either Sun's API's, or on this site) how to do it. system("mode con:lines=50"); system("mode con:cols=100");

Member Avatar for AQWst
0
185
Member Avatar for kharri5

I am trying to write a program in Java that takes in someons hexidecimal input. To make it eaiser I just want to do two digit hex. So they put in A2, and then I want the binary output for that. What I do know how to do is put …

Member Avatar for kharri5
0
185
Member Avatar for AQWst

I am new to Java programming and am converting a program I wrote in C++ to Java. It is a currency conversion program that uses a number of functions to display different menus. It also allows for user input of the menu options to either do a currency conversion or …

Member Avatar for server_crash
0
490
Member Avatar for usha

I would like for someone to help me with writing the codes for Round Robin Scheduling in Java please.

Member Avatar for alc6379
-1
313
Member Avatar for patzy

hi...i need to pass my operating system project on the [B]december 10th[/B]. Can anyone help me with my project? the question is: i have to make a java multithreading program that use round robin scheduler, there is no special requirement for this program. i really don't get used to java …

Member Avatar for alc6379
0
211
Member Avatar for George2

Hello everyone, I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to …

Member Avatar for George2
0
225
Member Avatar for server_crash

I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the …

Member Avatar for server_crash
0
150
Member Avatar for freesoft_2000

Hi everyone, I have a bit of a problem converting a JTextPane to an image. I am able to convert the JTextPane to a PNG image but its quality is really bad. Is there a way that i can convert my JTextPane to a high quality image. The type of …

0
48
Member Avatar for pursottam tiwar

dear all the programmer i m facing a difficulty in creating the concept of data access layer (DAL)concept in java ...as it is implemented in .net...if any one can help abt this plz send mail at [i][email]email removed by moderator[/email][/i]

Member Avatar for jwenting
0
112
Member Avatar for server_crash

I've been trying to do this for weeks now, and can't seem to get it to work. I have a JTextPane called textArea2, and I have a variable called doc that gets the document from the textpane. I want to get the selected text but I can't get no code …

Member Avatar for server_crash
0
281
Member Avatar for Tekmaven

1. How do you clear the screen in a console java app? 2. How do you input text in the console area? Is it something with System.in? ...There may be more later :-P

Member Avatar for freesoft_2000
0
855
Member Avatar for George2

Hello all, I am looking for an audio or video Java player which can be used on Foundation of J2ME platform. It is better an open source Java player (but not a must requirement). I am wondering where can I find related sources? regards, George

Member Avatar for George2
0
256
Member Avatar for George2

Hello everyone, I have written the following simple program to play a local .wav file. [Code] URL url = null; try { url = new URL("file:/c:/temp/sample.wav"); AudioClip clip = Applet.newAudioClip (url); clip.play(); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } [/Code] But when running the program, …

Member Avatar for George2
0
133
Member Avatar for Lonefirewolf

I need to know if there is any way that I could create an entrance box, for a link, that would change on part of the link.. What I'm trying to do is change the "User" part of that link, but leave the rest alone. [url]http://chat.teenchat.com/optichat.html?oc_acc=teenchat&oc_stage=2&oc_room=Test+[/url] Room&oc_dyn=&oc_user=Blah+Blah&oc_syspass=0 I'm not sure …

Member Avatar for Lonefirewolf
0
90
Member Avatar for freesoft_2000

Hi everyone, I have two weird questions but bear with me for a while. The first question is about the printing of a styled document using the printable interface. i am using windows 98 and using the windows page format and print dialog. I have managed to print all the …

Member Avatar for server_crash
0
154
Member Avatar for beerworld

I am having a problem opening java applets...like in yahoo games or im windows.. on the bottom it says applet notinitited I'm a newbie not too technical an answer please

Member Avatar for server_crash
0
96
Member Avatar for smartdetect

hi my project involves ping multiple comps simultaneously to do that i am storing results of each comp in its designated text file for that at startup i have to clear its contents i want to know how to do that in java???????

Member Avatar for freesoft_2000
0
146

The End.