36,051 Topics

Member Avatar for
Member Avatar for Whilliam

Hello. Im new to Java. I don't know much about Java's codes but I have a good background in C. Im using NetBeans 6.7. I have this code: [code=java] package javaapplication1; public class Main { public int x = 3; public int test(){ x += 4; return x; } public …

Member Avatar for kvprajapati
0
130
Member Avatar for keziaebitner

i need a code for this java program...urgent please... using dialog boxes : input month in "99" form date in "99" form year = 2009 then display the date in 'MMM 99, 2009' form otherwise, display 'invalid date' Valid date 01-12 = Values for month 01-28 = for month - …

Member Avatar for masijade
0
82
Member Avatar for Adrian_0211

im working on my thesis right now... i need to create a map locator.. just like this one [url]http://www.map.wisc.edu/[/url] any idea how to do this? thanks for the help..

Member Avatar for narkarvinayak
0
92
Member Avatar for rockbluster

Form wouldn't submit and keep popping out. "Not all fields are valid". [CODE]<script type="text/javascript"> dojo.require("dojo.parser"); dojo.require("dijit.form.ValidationTextBox"); dojo.require ("dijit.form.Form"); dojo.require("dijit.form.CheckBox"); dojo.require ("dijit.form.FilteringSelect"); dojo.require ("dijit.form.TextBox"); var valid = true; function checkPw(formFields) { //alert (formFields.uPass); //alert (formFields.uPass2); if (formFields.uPass !== formFields.uPass2) { alert("Confirmation password is different."); valid = false; } return valid; } …

Member Avatar for rockbluster
0
77
Member Avatar for cool_yu2k

Hello! We have an assignment regarding binary tree and I am having a hard time debugging it. The countNode and countLeaves method do not work. It does not display output and instead remain blank. Please help me and check if what is really wrong. Thanks in advance. It will be …

Member Avatar for kvprajapati
0
313
Member Avatar for Lensva

its supposed to zip folder content recursively, which it does until it encounters a folder with both an empty folder and a non-empty. or so i think. i used the following structure to zip: [URL="http://img291.imageshack.us/img291/6120/84976017.jpg"]http://img291.imageshack.us/img291/6120/84976017.jpg[/URL] if untitled folder is removed it works. any tips would be much appreciated. [code=java] import …

Member Avatar for kvprajapati
0
110
Member Avatar for mzprog

Hi all, I has to develop a utility GUI using java, as it is very tedious doing programmitically. Anyone knows of a good free tool or plug-in for eclips for building java-based GUI, which can be editable programmatically. i know of Netbeans Desktop application but it generates horrible code. plz …

Member Avatar for StuartMillner
0
187
Member Avatar for mzprog

Hi all, I has to develop a utility GUI using java. as it is very tedious to do it programatically. can some one help me by telling the some GUI tool for java, where source code can be edited easily. thank u in advance.

Member Avatar for mzprog
0
57
Member Avatar for mimsc

I have a jsp...I need to read in the generated html fron the jsp to a string buffer I can use in a mail method how do u do that? test.jsp

Member Avatar for ~s.o.s~
0
127
Member Avatar for ndoe

hallo all! how to make a multiple choice quiz with radio button for swing application!my problem in radio button! i have 5 question in my quiz and for each question have 4 answer!how to make user just can choice 1 in each question!i have to try but i just can …

Member Avatar for peter_budo
0
85
Member Avatar for get2tk

please how do i create a login page using gui in java?And also how do i make the login page move to the next java page when the password is correct?

Member Avatar for peter_budo
0
94
Member Avatar for Thirusha

Hi I have set up an example web app which was already written by a third party company. My problem comes in when i enter the app name like [B][url]http://localhost:8080/app1/[/url] [/B] it redirects to the correct page that was used in the <welcome-file> tag in the web.xml but the js …

Member Avatar for Banderson
0
105
Member Avatar for loozax

how to get the correct difference and product of dis?! [code] import java.io.*; public class exer05{ public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = 0; int number = 0; int diff = 0,pro = 0,sum=0; System.out.print("Enter number of times:"); number = Integer.parseInt(br.readLine()); for(int …

Member Avatar for tux4life
0
96
Member Avatar for shankmuchlove

I m trying to integrate java in php. I use xampp 1.6.8, with php version 5.2.6. I m trying to call java classes and methods from php. I had set php.ini as extension=php_java.dll [java] java.class.path="\xampp\php\extensions\php_java.jar" java.library="\xampp\jdk1.5.0_10\jre\bin\jvm.dll" java.library.path="\xampp\php\extensions\php_java.dll" java.home="\xampp\jdk1.5.0_10" I get the error as Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to …

0
64
Member Avatar for saivemuri

This is about jsp, beans with struts. The problem is, I am using one jsp which is containing some select boxes. I ll be populating the select boxes from DB thru beans and action class. It’s working properly. The problem is with the data insertion from JSP to DB. The …

Member Avatar for peter_budo
0
319
Member Avatar for CoSIS1

Hi everyone; I’ve written the following for some purpose : [CODE] <% Vector v1,v2; String sql; String sqlvsp; sqlvsp= "select distinct(question_text) from question where type = 'UStudent' "; Vector vc=database.jdbcOneRowQuery(sqlvsp); for(int n=0;n<vc.size();n++){ %> <table border="0" width="100%"> <tr> <td colspan="6"><font size="2"><b><% out.print(n+1); %>)<% out.print(vc.get(n)); %></b></font> </td> </tr> <tr> <td></td> <td align="center" …

Member Avatar for peter_budo
0
124
Member Avatar for Dragonfyre

Hey everybody. I have a question on how to break out of a java loop. Here is a break down of what I am doing. I have 3 arrays "chrs" and "value" and "NumTimes"; "chrs" is an array of characters that has been read in from an input file. Value …

Member Avatar for Dragonfyre
0
128
Member Avatar for Clawsy

Hello, I'm a little bit new to Java and I use NetBeans 6.5.1. I just try to make a window 'by code, manual' (not drag and drop, not visually). This is my code (first I only want and empty window): [code] package javaapplication5; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Cursor; import …

Member Avatar for axeeffect2002
0
147
Member Avatar for smoore

Okay so I am in a Data Structures class and am working on Binary Trees now so I figured I do a little project on the side to experiment. So I have a frame pop up when the program starts and it has a bunch of information to enter in. …

Member Avatar for JamesCherrill
0
124
Member Avatar for haf

can anybody please tell me any site which has open source code for jsp projects, please help i need source code for online examination application in jsp. Below are the criteria in the application that I’m looking at. 1) Web based 2) Able to randomize question and answer order 3) …

Member Avatar for peter_budo
0
382
Member Avatar for CodeBoy101

Hello to all. I'm using the following jsp to display an image from a mysql database. [code] <%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% Connection connection = null; String connectionURL = "jdbc:mysql://localhost:3306/people"; ResultSet rs = null; PreparedStatement psmnt = null; InputStream sImage; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, …

Member Avatar for kvprajapati
0
149
Member Avatar for Ruw

can you please draw me a use case diagram for construction. it includes: Employee Department Project Works_on

Member Avatar for masijade
0
92
Member Avatar for rajshree13

Hi All, I want to compare current date with date which is entered by the user. In my form i am having fields as Name: TicketNO: ContactNo: Issue Dt: 13/7/2009 Return Date:17/7/2009 the above data is collected from user and entered into database and i want to compare issue date …

Member Avatar for CoSIS1
0
89
Member Avatar for gitech

Hai Friends I want to invoke .net ?(.asmx) webservice in J2ME Application, iam using following code , but its giving Runtime Exception [B]"SoapFault - faultcode: 'soap:Client' faultstring: 'Server did not recognize the value of HTTP Header SOAPAction: urn:Welcome#GetdrawTimes.' faultactor: 'null' detail: [EndTag </detail>] "[/B] [CODE] import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import …

Member Avatar for peter_budo
0
265
Member Avatar for harshit99

hii.. i have a table<"form"> in ms access which have following fields.. formno, location , status. i want to create a report which calculate 1. the total no of forms(columns) at each location 2. the total no of forms(columns) with status= "pending" at each location. i tried to do it …

Member Avatar for Alex_
0
87
Member Avatar for Dragonfyre

I think that I understand the concept fairly well, but I appear to be having some issues with syntax perhaps. I have 2 classes. My main class and BubbleSort.java. In my main class I receive values from the user and store them in "int array[]". The values appear to have …

Member Avatar for Dragonfyre
0
119
Member Avatar for Stefano Mtangoo

Is it good Idea for Newbie in Java like me(Python guy) to begine with 3rd Edition of thinking in Java by Bruce Eckel? The reason is, it is free downloadable. If no any suggestion?

Member Avatar for Stefano Mtangoo
0
106
Member Avatar for kinger29

How do you print a SOAP response? I have been trying to do the following but its not printing the actual soap message. Its just giving me some sort of description. [ICODE] SOAPMessage reply = connection.call(message, destination); String myreply = reply.getSOAPPart().getContent().toString(); [/ICODE]

Member Avatar for ~s.o.s~
0
347
Member Avatar for karamjeet2004

Hi I am making some kind of search engine in java.In which i want to search initials from database(ms access) suppose to search united states of america we type usoa so how can i do that from where to i start can anybody plz.........

Member Avatar for tux4life
0
179
Member Avatar for smoore

Okay so I have a screen with a toolbar on the top (BorderLayout.NORTH) with about 5 buttons. What I want to do is be able to switch back and forth between JPanels with each button click. so each time I click one of the buttons a new JPanel appears in …

Member Avatar for masijade
0
146
Member Avatar for smoore

Okay so i am having a little trouble with my JFormattedTextField. I figured out how to work the MaskFormatter somewhat but not great. the formatting is fine, like when I want to restrict a field to only 15 characters that works but when I move the cursor to another field …

Member Avatar for smoore
0
111
Member Avatar for rizillion

I have created a database using MS SQL named "Company" and there is a table named "Employee". I need to print the records from the "Employee" table to a JTextArea keeping tabs for each columns in the JTextArea. How can i do it? Please help.

Member Avatar for peter_budo
0
174
Member Avatar for anusha88

hi,I don't know anything about JSP.I have actually developed my program in java which takes input from file and plots those values graphically.One part of the program contains moving text in a text box and the other part is a kind of a moving graph through a slider.Now the people …

Member Avatar for kvprajapati
0
125
Member Avatar for anindo87

hello evryone. please someone help me. I want to load the data frm sql server database at the button click...how to load the data using resultset rs.getString("column name") in the <option></option> tag using JSP codes??

Member Avatar for anindo87
0
461
Member Avatar for karamjeet2004

INFO: validateJarFile(C:\fetching\build\web\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class [B]i have got this error while running the servlet jsp code[/B] sometime show [B]servlet jsp is unavailable[/B]

Member Avatar for kvprajapati
0
85
Member Avatar for biofly

Hi Friends I am new to Java Swings. I am trying to add JTable. But the table is not displaying. I have the following java code (2 files) **************************************************************************************** package edu.ucsc.genome.qa.sigGateWay; import java.io.*; import java.util.*; import java.awt.Color; import java.awt.Container; import java.awt.BorderLayout; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.BorderFactory; import javax.swing.JButton; import …

Member Avatar for kvprajapati
0
167
Member Avatar for laghaterohan

Hello, I have written a javascript function for email validation . On the click event of the validate button am calling the function however, the function is not called and returns nothing....so please help me out....plz help me out and do let me know where am going wrong...! here is …

Member Avatar for kvprajapati
0
107
Member Avatar for mustafaneguib

hi all, this is my first time using JAVA. i know other programming languages, such as, c++, PHP, Assembly. this is a basic personal schedular. for saving the data i am using a custom designed linked list, and for the gui i am using custom gui. the program runs fine …

Member Avatar for mustafaneguib
0
167
Member Avatar for aveek

i am trying to draw an arrowhead at the mid point of a line. say the point is (x,y). can anyone tell me how to do this. the line could be curved. it should also point toward either of the end points

Member Avatar for VernonDozier
0
73
Member Avatar for loozax

can some1 help me wid diz?! [code]import java.io.*; public class looping1{ public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader (System.in)); int value = 1; for (int i = 1; i<=11;i++ ){ System.out.println(value); value = i + value;} }} [/code] the output should be: 1 2 4 …

Member Avatar for JamesCherrill
0
113
Member Avatar for jvd401

1)Design a class named BankAccount to hold the following data for a bank account: - Balance - Number of deposits this month - Number of withdrawals - Annual Interest rate - Monthly service charges The class should have the following methods: Constructor : The constructor should accept aruguments for the …

Member Avatar for jvd401
0
10K
Member Avatar for baftjar

Hi Guys, I have hit a wall with a problem that does not allow me to go any further. Here is what I am developing. =========Story=============== Firstly, I am using Spring MVC and Java to develop this small application. I have a form input screen which populates records to DB. …

Member Avatar for ~s.o.s~
0
97
Member Avatar for shahbaz5144842

hi all there ! I have problem with java file object that when ever i want to delete a file from the server i have check whether its exist or not for this i get fileObject.getAbsolute path but it return me wrong path but i get path from db a …

Member Avatar for ~s.o.s~
0
181
Member Avatar for Questions???

Hello, I am a student attempting to complete an assignment for school. The assignment is: Write an application called Palindrome.java that reads in a five-digit integer and determines whether it is a palindrome. If the number is not five digits long, display an error message dialog indicating the problem to …

Member Avatar for Questions???
0
936
Member Avatar for chiotti

I need to read in a list of adjacency matrices from a text file. I can get it to read in and write out when there is only one matrix in the file, but can't seem to get it to read through more than one. Once I tack another file …

Member Avatar for masijade
0
2K
Member Avatar for yas218

Hi all, I would ask please about, how can I create a simulator using java, is there any tools can help in this area because usually simulators need more works with GUI. Therefore, anyone knows any library or tools can help. Thx

Member Avatar for JamesCherrill
0
68
Member Avatar for BestJewSinceJC

[CODE=Java]URL myurl = this.getClass().getResource("/SummaryReport.rptdesign"); File file = new File(myurl.getFile()); System.out.println("Name=" + file.getAbsolutePath()); [/CODE] The above code seems to get the resource. But I guess I am going about creating a file connected to that resource wrong? Because I cannot subsequently open a FileReader connected to that file. . I am …

Member Avatar for ~s.o.s~
0
134
Member Avatar for buchanan23

I am trying to set up 4 buttons that will move through my array in the GUI. I am entering 2 items and telling the GUI to spit out the 2nd record. If I can just figure out how to get the "First" button to work, I think I can …

Member Avatar for buchanan23
0
2K
Member Avatar for tactfulsaint

hi guys i just started using mac most of the features windows have is not in mac like environment path, dont even know how to javac with mac. How can i upgrade my Mac Version 10.4.11 to 10.5 with my (CD ROM) CD ROM is bad and i cant get …

0
67
Member Avatar for get2tk

i am writing a code for a temperature class.Please what and how can i use to design the graphical user interface in java inorder for the user to be able to check temperature status and control the temperature? [code] public class LivingRoom { double LRTemperature; public LivingRoom() { } public …

Member Avatar for masijade
0
119

The End.