35,619 Topics

Member Avatar for
Member Avatar for whoadiz

so I am trying do this problem involving linked lists where i need to basically make 2 linked lists each representing a polynomial. I got all that down... now I need to make a function to add the two polynomials and this is where i got stuck. I have the …

Member Avatar for Ezzaral
0
2K
Member Avatar for beforetheyknew

Hi guys I'm trying to learn animation/graphics(they're synonymus to me) what would really help me is a working model of a line turning on an intersection. I've searched around and all i can find is clocks and stuff but all i want is the basic code to cause a line …

Member Avatar for beforetheyknew
0
562
Member Avatar for linkinmal

I'm trying to develop an editor which you can insert text and draw shapes on. To do this, I'm using a JPanel as the main panel, and listening to mouse actions I add new JPanels into it. I draw the shapes on the small panels using getGraphics(). But the main …

Member Avatar for linkinmal
0
838
Member Avatar for bayo_84

Hi .. I try to override the XmlWebApplicationsContext and I dont know how to register my subclass. I found in ContextLoader.java in the method determineContextClass the following code: String contextClassame = servletContext.getInitParameter(CONTEXT_CLASS_PARAM); I looks like I could set the class by setting this Parameter but I down know how. In …

Member Avatar for ~s.o.s~
0
129
Member Avatar for jigar_cool

[B][COLOR=red]I m in urgent need of online flight reservation system source code coded in JSP since i hav to submit it before 15feb.[/COLOR][/B] [B][COLOR=red]the system must do the necessary functions-[/COLOR][/B] [B][COLOR=red]flight infornmation,[/COLOR][/B] [B][COLOR=red]fare details,[/COLOR][/B] [B][COLOR=red]online reservation,[/COLOR][/B] [B][COLOR=red]cancellation,[/COLOR][/B] [B][COLOR=red]view availability of seats,[/COLOR][/B] [B][COLOR=red]administration functions such as edit details,reports generation,etc[/COLOR][/B]

Member Avatar for rizwanshaikh
0
207
Member Avatar for omeli

Letter Maker Objective This project will give you some practice with loops, static methods, removing code duplication and introduces the notion of having multiple classes working together in a single project. Overview The project consists of several classes working together -- most of them are provided for you -- only …

Member Avatar for kvass
0
229
Member Avatar for devstarter

[This is a multi-post; I thank you people for the attention] hi How could I show a database datetime field (like mm/dd/yyyy) on a JTextField? regards

Member Avatar for javaAddict
0
110
Member Avatar for astronomical

All, I have worked extensively on my looping and sentinels here. As you can see I have my program working but it is not taking the series. I know I am missing something stupid but I just can't put my finger on it. I have my inupt validation working as …

Member Avatar for javaAddict
0
841
Member Avatar for Majestics

I want to design utorrent client for my semester project in java, can anyone tell me where should i start and what are the necessary steps for this, also if any useful website and information. Thank you.

Member Avatar for Nick Evan
-4
124
Member Avatar for kvass

The commonly used syntax: [CODE=Java] public class Foo { private int x; public Foo(int x) { this.x=x; } } [/CODE] Is actually "flawed." If you have an anonymous inner class inside the Foo constructor (i.e. if this were a GUI code and you were adding an ActionListener) then the private …

Member Avatar for javaAddict
0
177
Member Avatar for Jerreke

I'm trying to populate the items of a foreach-element in a JSP page. [code]<c:forEach var="request" items="${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}">[/code] Gives me: org.apache.jasper.el.JspPropertyNotFoundException: /secure/manageSchedules.jsp(40,36) '${manageSchedulesBean.userController.getRequestsBySchedule[schedule.scheduleId]}' Property 'getRequestsBySchedule' not found on type $Proxy8 the called function exists, and when i cann manageSchedulesBean or userController, there is no error. Someone got a clue?

Member Avatar for Jerreke
0
110
Member Avatar for shivnath

Hello Everyone I have just started studying about applications and usage of DBus and as I able to understand that it is possible to pass messages between two different applications(programs) written in different languages usnig DBus. But I am not able to implement it. So just for demo, I want …

Member Avatar for musthafa.aj
1
281
Member Avatar for avinash_545

hi everybody!!!!!!! can anyone tell me how do we test the data type of variables in java, like if a variable is a string, the system prints out that this variable is string or not. more especially how can we test this on primitive data type? waiting for your replies!!!

Member Avatar for javaAddict
0
269
Member Avatar for anuj_sharma

Hey Guys, Should i use hidden textboxes or session variables to pass values between various jsp pages??

Member Avatar for jwenting
0
88
Member Avatar for abirami84

I wanT to connect database with jsp directly otherwise have connection with servlet anD how to make connection on sevlet WITH jsp

Member Avatar for jwenting
1
81
Member Avatar for cms271828

Hi, I'd like to be able to put a JTable inside a ScrollPane, so that when the table is large, the horizontal and/or vertical scrollbars 'kick in', and when the JTable is small, I just get a small JTable. Also I want to limit the size of the scrollpane to …

Member Avatar for cms271828
0
94
Member Avatar for miyu15

[b]Split from - [url]http://www.daniweb.com/forums/thread158197.html[/url] [/b] [QUOTE=mabros86;739291]well basically what i'm trying to do is build a program that takes a file and copies is to another new file identically!!![/QUOTE] hi.. uhm.. how did you do this? i mean how to copy a file from jFileChooser to another destination? is it possible …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for saggykulji

In java how to prompt the user to enter the phone number (xxx- xxx- xxxx) format in dialog box? and take the number and Display it in (xxx xxx xxxx) instead of dashes i want spaces. how do i do it? I try to enter the number but it wont …

Member Avatar for kvass
0
77
Member Avatar for Majestics

How in java we can add double menus, like file bar and search bar both are different in internet explorer? Thanks in advance.

Member Avatar for Majestics
0
100
Member Avatar for LucarioWill

Thanks so much for bothering to look at this n.n; I've been kind of confused in this class, mainly because I have no idea what the teacher's saying; her English isn't that great, and she has no in-class coding exercises so we're learning entirely from her crappy powerpoints. I'd have …

Member Avatar for Ezzaral
0
132
Member Avatar for devstarter

[code] public boolean isFull(){ //generally full if(parcelIsFull() || hcparcelIsFull() || noSharingParcel()) return true; } [/code] I want to know why i get this error missing return statement I have the value written as 'true' boolean as the returning value.

Member Avatar for balmark
0
142
Member Avatar for jamesonh20

Hi there I have a rookie question. I am trying to clean up a long list of if statements for a class in java, I know that in C# you can code #region-->#Endregion. Is there a simple way to do the same thing in Java? THANKS! Jameson'

Member Avatar for jamesonh20
0
105
Member Avatar for devstarter
Member Avatar for balmark
0
370
Member Avatar for kavitha0904

im new to java ..im learning myself.. i want the source code for 12hr to24hr conversion of time.. ie if i give input 1pm then my program should gives this in 24hr version as 13hr..... i hope u pepole will help me.... Regards kavitha

Member Avatar for balmark
0
238
Member Avatar for qariella

After the list, sum, average, max and min have been printed, ask the user to enter a value. [B]Then print the id of each salesperson who exceeded that amount, and the amount of their sales. Also print the total number of salespeople whose sales exceeded the value entered.[/B] The bold …

Member Avatar for qariella
0
987
Member Avatar for code_warrior

[I][COLOR="Red"]This code enables the user to enter a number and finds the prime from 2 to the entered number..Please name it PrimeNumbers.java Hope it'll help u..[/COLOR][/I]:D

Member Avatar for atong
0
263
Member Avatar for rocky89

A perfect number is one for which the sum of its divisors (excluding the number) is equal to the number itself. For examples 6 is perfect since the three divisors of 6 (excluding 6) are 1, 2, and 3 which add up to 6. The number 8 however has divisors …

Member Avatar for stultuske
-1
192
Member Avatar for enbeeone3

[QUOTE]Your are supposed to create a class book comes with, id, name, author, price and other two informationn of it. Inside the class, you need to create constructor, and methods to manipulate it. [/QUOTE] thanks in advance.

Member Avatar for stephen84s
0
112
Member Avatar for coolest_987

I am making a project on j2ee but i am facing a little problem ie.[B][U]How can i play mp3 songs in jsp? [/U][/B]I ask this question to many person but no one was able to answer my question.Plz consult Discussion Community about this question. I am finding this question since …

Member Avatar for peter_budo
0
424
Member Avatar for Tigerdude

I'm supposed to be inserting words from a text file into a BST and AVL tree. I've got the words to insert correctly, and it recognizes whenever the words are repeated. It just leaves the count at 2 instead of incrementing afterwards. Can't seem to figure out why it's not …

Member Avatar for javaAddict
0
607
Member Avatar for crazy lady

Newbie trying really hard to understand what she is doing wrong. Your help would be appreciated. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product Orders</title> <script type …

Member Avatar for javaAddict
0
77
Member Avatar for crazy lady

Newbee needs help with program. If you would be so kind to tell me where I am going wrong. <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhmt1-strict.dtd"> <!-- Fig. 8.12: Product order.html --> <!-- Product script. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Product …

Member Avatar for javaAddict
0
91
Member Avatar for j1979c

[B]Hello, I'm currently having some problems with the StringTokenizer from java util. I've declared a StringTokenizer like: [COLOR="Red"]StringTokenizer token = new StringTokenizer(line,"|"); [/COLOR] to token out a string read from a txt file such as: [COLOR="Blue"]Diablo|RPG|PG|PS2|20[/COLOR] and it works fine(detects all the "|" as delimeters) :) The problem now is, …

Member Avatar for javaAddict
0
288
Member Avatar for kvass

This program creates 2 methods for convenience: menu() and binaryQ(). The menu method accepts several strings as its parameters. The first of the strings is the question to be displayed at the top of the menu. The following strings are the menu choices. For instance, if you call [icode]Confirmer.menu("What is …

Member Avatar for kvass
-1
199
Member Avatar for ajay_tabbu

my program is compiled.but on run that i have message "Exception in thread "main" java.lang.NullPointer Exception" 1. class Rev 2. { 3. char a[]; 4. char i=3; 5. void str() 6. { 7. for(i='A';i<'D';i++) 8. { 9. a[i]='i'; 10. } 11. } 12. void show() 13. { 14. for(int i='A';i<'D';i++) …

Member Avatar for BestJewSinceJC
0
163
Member Avatar for JessJames

Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but …

Member Avatar for kvass
0
83
Member Avatar for sandyben

i hava a code called home.java [CODE] import javax.swing.*; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.Random; import java.util.*; import java.text.*; class home extends JFrame implements ActionListener, Runnable { JButton btndetect,btntest,btnstart,btnexit,btntransfer; ImageIcon ic,ic1,bc; JLabel lbltitle; JTextArea textArea ; JScrollPane scrollPane; JPanel panel; Thread t; public home() …

Member Avatar for sandyben
0
2K
Member Avatar for themarval

I've searched the page but i can't find a way to mark my previous post as closed. This is slightly different so i was not sure if i should create a new post or add to my existing one. Not trying to break any rules intentionally. in this post i've …

Member Avatar for mrnutty
0
154
Member Avatar for J-Rock

Hey guys, im pretty new to java as this is my first time ever taking such a course, and i have an assignment that i have to complete that im stuck on and i have no idea what to do next. Heres what i have so far, and i doubt …

Member Avatar for kvass
0
124
Member Avatar for themarval

I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output. if …

Member Avatar for BestJewSinceJC
0
150
Member Avatar for BuhRock

I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 …

Member Avatar for kvass
0
146
Member Avatar for RaigaX9

Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* …

Member Avatar for RaigaX9
0
3K
Member Avatar for willpower927

Hi, i want to develop an instant messenger using a P2P architecture.. please help me out with the initial steps

0
50
Member Avatar for beGinneR24

Hello, i have a question. How do you compare 2 words or integers? the idea is a program should prompt the user to enter 2 words in one sentence (so like "apple orange") then it reads the 2 words and compares them to see if they are the same or …

Member Avatar for BestJewSinceJC
0
128
Member Avatar for Taimoor Rana

// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this …

Member Avatar for BestJewSinceJC
0
165
Member Avatar for Majestics

[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You.

Member Avatar for BestJewSinceJC
0
94
Member Avatar for mrbool
Member Avatar for Salem
0
75
Member Avatar for devstarter

hi people does anyone know how to change the backcolor on a Jtextfield, when the component gets the focus? thanks

Member Avatar for BestJewSinceJC
0
48
Member Avatar for needhelpbadly

I'm a beginner, and I was wondering how to write a java code for this: * *** ***** ******* ***** *** * I'm using DrJava. This is supposed to be in a diamond formation. Hopefully it posts that way. Thank you :)

Member Avatar for VernonDozier
0
108
Member Avatar for Dasau

I have problem compile this. Line 23 having a problem ( possible loss precision, required int, found double). [CODE] public void actionPerformed( ActionEvent e ) { try { // call a function to get the value - if an error occurs, // display a message box and set focus to …

Member Avatar for BestJewSinceJC
0
476

The End.