32,204 Topics

Member Avatar for
Member Avatar for chinee

this project is an order processing prograam for a flower shop Orders are checked to see how the payment is to be made. Orders may be prepaid or, if the customer has a good credit line, they must be invoiced. Credit must be refused if the customer has paid late …

Member Avatar for NormR1
0
338
Member Avatar for riahc3

Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? …

Member Avatar for riahc3
0
933
Member Avatar for rotten69

Hi everyone, I'm doing a little experiment on Java loops.. I came across these infinite loops and they never wanted to stop .... Could anyone explain these loops to me, please. Thanks in advance. [CODE] for (int a=0;a <= 5; a++){ int c; int b= 6; for( c=0; c <= …

Member Avatar for rotten69
0
182
Member Avatar for vaironl

Hello forum, Vaironl here. I'm making a fairly big application for my IB- Computer Science class, and I'm having allot of trouble with the screen. I decided to use null layout to draw textfields, labels optionpanes, Jcomboboxes etc... a couple of things. In my computer it looks like this [URL=http://imageshack.us/photo/my-images/406/recipepicture.jpg/][IMG]http://img406.imageshack.us/img406/1593/recipepicture.jpg[/IMG][/URL] …

Member Avatar for vaironl
0
143
Member Avatar for Kmutax

Am using neatbeans 6.8 to develop java application,am able to package and deploy java programs and run them on my computer but when i package and deploy a java program with database it fail to connect with the 'com.mysql.jdbc.driver'.i know someone out there can just post on how to do …

Member Avatar for StephNicolaou
0
240
Member Avatar for eranga262154

Hi all. I want to read and update a ini file to do some processing. Here is what I have try. [CODE] public static void main(String[] args) { // TODO code application logic here new ReadINIFile().readIt(); //new ReadINIFile().writeIt(); } private void readIt() { try { Properties pro = new Properties(); …

Member Avatar for riahc3
-1
2K
Member Avatar for bulletson

I'm testing lucene to write an application. In this testing, I use Tika to extract documents. When I use Tika, I meet this errors. Please explain me. Errors are as follow. [CODE]Exception in thread "main" org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.microsoft.ooxml.OOXMLParser@7541f8 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:122) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:101) at touchLucene.SuckClass.getDocument(SuckClass.java:79) at touchLucene.SuckClass.indexFile(SuckClass.java:117) at touchLucene.SuckClass.index(SuckClass.java:62) …

Member Avatar for bulletson
0
664
Member Avatar for Rajnesh

Dear all, Could you tell me how to go about executing MSDOS commands thru Java. I tried with the Process class but it gives an error:2. Could anyone please advise.

Member Avatar for stultuske
1
2K
Member Avatar for F1r3st0rm

Hello I am working with sockets in Java and I have run into a problem. I have created a DataInputStream and PrintStream in my client side and I'm attempting to create and ObjectOutputStream and ObjectInputStream for the same socket (the PrintStream is for text the ObjectOutputStream and ObjectInputStream are for …

Member Avatar for F1r3st0rm
0
1K
Member Avatar for JerryRong

hello! I'm supposed to write a wordguess program that basically runs like the hangman game on iphone, here is my code: [CODE]import java.util.Random; import java.util.Scanner; public class Wordguess123 { public static String replaceCharAt(String s, int pos, char c) { return s.substring(0,pos) + c + s.substring(pos+1); } public static void main(String[] …

Member Avatar for stultuske
0
309
Member Avatar for pankajagar2002

Hi, I want to customize the add unimplemented method in eclipse based on some condition. I wants to put some programming logic in eclipse based on that condition i want that it will generate the code for unimplemented method. Any help will be appreciated. Thanks in advance

Member Avatar for pankajagar2002
0
1K
Member Avatar for dsoto

Hi, I have a question regarding Eclipse. Usually when I run eclipse on the left hand side are all my java projects I have ever created. I accidentally exited out of the thing that shows me all my projects. How do I get it back?

Member Avatar for stultuske
0
154
Member Avatar for jaxi

Hi! Two errors pop up when I try to compile this code (to organize classes and fit as many as possible in a schedule), in the lines "Course newCourse = new Course(cName, cStart, cEnd);" and "lastEnd = course.getETime;" I'm not sure why the code is having trouble accessing the course …

Member Avatar for stultuske
0
175
Member Avatar for lcweltman

I am writing a generic JFormattedTextfield InputVerifier to check range for various types, e.g. Integer and Float. The only way that I have been successful so far is to assign an enum based on getClassName and then use switch statements to do parsing, comparisons, etc. Can anyone recommend something simpler/better? …

Member Avatar for lcweltman
0
171
Member Avatar for angeriel1

I have this progrom which is compiling and running.Only Iam tryin to understand how to change the action listener Next en previous such that,If i have 5 employees in record it when you reach the last employee in record the Next and previous buttons should be disabled.please advise here is …

Member Avatar for hfx642
0
729
Member Avatar for ret801

This is could some help me out and tell me why my code isnt running , thanks! [CODE] import java.util.*; // import utilities for scanner public class month { //declaring our class public static int monthNumber; //inital month number public static int current_month; //current month variable private static month monthnew;//declaring …

Member Avatar for berniefitz
0
334
Member Avatar for enzo80

our teacher doesnt teach us or bother to explain to us he just reads from the notes which are given by the university any help would be appreciated stuck on 2 questions note: they are making us use bluej with 1.5 JDK [IMG]http://i44.tinypic.com/2zjmiv6.jpg[/IMG] [IMG]http://i42.tinypic.com/16iiio5.jpg[/IMG] [IMG]http://i39.tinypic.com/o6lm6b.jpg[/IMG] [IMG]http://i41.tinypic.com/vdg1mh.jpg[/IMG] anyone recommend good book …

Member Avatar for Ezzaral
0
223
Member Avatar for dsoto

Write a temperature class.In addition to converting between Celsius and Fahrenheit also include Kelvin. The class has read(), add(Temperature), subtract(Temperature), Multiply(Temperature), divide(double), equals(Temperature), toKelvin(), toFarhrenheit(), toCelsius(), and toString() methods. Methods add , subtract, multiply and divide all return a Temperature. [CODE] public class Temperature { public double temperature; public char …

Member Avatar for NormR1
0
1K
Member Avatar for vampke

Hi guys, I was wondering if anyone here has any experience with interfacing with a poct-1a device (specs on iso90.ir/phocadownload/csli/POCT1-A.pdf). I am a bit confused by this protocol: it specifies communication with POCT-1a compatible devices, but I don't see any communication protocols in this elaborate document, just descriptions of how …

0
60
Member Avatar for n3red

I have been testing out the component JProgressBar, now from what i learned so far it's easy to handle but any way i try it i cannot get it to work. To explain: I want to have a JProgressBar component that will show the total and consumed amount of oil. …

Member Avatar for JamesCherrill
0
99
Member Avatar for J.S.AlKatheeeri

Hi! I'n new here, I hope I benefit a lot during my stay. So basically, after a few months I'll be starting my dissertation for my Masters degree in Computing. I want to know what exactly do I have to do? Like do I have to make a significant contribution …

Member Avatar for jwenting
0
139
Member Avatar for twinkle2011

Guys I have an homework activity creating a simple calculator and I encountered some errors in my code can someone help me out of this activity or revised my code. My code have not finish yet and still thinking how my calculator works or what code to be in functionality. …

Member Avatar for JamesCherrill
0
380
Member Avatar for rahulindia17

I am writing a selenium test, where I am suppose to verify if the injectedheader parameter is appearing in the post or http request. Can someone please help me to achieve this.

Member Avatar for StephNicolaou
0
34
Member Avatar for udayashan

Hi all, Problem in retrieving the value of the form variable. Followed these steps: Created .jar file out of the .class file generated. jnlp file is working fine and the dialog box for open / save file is opening. but not able to get to file path. Can you please …

Member Avatar for NormR1
0
208
Member Avatar for lgbagabuyo

public class Library { public Library(String Libraries) { } private String Library; public static void main(String[] args) { Library firstLibrary = new Library("10 Main St."); Library secondLibrary = new Library("228 Liberty St."); //errors in this part, cannot find symbol //Symbol: class book //location: class library.library [COLOR="Red"]firstLibrary.addBook(new Book("The Da Vinci Code")); …

Member Avatar for zeroliken
0
266
Member Avatar for sandman64

I'm trying to change the user inputted date into a date object so that i can format it into a date format then display it in the selected format in the textarea [CODE] import java.awt.*; import java.awt.event.*; import java.awt.CheckboxGroup; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class radiobutton …

Member Avatar for sandman64
0
190
Member Avatar for SketchGamer

Hey guys, this is my first post here and I need a lot of help. I'd like to start off by saying that I'm VERY new to this so I might have some really obvious errors in here/my code might not make sense(i hope this is not the case) and …

Member Avatar for zeroliken
0
1K
Member Avatar for udayashan

I have to open a dialog box to browse file and to get the file path..Similarly a location to save a file. both these tasks need to done in the CLient machine ,because its a web application hosted in the server. I tried using JNLP.Its opening in the server itself …

Member Avatar for udayashan
0
102
Member Avatar for skylinepkr

I have made a tetris game on my own and am trying to have options in the menu where when clicked, will change the frame to that size such as small, medium, large. I am trying to do this on a frame and at first I tried setting the preferred …

Member Avatar for skylinepkr
0
121
Member Avatar for aldeene

can I use the try...catch statement on java to stop the execution of codes on error? just like the exit sub on vb

Member Avatar for stultuske
0
153

The End.