32,199 Topics

Member Avatar for
Member Avatar for naffan

Hi All, I've a little problem with writing and saving to a file I'm close but I can't seem to grasp what i'm doing wrong here. Trying to save student object(s) to allstudents.txt This is my loadStudent method; [CODE]public student[] loadStudent() throws IOException, ClassNotFoundException //loads the accounts and returns them …

Member Avatar for naffan
0
169
Member Avatar for tkit1110

Hi, I am supposed to develop a Voicemail System for my data stuctures class, so to record and playback messages, I was told that I would need to use the Java Sound API. However, after reading the little tutorial on Java, I am still a bit lost as to how …

Member Avatar for harinath_2007
0
188
Member Avatar for xinwei

Hi all, I'm doing a elevator simulation project but i met some issues. First, I wish to align my buttons on the left to the horizontal lines. I tried to setting setMinimumSize, setMaximumSize, setPreferredSize but it didn't help. Second, if I re-size the window, the buttons on the left seems …

Member Avatar for xinwei
1
752
Member Avatar for varun45

Hello i am needing advice about a project that i have got. Its about traffic light using wireless sensor simulation. I want to know about the different softwares that can be used to work on such application, i mean the simulation part. I tried google but apparently i dont really …

Member Avatar for peter_budo
0
162
Member Avatar for sheennave

Hi! I am new in hibernate annotations so i am practising it on the console. In here i am using hibernate3.jar(came with Hibernate 3.5.1), hibernate-annotations-3.4.0.GA.jar etc. However when i run the main the application didn't start and following errors were generated. Any idea,please help.. !?? 0 [main] INFO org.hibernate.cfg.annotations.Version - …

Member Avatar for sheennave
0
1K
Member Avatar for sathya88

hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here …

Member Avatar for sathya88
0
157
Member Avatar for bibiki

Hey there, I have taken earlier this tutorial on adobe's site for building an application for mobile devices. The tutorial provides a war file. After deploying the war file on my tomcat server, a few directories are built. Most importantly, WEB-INF folder. This folder contains some java files on one …

Member Avatar for bibiki
0
90
Member Avatar for sheennave

Hi ! I've been trying to use hibernate with spring framework for a week by using hibernate annotations. I am using hibernate-distribution 3.6.5 final and Spring framework 3.0.5 in the application. Error log and code is here :[URL="http://www.daniweb.com/software-development/java/threads/378043"]http://www.daniweb.com/software-development/java/threads/378043[/URL] I wait for some suggestions. Please hlp !

0
72
Member Avatar for muff1n

Hi all, I'm about to start on my Java course next semester. Since I've only coded in C/C++ til now, I'm a bit stumped. I'll give you an assignment from last year, maybe some of you guys can show me how this program would look like in Java. Here goes: …

Member Avatar for muff1n
0
176
Member Avatar for nomin-ginger

i have a very long string like this: [ICODE]TGTGCAACGTATATTCCAACGAAAAACCTGGAGAAGAAAAGAATAAGTAAAATGAACTAGAGGCTGATGGCACAGTAAACACAAATGCCTGAAGTCAAAATACATTCTTTATAAGCCCAAAGCG[/ICODE] i want to convert it into array but i wanna split it by length of 5 array elements: [ICODE]array[0] = "TGTGC"; array[1] = "AACGT"; ..... array[n] = "AAGCG";[/ICODE] any idea? plz....... help thanks :)

Member Avatar for sathya88
0
309
Member Avatar for zaxahmed

I'm trying to draw the rhombus into each grid section of the 3x3 square grid. Both the codes are pasted. I've tried various methods but could not succeed. Any insight on this matter is greatly appreciated. Thank you. [B][U]3x3 square grid[/U][/B] [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class threebythree …

Member Avatar for NormR1
0
167
Member Avatar for abhinavM

I want to create a new variable with each run of this while loop the syntax of loop is [CODE]while(rs.next() && i<=num) { String str(i)=rs.getString(1); }[/CODE] I want that with each run the value of i should be appended with str so that with each run a new string variable …

Member Avatar for Majestics
0
11K
Member Avatar for Armanious

Hi guys, I'm trying to create a "pool" of data that once added to is saved on a public domain. For example, data is stored at "url.com/data.txt". data.txt: [CODE]18473,948263,384292,47239,[/CODE] Client 1 connects to some url (which I need help with, thinking some PHP) with data as arguments. Adds: 39458,359835 Client …

Member Avatar for JeffGrigg
0
147
Member Avatar for WishfulThinking

I am interested in a currency converter made from JAVA. I'm a beginner in learning JAVA programming language. I am thinking well I want the code to go out and get the current value of the US dollar and the current value of the EURO. Next I want it to …

Member Avatar for javaAddict
0
318
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Member Avatar for jingda
0
218
Member Avatar for abhinavM

I have a jsp page where I am accessing data from the database and showing the data in table on the browser with radio buttons in between.And then there is a submit button on whose click the control is transferred to a servlet where I reading the status of the …

0
78
Member Avatar for sheennave

Hi ! I've been trying to integrate hibernate with spring framework for a week by using hibernate annotations. I am using hibernate-distribution 3.6.5 final and Spring framework 3.0.5 in the application. Error log looks like as below which troubles me a lot. Any piece of idea will be appreciated, please …

0
227
Member Avatar for lena1990

hi i have combobox and list i want to put both of them in one border help me please

Member Avatar for lena1990
0
82
Member Avatar for Kimpl

I've been working on compression and decompression between Java and C#, using deflate and inflate. Everything else I tried produced varying results which were never able to be compressed/decompressed flawlessly between Java and C#. I tested out using DeflateStream (C#) to compress data, and InflaterInputStream (Java) to decompress the data, …

Member Avatar for Kimpl
0
226
Member Avatar for sheennave

Hi all, I'm using Hibernate, HSQL and Spring. But i have the following ugly errors. I don't know what to do. Any help will be appreciated. [code=text]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate …

Member Avatar for sheennave
0
412
Member Avatar for sirin_adam

Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I …

Member Avatar for sirin_adam
0
840
Member Avatar for ishwar panjari

hi sir, i am developing project in java for enabling and disabling task manager and usb-port. i search this in so many website but still i did not get code of this. i want code for window xp that is update value in window registry so i can achieve the …

Member Avatar for NormR1
0
61
Member Avatar for Majestics
Member Avatar for Ezzaral
0
93
Member Avatar for klenne

Hi, I'm trying to check the login. The values of id and pw are send from a textbox and the values of userid and password are from a mysql database. I try to compare them and if they are equal i want to return true and else return false. But …

Member Avatar for klenne
0
269
Member Avatar for kehayov

[CODE]public class TestMySource { public static void main(String args[]) throws java.io.IOException{ char ch; for (;;) { System.out.print("Please insert a char: "); ch = (char) System.in.read(); if (ch == '.') { break; } } } }[/CODE] output: Please insert a char: Please insert a char: Please insert a char: a Please …

Member Avatar for JeffGrigg
0
159
Member Avatar for betny

Hi,Someone please shade somelight about this- how arguments are to be passed from a run.bat file Thanks Best Regards Bethuel

Member Avatar for thines01
0
317
Member Avatar for vishal1949

I'm writing a program but I don't understand the question that well could someone help explain what I have to do. Also, I am having difficulty making the methods could someone help, because I am getting an error every time. This is the Question. Write a cash register class. It …

Member Avatar for thines01
0
2K
Member Avatar for zaxahmed

Hello all! I am a completely new to programming in Java and I was recently given a tutorial in which I was supposed to create a 3x3 square grid. I am attaching a file as to give you a clear picture of what I must do. I have no idea …

Member Avatar for hfx642
0
374
Member Avatar for Aviras

Hello everyone. I've been programming on a co-op RPG for quite some time now, but my networking side has seen some troubles. I'm using the lower level serverSocket-Socket way. Everything runs flawless within my own network, however connection over the internet is where the trouble is. I understand this is …

Member Avatar for Aviras
0
281
Member Avatar for anand01

Hai all, AM trying to connect java with database .I created class called data manager with several methods like setdburl(), getdnurl() ,etc.. i called the set functions inside another class and assign values. in set method i assigned LOCAL VARIABLE. when i call get url method it shows null value.. …

Member Avatar for anand01
0
143

The End.