32,204 Topics

Member Avatar for
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
225
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
172
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
949
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
133
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
210
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
162
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
74
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
74
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
259
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
64
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
38
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
80
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
110
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
103
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
123
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
83
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
97
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
183
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
117
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
58
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
131
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
161
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
67
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
82
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
153
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
52
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
91
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
93
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
89
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
2K

The End.