36,051 Topics

Member Avatar for
Member Avatar for the_preface

I'm writing a program which accepts the price of a tour. A tour is priced between 29.95 and 249.99. It's supposed to repeat until a valid price is entered... However, even when it is, the program continues to repeat. Here's what I have so far. [CODE] import java.util.Scanner; import java.util.InputMismatchException; …

Member Avatar for the_preface
0
126
Member Avatar for lotrsimp12345

Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the …

Member Avatar for moutanna
0
1K
Member Avatar for kiyu2keith

How do you terminate the program?? for example I input exit on the dialog box as it should terminate the program. I really don't have any idea on how to do it.

Member Avatar for kiyu2keith
0
78
Member Avatar for vextorspace

I have a JFrame that I call from another JFrame like so: [CODE] Viewer2D v = new Viewer2D(this); v.setVisible(true); v.DrawAssembly(glNameList.get(hitRecs.get(0).getNames()[0])); [/CODE] I set the exit action to an action listener and call dispose() and both of my JFrames disappear! How do I get only the one I'm working on to …

Member Avatar for BestJewSinceJC
0
88
Member Avatar for bigsurya

I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); …

Member Avatar for bigsurya
0
133
Member Avatar for ubi_ct83

Hello experts, actually i have a situation like this. i have a drop down menu value:{2,3,4,5,6}. there is a common operation need to be done if any number in menu list chosen.each of the number must have different number of layers. if user choose 2 means 2 layers,if 3 means …

Member Avatar for ubi_ct83
0
154
Member Avatar for ragedsparrow

HEy everyone. I've been workign on this for a few days now and it's due tomorrow, so I thought I would ask a developer community for any input. Here is what is supposed to be happening. The Server starts. The Client Starts. The user enters a table name into the …

Member Avatar for ragedsparrow
0
162
Member Avatar for tedsu

I am trying to add Jtext area to a Java application, load text from a Notepad file & allow user to change color of text & make text invisible/visible using Menu bar. I am having trouble with the 1st part--loading the contents of a text file. Any help would be …

Member Avatar for moutanna
0
159
Member Avatar for veroniclake

hi, i have some imports in my class file [CODE]import com.xyz.auto.common.ui.URObject; import com.xyz.auto.common.utils.AutoScript;[/CODE] in the above code, the URObject class is in a jar file called uis.jar the AutoScript class is in a folder structure [com->xyz->auto->common->utils]. during compiling it is showing "com.xyz.auto.common.ui " package is missing. but i have added …

Member Avatar for veroniclake
0
68
Member Avatar for Struggler

Hi I am new to log4j.xml which is used to log the informations. Currently, I am giving the absolute path for each log file in param tag value. eg : appender name="FA" class="org.apache.log4j.DailyRollingFileAppender"> param name="DatePattern" value="'_'yyyyMMdd"/> [COLOR="Red"][B]param name="File" value="D:/logFiles/GPreprocessor.log[/B][/COLOR]"/> layout class="com.dnb.genericpreprocessor.common.log.AppXMLLayout"/> /appender> I do not want to give "GPreprocessor.log" directly.Actually …

0
24
Member Avatar for vallikasturi

Hi.. I had an application where i used an applet for drawing a diagram... n i've to get the database values when i clicked on a line.. It works fine when i'm implementing this in my local system... But when i placed in the server, I'm unable to get the …

0
44
Member Avatar for jj001155

Hi, can any one send me a source code for a stick figure in java, i have found some but i can't get them to work. Please help.

Member Avatar for jwenting
0
55
Member Avatar for sharathk60

hi please reply i have a problem . i want add a new table for a existing database in android. Since i have only option is to create table is i have to upgrade the database .please if any other option is there to create a new table and also …

0
65
Member Avatar for jenitha

hi, i want to insert the values into the postgresql database using jsp code.first i have to retreive the values from one table which will be displaying in combo box.And i have to store it in another table which is having the auto increment data. hope u understand.... can anyone …

0
48
Member Avatar for gymangel812

I'm having a problem figuring out what goes in the SecurityAlarm class. It is an abstract base class with 3 methods: alarmFailure() (cannot be overridden by any subclass), and alarmSensor(), alarm() (both are abstract. EntryAlarm is a class that inherits from SecurityAlarm. If the simulation of an alarm exceeds the …

Member Avatar for JamesCherrill
0
114
Member Avatar for wildplace

i know how to determine if x instanceof aClass. if x is not an instanceof aClass, how can i tell if it it will give me a compiler error or run time error. Consider the following question~ [QUOTE]interface I { ... } class A { ... } class B extends …

Member Avatar for wildplace
0
241
Member Avatar for gaudi_br

Hello, I'm remotely debugging a J2EE application from eclipse. I developed an external tool that will copy the file I modified to the server and then debug the application from the server. It used to work perfectly, but since a few days ago, it doesn't work anymore. This means that …

Member Avatar for gaudi_br
0
102
Member Avatar for gaudi_br

Hello, Because of licensing constraints, we're allowed a single Development server where our application will be installed. Supposing I have the tomcat server running on a remote machine in the company's network, let's say that multiple developers should be able to remotely debug that application. Is it possible?? How could …

Member Avatar for gaudi_br
0
203
Member Avatar for gaudi_br

Hi, I'm a developer with little experience in J2EE. I'm working with an Application called Enovia Matrix, which is an N-Tiers System composed by an oracle database, an RMI server, some "thick-client" applications and a Web-Based interface. I develop using Eclipse, in which I imported the War File generated for …

Member Avatar for gaudi_br
0
367
Member Avatar for gaudi_br

Hi, We've got an application running on Tomcat and we've setup Manage Engine's Applications Manager 9.0 to monitor our environment. I've set an alarm that fires whenever a thread is in the "BLOCKED" state at the moment of the polling and I'd like to get a thread dump of that …

0
99
Member Avatar for PhiberOptik

Hey guys, I want to know how you guys parse html. I'm writing a program to compare products on a website. I already have a system that scrapes the websites. I looked at HTMLParser, I'm a little confused on how to use it, I was thinking about writing my own …

Member Avatar for PhiberOptik
0
93
Member Avatar for KirkPatrick

I have a Tcp Client (in Java) and a Tcp Server (in Groovy) and I am having problems getting the Client to communicate properly. I believe the issues involve my client not being able to send information to the server. (My assumption is the problem is somewhere near [I]line 32[/I] …

0
68
Member Avatar for lola_fcis

i was make aproject with desktop application and make the form but i cant to connect the form with my code thanx

Member Avatar for Stefano Mtangoo
0
77
Member Avatar for ceyesuma

Hello. Is there someone who might be able to show me how to adjust a insert for a prepared statement sent to a derby embedded db? [code] run: driver name from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: createAdminTable created table: createPayeeTable created table: createStudentTable created table: createInstructorTable created table: createBookingTable …

Member Avatar for ceyesuma
0
302
Member Avatar for pankajagar2002

Hello friends. Can anybody tell me how many ways exist to create the instance of class. i know only two ways to create the instance of class. 1. using new operator 2. using Class.forName() can anybody tell me more method. someone told me that there is more than 5 method …

Member Avatar for pankajagar2002
0
142
Member Avatar for Superstar288

Hi every thanks for taking the time to read my thread. anyway i had an idea of doing a car diagnostic program which would then store results and act as a car library for my final year project but im not sure if this is possible and if it is …

Member Avatar for Superstar288
0
315
Member Avatar for kripajayaraj

Hello der... can sumone please help me? i want to upload a file n form field data from a form. but since i am using multipart/form-data i am unable to get data field values.... i got codes using org.apache.commons.fileupload package... even though i downloaded n placed d respective jar in …

0
29
Member Avatar for solomon_13000

This is a generic:- Description<Space> Field Name:Value,....Field Name:Value This is a code:- [CODE] obj.insert("The value you have inserted is" + "name:" + student.getName() ",age:" + student.getAge() ); [/CODE] Based on the generic: 1. "The value you have inserted is" = Description 2. name: = Field Name 3. age: = Field …

0
62
Member Avatar for vobiahu

i am trying to create an interactive program that gives a prompt for the hangman game. there is meant to be a phrase book of about 100 movies. The phrase book is in an attachment. So far what i have done is made a I made a for loop to …

Member Avatar for Nick Evan
0
2K
Member Avatar for ccaatty

Hi, I was making a menu bar for my JFrame, which contains a menu item named "Help". I'm wondering how to make F1 a shortcut to that menu item. I thought of using .setAccelorator()., but that didn't seem to work. So can you show me how? Thanks!

Member Avatar for jwenting
0
80
Member Avatar for bandlife

Hello.. I can't even understand this problem since im a stupid beginner. I feel like I'm gonna die.. Please anybody help me.. Implement a “Cash Register” applet as demonstrated below. It should have the following functionality: 1.A section containing 9 buttons in a 3x3 layout where each button corresponds to …

Member Avatar for jwenting
0
122
Member Avatar for tamem
Member Avatar for jwenting
0
53
Member Avatar for indu_ss4

Hi, i have developed an web application using JSF. In that, if the user remains idle in the application for more than 15min then their session should expire. i have tried it by giving <session-timeout> tag value as 15 min in web.xml. but i don't know how to redirect the …

Member Avatar for indu_ss4
0
3K
Member Avatar for Santho786

In my application i have a view page(html or jsp) with five field (Qualification, Semester, Maximum Mark, Obtained Mark, Percentage). I have one add button, if i click on add button one java-script will be called and it will display a row in the same page with five column (Qualification, …

0
106
Member Avatar for Santho786

In my application i have a view page(html or jsp) with five field (Qualification, Semester, Maximum Mark, Obtained Mark, Percentage). I have one add button, if i click on add button one java-script will be called and it will display a row in the same page with five column (Qualification, …

1
102
Member Avatar for aju982007

i have a ibm java webservice with soap protection username and password needed to give for accesing this webservice .. i need to call this webservice from C# client ... when i call this webservice .its showing this error com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5048E: One of "SOAP Header" elements required. please help me... …

Member Avatar for nrrbalaji
0
422
Member Avatar for student.09

Hi, I need help getting the basic idea of how to begin writing this Strings program: file has last name(1word) & email address objective of prgm is to validate email address [LIST] [*]1 "@" symbol; no space left of it [*]1 "."; no space on both sides of it [/LIST] …

Member Avatar for sawant_nitesh
0
275
Member Avatar for Danny_501

Hi all, Has anyone used PFDBox before? I'm having trouble with makeing a pdf with mulitple lines: [CODE]contentStream.drawString( patient.toString() );[/CODE] patient.toString() has newline characters in it(\n) and drawString dosn't recognize them.

Member Avatar for moutanna
0
192
Member Avatar for pore

Hey everybody, i wanna use the array "intArray" in the class eightPuzzleAStarDemo() as initial state but i get a cannot use it. Does anybody has a hint for me? Is it because it is not in the same package? Thank you [CODE] package aaa.mayerp.projectone; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; …

Member Avatar for quuba
0
147
Member Avatar for Roegadyn

Hello everyone, I have work to do on a basic assignment that requires an ATM type of program working over XMLRPC so there is a server element where the data is held in a Hashtable and retrieved by a client form. I will state I am completely lost in the …

Member Avatar for Roegadyn
0
149
Member Avatar for skyzer

So i've found an example of how to use Semaphore and made my code into there for Readers-Writers problem. What it must do, that it has 1 book, only 1 writer can write a new line there and while he is writing, no1 else can access it. When writing is …

Member Avatar for moutanna
0
2K
Member Avatar for charlieruns

I am trying to read all the files in a folder and for some reason it keeps reading only 1 file over and over again... [CODE]private void openFile() throws IOException { status.setText("Adding Photos"); File file; JFileChooser fileChoose = new JFileChooser(new File("charlie/photo/")); int success = fileChoose.showOpenDialog(this); if (success == JFileChooser.APPROVE_OPTION) { …

Member Avatar for charlieruns
0
99
Member Avatar for charlieruns

How can you get a JList to simple display a one word string. I know the method of JList.setListData(Object[]); I have an object[], but it is multiple lines of information and it looks weird in the list display. How can I get an Object[] to simply display the first line …

Member Avatar for charlieruns
0
85
Member Avatar for AcidG3rm5

Hi need some help to separate my string. I'm reading my text from file. The format is "name,1,2,3" What i need to do is to seperate out the entire string to: String name = "name"; String one = "1"; String two = "2"; String three = "3"; The commas are …

Member Avatar for AcidG3rm5
0
110
Member Avatar for rahulmaurya

i wan to create the setup file of our java project, if it possible plz help me

0
40
Member Avatar for hajjo

paths = [ "nodeA1", "nodeA1/nodeB1/nodeC1", "nodeA1/nodeB1/nodeC1/nodeD1/nodeE1", "nodeA1/nodeB1/nodeC2", "nodeA1/nodeB2/nodeC2", "nodeA3/nodeB2/nodeC3" ] you have list of strings there. how can i create a tree by system.out.println from all those paths. nodea1 ----nodeb1 -----------nodec1 -------------------noded1 ------------------------------nodee1 -----------nodec2 -----nodeb2 -----------nodec2 nodea3 -------nodeb2 ------------nodec3

Member Avatar for moutanna
0
147
Member Avatar for sarath.koiloth

Friends, I am stuck here , I am downloading some files from a url uing GZIPInputStream.I need to store this files.So i declared a bytearray with specified length.As i am downloading files with different size, i think i need to declare a dynamic byte array. Please help me to solve …

Member Avatar for javagrendel
0
143
Member Avatar for Stefano Mtangoo

Hi, How do these relate and differ? I see them Used with queries but cannot understand. I'm just starting JDBC. Sorry if it is noobish ;)

Member Avatar for masijade
0
327
Member Avatar for AcidG3rm5

Hi all, am writing a programming for my assignment. Got stuck in my codes for a small portion. Currently i have trying to extract all the alphabets within a string and cover them to an ascII. For example: I have a string "1a2b3c" What i need to do is to …

Member Avatar for AcidG3rm5
0
106
Member Avatar for redleafrose

hi I m working on this assignment...base class employee sub class staff .now i have to Create a StaffDriver Java program that: a. creates two staff objects b. prompts the user to enter name, id, hours and rate for each object c. compute the pay for each object d. displays …

Member Avatar for wildplace
0
95

The End.