36,051 Topics

Member Avatar for
Member Avatar for gods_angel

ok so here are the instructions for this project: Write a KochCurve program that uses DrawingTool and provides a drawKochCurve method for drawing Koch curves. Each drawKochCurve method can take the number of levels and an initial size as its parameters. Sample usage of the method to draw a 6 …

Member Avatar for persianprez
0
120
Member Avatar for aleite

[code=java] Hello! I'm learning a little bit how to programme in java and I have a work to do. I have to read a file with a lot of lines where each line has 3 numbers: 2 doubles and 1 int (4.5 3.5 7). I'm trying to do like this …

Member Avatar for gunjannigam
0
110
Member Avatar for Stefano Mtangoo

I love to learn the hard way i.e with real world examples. I thought to make MP3 Player, but I changed mind and now I want to make small SQLIte driven app. How do you manipulate SQLite with Java? I'm googling to see if I will catch noobish things :-/

Member Avatar for Ezzaral
0
153
Member Avatar for Son of a gun

Is it possible to simply check a java String argument is present and return a boolean true or return false if the argument is of a Null value?

Member Avatar for Son of a gun
0
122
Member Avatar for nikhil.laghave

Hello, I am trying to make a forum website using struts and hibernate. I am totally new to struts, hibernate and jsp, so am not familiar with how the flow should be. So, I have a homepage which will give me a link to the forum page. On this forum …

Member Avatar for Reventon
0
64
Member Avatar for prasannakarthik

Hi, Im passing a attribute from jsp1 using Ajax code as shown below. [CODE]this.xmlHttpReq.send(attrName);[/CODE] I need to fetch the value in the jsp2, manipulate and return the value to the calling jsp(jsp1). How to achieve this functionality... Any help would be grateful!!!! Thanks! lpk

0
44
Member Avatar for lovesjavamuch

hi! i now implementing laptop playing guitar where my touchpad is to do strumming and keyboard keys is to change chords. when i pressed a key and moving the mouse cursor i can do the strumming, now my problem is when i released the key i still can do the …

Member Avatar for JasonDoyle
0
130
Member Avatar for anevins

I'm starting a main class but when i refer the name back to my other java class, it cannot find the constructor when it is clearly there, in the right file directory. I'll give you the code from my constructor and the code i'm using in the main class. Constructor …

Member Avatar for anevins
0
137
Member Avatar for JasonDoyle

Is it possible to have AVI's play in Java Applets at specific times, eg: when a button is pushed?

Member Avatar for JasonDoyle
0
87
Member Avatar for Camzie

Hi there I need help!!!! How do you read and write from an .ini file by using java sockets????

Member Avatar for Camzie
0
77
Member Avatar for Clawsy

Hello, In my application I transfer a lot of images from server to client. The problem is the size of the image, so I tried to encode it using [URL="http://objectplanet.com/pngencoder/"]this encoder[/URL] - objectplanet png encoder. The problem is nothing seems to happen, image size is the same. [CODE] //img is …

Member Avatar for Clawsy
0
227
Member Avatar for snehapatil

Hello to all, I am creating one java applet in which i have to use many JButtons. So i used an array of J Button. Now my program is able to create buttons but it is not able to use ActionListener or ActionCommand.... I am sending a part of code …

Member Avatar for musthafa.aj
0
177
Member Avatar for TheStig01

Hi all, Last night i started coding a database with java. The way i was going to do it was through netbeans with a database connection to an sql database. Then i went to school and told my teacher how i was going to do it and he told me …

Member Avatar for TheStig01
0
952
Member Avatar for izzy234

Hi, I'm having some difficultly figuring out how to put a value to my combobox items. For example I have 3 states listed in the combobox. [code=java]String[] stateStrings = {"Michigan", "Wisconsin", "Illinois"}; JComboBox jComboBox = new JComboBox (stateStrings); jComboBox.setSelectedIndex(2); jPanel3.add(jComboBox);[/code] I need to put different yearly interest rates or APR …

Member Avatar for javaAddict
0
139
Member Avatar for helpwithjava88

hi. I need java for an online game, runescape. I go to the java site and get to the downloads page, but as soon as I click the yellow download button and decide wherer to save the file and click ok, I get a message saying my connection, compuserve, has …

Member Avatar for javaAddict
0
214
Member Avatar for pandalov101

Here it is: the user enters string and then then they enter a word from the sentnce they just entered in. then the program is supposed to take out the word they entered and then display the new sentence.. How to do this ???????? really need help PLEASE... :( this …

Member Avatar for gunjannigam
0
166
Member Avatar for tabel69

Hi out there. I have a project that I just cant seem to get to work. I just don't get programming! I have been working on this for three days, and all I am doing is going in circles. I can't seem to get the array to initialize. The assignment: …

0
76
Member Avatar for RichardCrickets

Hello, I am trying to create a collection that will store boolean relationships between a list of numbers. Normally I would create a 2d array but these numbers will always be dynamically changing. Sometimes there will be more numbers and sometimes less. What collection type can I use to store …

Member Avatar for gusano79
0
76
Member Avatar for Kurosaki

Hi. I am kinda new to java and I really need help on this program that I have been assigned. Here is the assignment: [B] Assignment:[/B] Write a KochCurve program that uses DrawingTool and provides a drawKochCurve method for drawing Koch curves. Each drawKochCurve method can take the number of …

Member Avatar for gods_angel
0
262
Member Avatar for JuvenileMango

Hi, I'm completely new to Java, and I'm already lost with the installation. :p I'm on the custom install page and I see Source Code: Source code for classes that comprise the public API of Java. Public JRE: The standalone JRE. Any application can use this JRE. It registers Java …

Member Avatar for JuvenileMango
0
66
Member Avatar for Spnecer

Im doing a plane seat assignment. Were i use a File for: varible name = Keyboard.readVaribale(); and some part are in swedish but you smart guys might solv it e/w or otherwise i've to rewrite it :p. e/w the prolem is that i got the program working but i have …

0
40
Member Avatar for Pranesh_Ashrit

Dear Forum Readers, I have three frame in a page i.e. topFrame, leftFrame and bottomFrame. i have some links in the left frame, and whenever the user clicks on these links, it will be redirected to bottomFrame. The problem what i am facing is, whenever the user clicks refresh button, …

Member Avatar for Phaelax
0
82
Member Avatar for pjnewberry

I'm inherited a jsp application and have loaded it to a shared web hosting platform. When I load the page, it works fine in Internet Explorer but in any other browser I see a listing of the source code. Obviuosly I have something missing or incorrect but I've never used …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for JasonDoyle

Is it possible to remove the animated gif from view once it had played once, i am using[CODE] tr = new MediaTracker(this); img = getImage(getCodeBase(),"test.gif"); tr.addImage(img,0); g.drawImage(img, 0, 0, this);[/CODE] to display it but it just keeps playing over and over again. Is there a way to remove it after …

0
82
Member Avatar for JBeginer7891

Someone please help! I'm writing a program that enable a user to search for a patient Info when patient number is given. here is the search code snippet [code] public ArrayList searchPatient(String patientNum) { try { String sql = "SELECT fname, sname, location, dob, dor, race, gender, status, initials, idnum …

Member Avatar for ~s.o.s~
0
113
Member Avatar for rs25

Hi, I'm learning Java/Jsp. I just started a project to learn and have some Practical knowledge. But I'm stuck and confused Kindly suggest me so that I can proceed further.- The Project is a Knowledge System. It stores Lots of Questions their answers which is listed by Categories. There's 2 …

Member Avatar for rs25
0
106
Member Avatar for raff004

whats wrong with these code? the buttons don't add or remove the panel.. someone help me!??plss..:S [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class addremove extends JPanel implements ActionListener{ private JButton addbut; private JButton revbut; private JPanel panel1; private JPanel panel2; public addremove() { addbut = new …

Member Avatar for HerrLehmann
0
124
Member Avatar for NickT80

I have a project that needs to take an int "rating" and a string "title" and sort the list by rating then title. Needs major help. this is all i have so far. [CODE]public class Movie { private int rank; private String title; public Movie(int rank, String title) { this.rank …

Member Avatar for javaAddict
-1
85
Member Avatar for alkeshtech

Hi guys, I am writing a method which given an instance of a class and a type (as a string), it will return an instance of the named type constructed from the instance if possible, null otherwise. So say, class A{ A(B b) { .. } .. } class B …

Member Avatar for javaAddict
0
99
Member Avatar for P00dle

I made a filechooser that enables the user to save a file. I used netbean's gui maker for it. I literally have just one thing stopping me from finishing my task: The save button does not actually do anything. You can click on it, but nothing happens. How do I …

Member Avatar for P00dle
0
186
Member Avatar for Traon

Basically I have a website designed in Netbeans as an IDE and created in Java using Servlets and jsp pages for interaction. I now wish to put this website online using a server, currently the website does interact with an SQL database but I have removed this functionality so just …

Member Avatar for peter_budo
0
85
Member Avatar for NickT80

I have a project where I want to combine 2 different arrays and then be able to sort them with either the int or string values. This is what I have so far. int [] myRatingList = { 5, 2, 4, 3, 1 }; String [] myTitleList = {"Top Gun" …

Member Avatar for gunjannigam
0
121
Member Avatar for NickT80

I have a project that needs to take an int "rating" and a string "title" and sort the list by rating then title. Needs major help. this is all i have so far. [CODE]public class Movie { private int rank; private String title; public Movie(int rank, String title) { this.rank …

-1
61
Member Avatar for Sanit

Hey guys, I have this assignment due soon and need some help with it. I don't want the solution handed to me, but I also don't want some extremely vague answers either. I want to learn from this. Basically, what I am making is a simple applet, that has 3 …

Member Avatar for gunjannigam
0
134
Member Avatar for balloonbob

Hello, need help programming a blackjack game for my computer science class. I have used a cirularlinkedlist to create this game. I have received a null pointer exception error. I think it has to do with my circularlinkedlist class. import java.util.NoSuchElementException; public class CircularLinkedList { private ListNode last; public CircularLinkedList(){ …

Member Avatar for mellowmike
0
166
Member Avatar for gabec94

So I'm practicing recursion and trying to write a 'floodfill' program. The program creates a picture array with a bounded region (one of the boundaries should be the edge of the array), prints the array, flood fills a certain cell a certain color, and then prints the array a second …

0
70
Member Avatar for kilermage

[CODE]Running Compiler -------------------------------------- server.java:52: cannot access handling.Handlers.CommandManager bad class file: .\handling\Handlers\CommandManager.java file does not contain class handling.Handlers.CommandManager Please remove or make sure it appears in the correct subdirectory of the classpath. public static CommandManager CommandManager = null; ^ Press any key to continue . . .[/CODE] What I did was …

0
84
Member Avatar for GiRL,IT

I need solution for this : Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price. A product has three pieces of data: id (int), name (String) and price (double). Your program should continue reading …

Member Avatar for GiRL,IT
-2
156
Member Avatar for didi00

Hello everyone!!! Can someone help me with this: I need someone to tell me if the code is correct about this: It should create a table, insert something into the table (in this case random numbers), select from the table, and erase the table. [code] import java.sql.*; public class dbAccess …

0
56
Member Avatar for fellafds

Dear expert, I want to compare two images. I've no idea of image processing. please help me from where to start. Do image comparison follow some standard algorithms? what are all the possible ways of image comparison? how do industrialists do? please help....

Member Avatar for idcj
0
93
Member Avatar for Bandre

Hi, We are using logic iterator in JSP to show number of records. the page rendering is taking lot of time. When observed it found that size of the rendered page is huge with lot of empty spaces. If we manually remove the empty space in a rendered page in …

Member Avatar for masijade
0
85
Member Avatar for deecy1

Assuming a one dimensional integer array a[] has been declared and created with 100 elements: for (int i = 0; i<=a.length; i++); a[i] = 5; Assuming int b [] [] = new int [3] [3]; b[1, 1] = 5; Strings students[] = {Pat, Tom, Mary, Anne};

Member Avatar for javaAddict
0
95
Member Avatar for musthafa.aj

Hi! i creating java apps to edit windows registry .... it is fine in Xp but in Vista its need admin privileges.. how do get it programmatic-ally... in .net app.manifest is there..but in java anything is for admin privil..

Member Avatar for masijade
0
92
Member Avatar for VinceAshbySmith

Hi all is it possible to delete the last line of a text file each time a method is called. I have the following method: [CODE] Writer output = null; File file = new File("playerData.xml"); try { output = new BufferedWriter(new FileWriter(file, true)); output.write("\t" + "<player>" + "\n"); output.write("\t" + …

Member Avatar for masijade
0
3K
Member Avatar for sulthana

input a number and convert it into binary, octal and hexadecimal using built in methods of integer class

Member Avatar for javaAddict
-1
148
Member Avatar for rukshilag

Please help. i do not know how to do this as i am a java beginner. i only know to use a string and output. how do i do this with a loop? this shows to the side bit it should be in the middle.... like an upside down A …

Member Avatar for gunjannigam
0
77
Member Avatar for onsir

I want to get data sales item, its with compare table item with table sale although item in table sale nothing, data will show according with data item i have SQL like this [code] select i.code,s.date_sale from Item i left join(select * from Sale where date_sale <='2009-01-31') s on i.code=s.code; …

Member Avatar for masijade
0
86
Member Avatar for ravikiran032

i have written the following code and it is not executing due to the following [B]error[/B] [COLOR="Red"]dec.java:7:integer number is too large :10000000000[/COLOR] [U][B]code[/B] [/U][CODE] import java.util.*; class dec{ public static void main(String args[]){ long dig,store,use,temp,temp1,end; int count=0,count1=0,ch; use=1000000000; end=10000000000; while(use<end){ dig=use; for(int i=0;i<10;i++){ temp=dig%10; dig=dig/10; ch=(10-i)%10; store=use; for(int k=0;k<10;k++){ temp1=store%10; …

Member Avatar for masijade
0
2K
Member Avatar for Xamas

I'm going to put the text information to "data.bin" file in binary mode. Then i'm goint to read that information from file. I did by using "FileOutputStream", then "ObjectOutputStream" class and his "writeObject();" method, but this one just puts serialized object data to file, and as I understand - that's …

Member Avatar for javaAddict
0
157
Member Avatar for softswing

Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this....

Member Avatar for softswing
0
122

The End.