32,199 Topics

Member Avatar for
Member Avatar for swetaseng

Hi, I am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. …

Member Avatar for fareast87
0
189
Member Avatar for rajachandra

hello, in the below code i have established conection through jdbc to oracle database,here my program will give continous ping to the server and stores the result in to the file. again by opening the file iam reading the file and searching for the "Request Timed out " pattern and …

Member Avatar for harsh2327
0
90
Member Avatar for jooa

I have written two classes, one the GrabPixels class which takes an image and extracts the pixels from it. The FFT class then tries to call grabPixel. The problem I get is that img in this line [CODE]grabPix = new GrabPixels(img);[/CODE] is null. I'm not too sure why. Could someone …

Member Avatar for quuba
0
203
Member Avatar for onejavaone
Member Avatar for peter_budo
0
136
Member Avatar for beanboy

i'm trying user login ...logged in users are sent to a hash map for further reference. my prob is hashmap creates new map every time a user logs in......how to put all the users in a single hashmap...? thanks beanboy

Member Avatar for javaAddict
0
47
Member Avatar for altf2junkie

I've been giving myself a crash course in Java using some lectures from Stanford, and I started working on my practice midterm yesterday. So I'm reading my way through Sun's Java tutorial, and they don't define what the operator *= is, and that's the third question on my practice midterm. …

Member Avatar for prisonpassioner
0
148
Member Avatar for prisonpassioner

hi i am a new one to this community i have a problem in my code ,in that when i try to implement keylistener it works only for text not for image while using drawImage the image painted but not moved and when iam trying it with draw string keyListener …

Member Avatar for prisonpassioner
0
98
Member Avatar for ashish2234

Actually , i must admit , i did not knew about connecting with database but i am trying to learn , i want to insert data into jtable from Ms acess database , i have made a table called song_library there and also created the dsn as testy1...Also in the …

Member Avatar for puneetkay
0
133
Member Avatar for ronny22

Hi everybody sorry if the title is misleading what am meant to say does anyone know of such a book or anything where I or we (depending anyone coming back to this thread) lol Know were we can see step by step on how to build application on java you …

Member Avatar for harsh2327
0
216
Member Avatar for ashish2234

i am done with almost all the functions of a simple mp3 player , i am trying to make , i 'm stuck with pause function, i dont know , i was thinking of creating a separate thread for it... [code] private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) { song_name=(String) jTable2.getValueAt(jTable2.getSelectedRow(), 0); if(count>0) …

Member Avatar for prisonpassioner
0
133
Member Avatar for msalahu

Dear Members, I developed following class to creat a virtual key boad. While user will click it should type that number to login field. The class is compiled with jdk1.6.0_14. successfully But while button is clicked its not typing that number to login filed. Kindly help to resolve this problem …

Member Avatar for msalahu
0
181
Member Avatar for ndoe

may i ask again!different question but still use netbean! i want active a tombol in a condition, i have 5 question in panel a if the 5 question is true tombol in panel b is active!how the idea,i tried use method getParent but is not succes!thanks all and how change …

Member Avatar for peter_budo
0
108
Member Avatar for theo19

Guys, kindly help me. How can user enter a character? or How can I use the Enumerated Type for this? Thanks:) [CODE] import java.util.Scanner; public class RockPaperScissors { public static void main(String[] args) { Scanner input= new Scanner(System.in); char x,y; System.out.print("Player 1:"); x=input.nextLine(); System.out.print("Player 2:"); y=input.nextLine(); switch(x) { case 'P': …

Member Avatar for VernonDozier
0
4K
Member Avatar for Aphrodite

The code below runs successfully but once run and the user enters a message into the text field named input and clicks the button named send, I receive a null pointer expression. Within the inner action listener it calls the method sendMessage() which gets the text and assigns it to …

0
56
Member Avatar for rp_prasanna

i have a requirement of adding rows which consist of textboxes and select box. the values stored should be set in the form. I am using Struts jsp. i tried using indexed properties on forms along with logic iterate tag....

0
50
Member Avatar for mdew_47

I am thinking of building a media player that could read all the audio ,video file types as my final year project using java in the linux environment( fedora core 4). But i don't know from where should i start, pls is there anyone who can help. I will be …

Member Avatar for devpiyu
0
288
Member Avatar for sriasarch

Hi, I am getting parsing error in xpath transformation String s = "if (/blah/text()!='') then blah/text() else ''"; XPathExpression expression = xpath.compile(s); Object o = expression.evaluate(target, XPathConstants.NODESET); I am using normal core java and xml packages to parse import javax.xml.parsers. DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathExpression; import …

0
91
Member Avatar for anshusharma

hello , i am new to web applications.in my final year project,earlier i was making call to database to get the data.Now i have to replace that database call with a webservice call. i used axis2 to create a client stub and than wrote the java client to consume the …

0
54
Member Avatar for pandeyprashant

hello everyone, i m new to dotpropertyfile.please help me in this. How to use dotPropertyfile in java. thanks in advance.

Member Avatar for kvprajapati
0
94
Member Avatar for kbjustin

While I am familiar java but i am basically new to creating a GUI using java. I need to make it so when a user clicks on a button another window pops up displaying various statistics about that product. The thing is the amount of information I need to display …

Member Avatar for BestJewSinceJC
0
146
Member Avatar for llemes4011

Hello! Today I started a SourceForge project for the game that I'm making, and I wanted to get input on the Map Builder/Editor. I DID include a readme file that has directions, contact info, and future features. [URL="https://sourceforge.net/projects/jiso/files/Map%20Editor/"]JISO Map Builder[/URL] Please give me feedback, this is a project that I …

Member Avatar for llemes4011
0
205
Member Avatar for akulkarni

i have subject advanced java programming in my syllabus i will be learning socket programming servelets, corba,AMI,java beans etc. I have heard about apachetomcat server.How do i get the required software from net.thanks

Member Avatar for BestJewSinceJC
0
137
Member Avatar for java dummy

I'm trying to get a calculation done in a loop but don't want it to print until after all loop are done. It will print but the calculation isn't done. Please help. import java.util.*; public class FlipCoin { public static void main(String[] args) { String choiceString; final String HEADS = …

Member Avatar for BestJewSinceJC
0
176
Member Avatar for akulkarni

i have a code with me [code] import java.applet.*; import java.awt.*; /*<applet code="DialogTester" width=400 height=400></applet>*/ public class DialogTester extends Applet { public void init() { Container container=this.getParent();//this ;why not create object of the class and call the function while(!(container instanceof Frame)) { container=container.getParent(); } Frame parent=(Frame)container; Dialog myDialog=new Dialog(parent,false); myDialog.setLocation(320,240); …

Member Avatar for VernonDozier
0
113
Member Avatar for fred2

[COLOR="Red"]hi everyone im doin a java application that should show the records in tha database on a jtable the code so far is this:[/COLOR] [code] /** * @(#)table.java * * table application * * @author * @version 1.00 2009/8/14 */ /* * SimpleTableDemo.java is a 1.4 application that requires no …

Member Avatar for fred2
0
151
Member Avatar for jdfskitz

I have been trying to learn java for a while but i cannot find out where to start can someone please help me?? I am Trying to learn as fast as possible . I have hosted a world of warcraft private server... Learned some div, css and html and i …

Member Avatar for peter_budo
0
122
Member Avatar for ashish2234

i am new to swings and i don't properly know where and how to use drawString in swings !! please help!! import java.awt.Graphics; import java.awt.*; import java.awt.Graphics2D; public class Main extends javax.swing.JFrame implements Runnable { String m1="hello"; Thread t =null; boolean flag; /** Creates new form NewJFrame */ public Main() …

Member Avatar for VernonDozier
0
104
Member Avatar for Questions???

Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end …

Member Avatar for Questions???
0
72
Member Avatar for applefat

I realize that Java doesn't literally allow you to pass functions as arguments. And I've seen threads that address this topic with regular members, but I can't seem to adapt it for static methods. I have two classes that act kind of like two different "datasources" (A and B). They …

Member Avatar for applefat
0
2K
Member Avatar for smoore

Okay so I posted my [URL="http://www.daniweb.com/forums/post936498.html#post936498"]first large project[/URL]a few weeks ago (2 or 3 i think) and now I finished another one! It is smaller then the 1st (about half the size) but still pretty cool I think. Anyway. It is called uCount and it is something I put together …

Member Avatar for VernonDozier
0
95

The End.