35,620 Topics

Member Avatar for
Member Avatar for ISAEmjr

branch between three sets of statements: One to display the numbers in descending order from the upper bound down to the lower bound (executed on character input 'd' or 'D'), one to display the numbers in ascending order from the lower bound up to the upper bound (executed on character …

0
48
Member Avatar for jrosh

I have 2 frames (classes exactly) customer & items... when a button clicked (button 'BUY') on customer frame it navigates to items frame. mean time i made customer frame [B]customer.setEnabled(false) [/B]. i called to item frame by simply creating an object of item class. then , when i coming back …

Member Avatar for saw.pawan
0
613
Member Avatar for chixm8_49

Hello again. :) I am comparing two nodes (some of my other methods need this method). I am having a problem with this method because it returns false even though both nodes have the same content. What are the problems of this code? Any suggestions? This is the critical part …

Member Avatar for chixm8_49
0
2K
Member Avatar for Behi Jon

Hi, When I want to run a simple project in NetBeans, I receive an error : [quote] ! was unexpected at this time. c:\MinGW\bin\make.exe: *** [.validate-impl] Error 255 BUILD FAILED (exit value 2, total time: 219ms) [/quote] My eclipse is working properly with this MinGW installed on my computer . …

Member Avatar for Behi Jon
0
361
Member Avatar for sachinkore

k..but how to write a insert query.. In my project...see below [code] <% try { ResultSet rs=null; Connection con=null; PreparedStatement st=null; Class.forName("org.gjt.mm.mysql.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost/enrollment","root","root1"); st=con.prepareStatement("select f.tot,f.fcid from formcollection f where f.employername='"+empID+"'and f.flag=0"); rs=st.executeQuery(); %> <table width="713" border="1"> <tr> <th width="93" scope="row">Total Form Collected </th> <td width="70"><strong>DE Done </strong></td> <td …

0
56
Member Avatar for GradStudent

Hi all, I am working on a very simple EJB application in Netbeans 6.8 and EJB 3.0. Somethng wierd with the deployment.. I created a new Enterprise Application. But apparantly Build works fine but when i deploy it i get MODULE HAS NOT BEEN DEPLOYED MESSAGE and It Fails.. Am …

Member Avatar for peter_budo
0
95
Member Avatar for qariella

This is what I'm gonna do and I know I havnt got far, but have been searching on google for 5 hours and dont have the solution yet, Your little sister / brother asks you to help her/him with the multiplication, and you decide to write a java application that …

Member Avatar for qariella
0
162
Member Avatar for rena0514

Hey i have a program thats due sunday and my teacher doesn't really teach that well....so i'm kinda confused and need help. problem: read a file of positive intergers and then print each lin and then print each number in the line (i've done this part) this is where i …

Member Avatar for jwenting
0
148
Member Avatar for kgkamaraj

HI. I am going to store Enumeration in test file(notepad). After each sentence is over one rectangle box is coming. If any one have idea, how to remove that rectangle box. FOR EXAMPLE : [code]// twords is vector //tsenum is Enumeation //wstr3 is string FileOutputStream fw = new FileOutputStream(fileName); tsenum …

0
57
Member Avatar for Chander Kararia

Hi All, I am writing a script which opens a popup window & then creates a table dynamically (data is coming from sqlquery) I am able to generate the table successfully. Problem - I want to click on any row & select a cell data, the moment I do this, …

Member Avatar for kvprajapati
0
60
Member Avatar for fardoonmuhafiz

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Member Avatar for fardoonmuhafiz
0
93
Member Avatar for kvass

Hey everyone~! I am pretty new to threading but I'm trying to figure it out by playing around with its possibilities. I wrote a program where 2 threads are supposed to "race" to count to 10 and then the first one there says "I win!" and the second says "I …

Member Avatar for kvprajapati
0
117
Member Avatar for ZER09

i have a problem in my code when i go to the method add i successfully go there but i cant go back to the main method someone who can help about this. sorry for my bad english. here is the code: [CODE] package project; import java.util.*; import java.lang.String; /** …

Member Avatar for ZER09
0
127
Member Avatar for kvass

Hey everyone~! I have been studying for the AP Computer Science exam, and I have a question where I think Barron's is wrong, so if someone could confirm whether I am correct or not please let me know! The following code snippets are given: [CODE=Java] public interface Player { /* …

Member Avatar for kvass
1
89
Member Avatar for Clawsy

Hi, I have an urgent ugly problem. I have a php file on a server that reads the name of the files of a directory from the server and POST them to my java application. When I try to read it, i get [CODE]Server returned HTTP response code: 400 for …

Member Avatar for PatrickSharp
0
913
Member Avatar for StephNicolaou

I'm not sure if this is the best way but I would like to display a list of addresses in a combo box where the columns come from different tables such as Countries, Cities and Types (work and home). I don't want to display the countryID or cityID, etc. but …

Member Avatar for Ezzaral
0
92
Member Avatar for kgkamaraj

For Example: java is an object oriented language. it has many feature including 1.1 robust 1.2 inheritance. java is a interesting language. I need output as follows: java is an object oriented language. it has many feature including 1.1 robust 1.2 inheritance. java is a interesting language. Note: I need …

Member Avatar for PatrickSharp
-1
150
Member Avatar for RSP86

Hi, I have a project for Uni, It is to create a system which will allow fingerprint recognition which will allow a user to access a created database and download information to a screen. I have implemented what i want it to look like, now im working on 3 main …

Member Avatar for peter_budo
0
174
Member Avatar for beforetheyknew

Hi guys, why wont this work. I'm still learning and have no experience with graphics of any kind. Just trying to put the image onto the background. The link directory is right i think. [CODE] import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.*; //inc javax.swing.ImageIcon public class TheArea …

Member Avatar for beforetheyknew
0
98
Member Avatar for ftoby

My assignement is to write a mortgage caclulator that displays x number of lines pauses then continues to dsiplay another x lines of data. Below is my code and I can not get it to work properly. It slowly prints the first 12 lines then displays everything else at once. …

0
68
Member Avatar for sujithy15

suppose that Box is a class now Box mybox = new Box(); this first creates a reference variable and then mybox is dynamically allocated memory but what difference does it create in allocating memory to a class instance dynamically or during compile time? here what is the advantage of such …

Member Avatar for IsharaComix
0
82
Member Avatar for qutejose

Does J2EE support Enterprise applications? Is Java Beans an application dependent components? Does JavaBeans support sharing among the network? 1 Javabean can contain how many classes? Does Servlets execution starts with main methods?

Member Avatar for fardoonmuhafiz
-1
91
Member Avatar for Ashish Upadhyay

I have developed a java web application and make installer of the application. This application is using SQL Server 2000, Now I want, when user installs this application on his/her machine, the installer install the database also, if the machine does not have SQL Server then it install the SQL …

Member Avatar for jwenting
0
105
Member Avatar for tactfulsaint

PLEASE WHAT'S WRONG WITH THIS CODES, I KEEP GETTING ERROR AT THIS STAGE [CODE]String result = ci.insertDetails(cid, name, dateOfBirth, String.valueOf(cms.getSelectedItem()), address, city, state , zcode, cnum, nod); String day = String.valueOf(d.getSelectedItem()); String month = String.valueOf(m.getSelectedItem()); String year = String.valueOf(y.getSelectedItem()); String ms = String.valueOf(cms.getSelectedItem()); String dob = year + "-" + …

Member Avatar for javaAddict
0
189
Member Avatar for ErlendHL
Member Avatar for rajarajan2017
0
61
Member Avatar for emihamburg

Hello! I've a main GUI class from where I create 2 others JPanel (PanelA and PanelB for example). In the first panel there are a JComboBox (JCA) and a Jlabel (JLA) and in the second panel there are a JList (JLB) and a JLabel (JLB). I'd like to have 2 …

Member Avatar for javaAddict
0
98
Member Avatar for sealxlion

Can someone give me a simple coding/alternatives than the one I use because I think mine is just too long.. [CODE]import java.io.*; public class MidtermGrade { public static void main(String arg[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int qz1,qz2,qz3,as1,as2,wexm,hoexm; double aveqz=0,aveas=0,aveexm=0,clstnd=0,mdtrm=0; System.out.print("******************************\n"); System.out.print("Enter Quiz1: "); qz1=Integer.parseInt(br.readLine()); System.out.print("Enter …

Member Avatar for jwenting
0
173
Member Avatar for daniellamae

hi..! i have a project that we need to research a java source code or C source code of the game LUCKY 9.. we are not required to make the game but we are required to research a "ready made" code for it... dont worry that i may not learn …

Member Avatar for jwenting
0
681
Member Avatar for gingerfish

is it possible to write a text in a different font and color in one textarea ??:?: thanks in advance ^^

Member Avatar for jwenting
0
89
Member Avatar for bheegi

Hello i am a beginner in java and this is my first project my project is about cinema which have 10 theaters and i need to provide set of films to each theater i try to do this but i am a bit confused and lost [CODE]import java.util.Arrays; import java.util.List; …

Member Avatar for kvass
0
113
Member Avatar for md21holla

Hi guys! Ok so this is my first year in college and I am having a lot of trouble with my computer course which mostly consist of writing java programs. I am falling way behind in class and i have a mid term due next week. It is REALLY causing …

Member Avatar for tux4life
-1
905
Member Avatar for -ordi-

Example: Input: 4 1 3 3 4 Output: 9 Because 3 X 3 = 9 and this is a maximum area [CODE]import java.io.*; import java.util.*; public class R { static int max(int[] a) { int max = 0; for (int i = 0; i < a.length; i++) { if ( …

0
81
Member Avatar for gedas

hey guys, im new to java got a simple quastion, well it easier to explain with the code here is the code [CODE] ship = new ShipEntity(this,"spaceinvaders/ship.gif",370,550); entities.add(ship);[/CODE] for example how could i use a simple 2d shape such as rectangle instead of the .gif image thanks in advance

0
52
Member Avatar for mithun1538

Hello everyone, I'm having a problem when I try to display my applet online. I can view the applet on my desktop, with .htm file. However, when I upload the same file, along with the required .class files, I get the following error while viewing the applet online: java.lang.ClassFormatError: Extra …

0
52
Member Avatar for jismtu

Hi i need to know how RFID works in a smart class room. how can we set for attendance for any student. Would any please help me to sort out my problem? thanks

Member Avatar for Ezzaral
0
33
Member Avatar for Dasau

When I put these code in my project. It suppose to display error box when no input is enter, but there no dialog box is pop up. What else do I need for this code to work? Here part of the code I want it to work [CODE] if( costKwhrField.getText().length() …

Member Avatar for stultuske
0
107
Member Avatar for suct

Hi, I am new to Java and am doing this as an on the side project. I have an ArrayList of Strings. I want access each individual String and then do something with that string recursively. However I used the Tokenizer to get the Strings and put them into arrays, …

Member Avatar for kvass
0
105
Member Avatar for crocodal21

hello all i have a finished program that i worked on last week and i think is running well but i wanted to know how to convert it to have JTextField where the user inputs a value which must appear in the upper part of the frame. There should be …

Member Avatar for crocodal21
0
482
Member Avatar for ronyyy

how i can solve this problem..... generate the following staircase pattern(using loop operation) 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 6 12 18 24 30 36 7 14 21 28 35 42 49

Member Avatar for ronyyy
0
105
Member Avatar for ravi0703

Hi, My Name is Ravi Shankar. I have query in PHP Code. I had written the code as if client click on check box, it will generate 16 digits random number in adjacent text box. My query is, before display the 16 digits random number i have to show a …

Member Avatar for diafol
0
90
Member Avatar for pjbinu

I am trying to load an image using jsf graphicIamage tag. But it is not displaying the image code is ... [code=JSF]<h:graphicImage id="image1" value="/Img/flow2.jpg" width="120" height="80" ></h:graphicImage>[/code] the image flow2.jpg is placed in \WebContent\Img folder but it is not working please help Binu

Member Avatar for parry_kulk
0
66
Member Avatar for XodoX

Hello, I'm trying to do the following program in JAVA. I find JAVA very confusing. Liked C++ much better. Anyway, here's what I'm trying to do: [quote] Develop a program for a small auto dealership. This program will keep track of the auto inventory using an object of the class …

Member Avatar for BestJewSinceJC
0
627
Member Avatar for chixm8_49

Hello. I am having a problem with this certain code. Every call with this method (listI()) will return a node. After the list reaches null, it will go back to the start. On the first call on the tester, there is no problem. But when the method is called for …

Member Avatar for BestJewSinceJC
0
102
Member Avatar for SmackFN22

I am trying to write a program that will work like a hangman game. I have a loop that assigns the characters to their spot in the string and is supposed to end if the newly assigned string equals the original word. If the letter guessed is correct, nothing should …

Member Avatar for SmackFN22
0
107
Member Avatar for Cort3z

Hi. Im working on a text-based "game" that uses strings to generate maps. So I need to split these strings into bits that i can work with, but somehow the .split method kills the white space in my string. How can I get around this? Of course I can force …

Member Avatar for masijade
0
171
Member Avatar for geoffy0404

is there any place i can find some Open Source cell phone code written in Java, where i can use a IDE and check it out and maybe even test it on my phone?

Member Avatar for geoffy0404
0
156
Member Avatar for TheWhite

If I have 2 synchronized methods and 1 calls the other, what exactly happens? If those 2 synchronized methods are in a class, and 2 of those classes are created, each of them calling one of their synchronized methods, what would happen? If those 2 classes extended Thread and were …

Member Avatar for TheWhite
1
166
Member Avatar for Dasau

When I put this code between my script. It didn't work. [COLOR="Green"][B]I suppose to put a number in the input, but If I didn't put anything in the INPUT BOX, then the Error Should display.[/B][/COLOR] [CODE] if( Cost.getText().length() == 0 ) { JOptionPane.showMessageDialog( null, "Cost required", "Input Required", JOptionPane.WARNING_MESSAGE ); …

Member Avatar for kvass
0
86
Member Avatar for C+Marshall

here's another one that i've been struggling with. I need to create a phone number that can not have an 8 or a 9 in the area code. I thought it would be smart to simply generate the area code one number at a time .............. num1 = generator.nextInt(7)+ 1; …

Member Avatar for kvass
0
97
Member Avatar for pjdev

Hi everyone, I want to create a java application that I can embed into HTML and have it run without a server backend. So I am led to use applets. Can you suggest any alternatives? I want to create something similar to the application shown on this page: [url]http://java.sun.com/docs/books/tutorial/deployment/applet/developingApplet.html[/url] How …

0
43

The End.