36,051 Topics

Member Avatar for
Member Avatar for artemis_f

Hello, I don't know any Perl but I do know Java. I am studying about Push down automatas at the moment and wanted to make a simulator for myself. I have found some code in Perl that does it but I do not know how I can go about using …

Member Avatar for KevinADC
0
478
Member Avatar for Nina*

I.ve problem with java image processing.I've to convert 2d array into image.I'm using the loadPixels function, but it doesen't work.The Image is never shown on the label. Please help, here is the code of the loadPixels function: [CODE] public static void loadPixels(JLabel label, int[][] pixels) { // 1. convert to …

Member Avatar for Ezzaral
0
997
Member Avatar for teh noobshow

Hello, I currently code in java for a game. But it's a private server... Many people question my way of coding, but i dont. My way of coding is more simpler than the public boolean and public void... As most know for some games you need a class file and …

Member Avatar for javaAddict
-1
100
Member Avatar for JQuinn88

Hey I am trying to created a dice game that roll the dice twice and then ask the user if he/she thinks the next two rolls will be more than or less than the first two. After the third roll the program is then suppose to ask the user if …

Member Avatar for kjduke
0
142
Member Avatar for rakesh.mk

Hi I am trying get user info from the database into the textbox when i select Usename Which is stored in the drop down. so could any help how to get all usernames into dropdown and when i select any usenames i should get all details into the text box.........please …

Member Avatar for peter_budo
0
157
Member Avatar for 2o2

here is my calculator. it works fine, but for the love of god i cant figure out how to get the screen at the top, centered while the rest of the buttons follow the gridlayout pattern. any way? [ICODE] package Calculator1; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.*; public …

Member Avatar for VernonDozier
0
3K
Member Avatar for roshansimon

Hi, Im writing a program that will magnify diagrams (simplified version of the windows magnifier). If I have a buffered image (hard-coded) bufimag, what are the steps to do to increase pixelsize and display it. Well displaying is not a problem. just how to increase pixel size. No need to …

Member Avatar for roshansimon
0
82
Member Avatar for peter_budo

I'm working on an application that simulated process of writing text message on mobile phone. On the canvas I first draw already typed message. If any and on button pressed I retrieve correct set of characters. Here I'm able to loop through them and highlight currently active/selected character. However I …

Member Avatar for peter_budo
0
227
Member Avatar for MNR

Hey guys, the program has to wait until send button in jframe clicked then to get the text and put it in to queue and then send it to server using doInBackground method, also in line 65 i get a compile error which says that ther is nothin to override …

Member Avatar for MNR
0
171
Member Avatar for lordx78

[B]Eclipse IDE for Java Developers[/B] (85 MB) [B][COLOR="Red"]Vs[/COLOR][/B] [B]Eclipse Classic 3.4.1[/B] (151 MB) Just wanted to know. Please advise.

Member Avatar for lordx78
0
118
Member Avatar for carthikn

Hi, I need to read the file and print the content in the outlook express compose body using java. Any one knows any API or some component is available to do this please reply me

0
41
Member Avatar for Dancealot

Hi all. I have a problem sending a message in my program. I am able to receive a message, but not so send it. when I try to send a message I get the following error: Warning: To avoid potential deadlock, operations that may block, such as networking, should be …

0
56
Member Avatar for letlet_pogs

hello guyz,,is simpletron machine language??different from java language??i am confused,,we are about to make a program in simpletron but it's too hard to start,,

Member Avatar for stultuske
0
70
Member Avatar for Gerbilkit

I've been working on a homework assignment for a while now for my class, and right now I'm stuck on what should be a very simple problem. I have two files, EmployeeSystem.java and FullTimeEmployee.java. EmployeeSystem is the main, and is the file currently failing to compile. Basically in the method …

Member Avatar for Gerbilkit
0
108
Member Avatar for davidjonas

Hi! Just signed up and can't help to notice what a good forum you got going here!! congratulations! I am working on a project of educational software concerning sound editing and audio-video synchronization. I am researching the Java Sound API and it's been working pretty well but now I got …

Member Avatar for davidjonas
0
178
Member Avatar for chicago1985

I have a Form input field in my JSP:[code] <input name="nickname" type="text" value="<%= NameClass.getInfo() %>" /> [/code] How do I make sure this data is escaped correctly to be able to show quotes and apostrophes. I tried slash in front [b](name=\"nickname\")[/b] and it didnt work. I dont have JSF,Struts, JSTL, …

Member Avatar for javaAddict
0
90
Member Avatar for redflame777

I can't figure out why I am recieving error messages from the compiler that tells me that I have an illegal start of the expression for the code that is in red. I have also put the product class that goes with the main class; I'm not sure if the …

Member Avatar for redflame777
0
106
Member Avatar for cproud21

I have the following classes completed and have to create a driver that: rite a driver program to test your Clock class. The driver program should allow the user to enter both the current time and the alarm time. It should create one or more Clock objects to demonstrate usage …

Member Avatar for javaAddict
0
66
Member Avatar for cproud21

I have the following program to write: given the TimeAT class: The time class uses two integers, one to store the hours and one to store the minutes of a given point in time. Write a Clock class which uses TimeAT class objects to store the current time and an …

Member Avatar for javaAddict
0
131
Member Avatar for shijunair

I am facing problem while retrieving values from the jsp page. my database structure is as follows: ----------------------------------------------------------------------- m_emp_no|from_date|to_date|approver|status| ________________________________________ 1002 | 22/9/2008 | 23/9/2008|1003 |pending 1004 | 29/9/2008 | 30/9/2008|1003 |pending 2044 | 15/9/2008 | 16/9/2008|3076 |pending -------------------------------------------------------------------------- I am retrieving values from database properly using the following sql …

Member Avatar for shijunair
0
239
Member Avatar for letlet_pogs

hello guyz, do you know best sites to recommend about "JOPtionPane"?? i need to have more tutorials with this due to our next project..i hope you could help me guyz...thank you ahead..

Member Avatar for letlet_pogs
0
76
Member Avatar for orangejuice2005

I have this big operating system's project where I have to basically write my own mini operating system. I have everything broken into pieces and am taking it step by step. Starting with the loader. Prior to this class, I had no idea how intricate an OS system was and …

Member Avatar for orangejuice2005
0
264
Member Avatar for countrygirl1970

Hello, I am trying to get my cost, salestax, totalamount to come out in the output dialogbox to have only two decimals places. I know how to do on the printf but not on the dialogbox. Please help. Here in my complete code. [code] // Displaying multiple strings import javax.swing.*; …

Member Avatar for countrygirl1970
0
243
Member Avatar for SyLk

[CODE] import java.util.Scanner; import java.io.*; public class program1 { Scanner filescan = null; public program1(){ try { filescan = new Scanner (new File("t.txt")); } catch (FileNotFoundException fe){ fe.printStackTrace(); } } public static void main(String[] args)throws IOException { printFile(); } public static void printFile()throws IOException { int num; while(filescan.hasNextInt()){ num= filescan.nextInt(); …

Member Avatar for Ezzaral
0
185
Member Avatar for alsoumhi

Hi gys I hope you all fine I just have a question that I would send two UDP packets from the client to the server and the server will reply back the both messages to the client , my problem is that my program only sends one packet to the …

0
77
Member Avatar for tonymate

Hi friends I am newbie and working on multithreaded programming and thread synchronization in Java to control traffic. If you are familiar with multithreaded and thread synchronization, please email me for detail information: <EMAIL SNIPPED> Regards Tony

Member Avatar for Denniz
0
38
Member Avatar for mantoo

I have a form in jsp and if someone enters special character (like single quote ') in text field (ex L'orel) and submit, it gives a error. I know this is a special character conflict, but how can I override special characters by submitting a form through JAVA. Is there …

Member Avatar for mantoo
0
117
Member Avatar for Kamal_Java

Hi ... [ Need ur suggestion NOT code .... ] This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ... I have two classes Named Passenger class and container class . Passenger class …

Member Avatar for stultuske
-1
156
Member Avatar for cardanadam

Hello I want to do a program.And this program will do that i will give a list which have mirror urls.I mean i want to download same file from that urls.But i want to select which one is fastest mirror.I mean which is way to ask ftp sites are you …

Member Avatar for stultuske
0
77
Member Avatar for tonymate

Hi friends I am newbie, accidently posted this post on introduction forum. Anyway, I am working on multithreaded programming and thread synchronization in Java to control traffic. I was told that Java is easier with multithreading than C++. I don't really mind as long as it works as expected. Even …

Member Avatar for javaAddict
0
131
Member Avatar for blue_moon

> Write a method that converts its String parameter so that letters are written in > blocks five letters long. For example, consider the following two versions of the > same sentence: > > Plain: This is how we would ordinarily write a sentence. > Blocked : Thisi showw ewoul …

Member Avatar for stultuske
0
287
Member Avatar for MNR

i have two classes one is MyForm and the other one is MySwingWorker, i get a null exception which is related to line 36, i'm not sure what i have to pass to MySwingWorker class. please help!!!! [CODE=java]public class MyForm extends JFrame { public static void main(String[] args) { new …

Member Avatar for MNR
0
106
Member Avatar for Koldsoul

I am trying to compile my program on a Unix machine per my instructor's directions. I am getting two errors when I compile my interface. The two errors are cannot find symbol symbol: class OverFlowException location: interface Ch3Pkg.PracticeCollection<E> public void add<E element> throws OverFlowException; cannot find symbol symbol: class ElementMissingException …

Member Avatar for masijade
0
106
Member Avatar for Koldsoul

I am writing a program that uses two arrays, one holds int and one holds String. I am using an interface and building a class that implements it. The method in the interface uses a method written like [code] public void add(E element) throws OverFlowException; [/code] This method is to …

Member Avatar for masijade
0
84
Member Avatar for Koldsoul

Hello, I am writing a while loop that will run as long as the cell in the array is not equal to the object element. However, using the .equals method I cannot find a way to do so so that the loop uses not equals to compare the object to …

Member Avatar for peter_budo
0
108
Member Avatar for donaldunca

I want to ask are these things possible (I use J2ME) 1) Normally, when you make a call, you input a phone number and that phone number appear from right to left. Can I code that the phone number appear from left to right ? 2) For example, when I …

Member Avatar for peter_budo
0
179
Member Avatar for blue_moon

> Write a method that converts its String parameter so that letters are written in > blocks five letters long. For example, consider the following two versions of the > same sentence: > > Plain: This is how we would ordinarily write a sentence. > Blocked : Thisi showw ewoul …

0
80
Member Avatar for ajay.psd

i want to export list of DATA from my JSP page(code) to a pdf file... plz.. give me idea about it or sme example code in jsp that exports list of data from jsp page to pdf file.... thanks

Member Avatar for peter_budo
-1
97
Member Avatar for uravikishore

Hi, I Had to complete a task of program on networking in java. they are 1) the program as to read the MAC address, IP , and the computer name in the network 2) Program to know what site is the user is surfing in the network Please give me …

Member Avatar for peter_budo
0
75
Member Avatar for Symbi

I am designing a web application For running Automated test.I record the flow of an application (say yahoo.com) using Selenium IDE and exporting the test suite to java.So now i have a file For example login.java.The application i am creating is like i will have a browse button.i will browse …

Member Avatar for ankigupt
0
99
Member Avatar for winky

Hey guys, Been awhile since I've done any JAVA, so I'm looking for some help. I'm trying to implement a recursive descent parser with three terminals ( @ , ?, @@). I could use some help on a couple issues: 1) The @ operator is supposed to be a unary …

0
67
Member Avatar for ravikiran032

i would like to know what digits of ipaddress define. suppose ipaddress of 192.168.0.59 what these numbers 192 ,168 , 0 ,59 defines. does they have any value??

Member Avatar for peter_budo
0
91
Member Avatar for SonxQ7

Always get warning when using raw type Lists/Sets/Iterators etc. [code] public java.util.List /* <-- Warning here */ getUsersByAge(int minAage) { org.hibernate.Query q = session.createQuery("from User u where u.age >= :minAge"); q.setInteger("minAge", minAage); return q.list(); /* <-- Warning here */ } [/code] I've chaged this by [code] public java.util.List<User> getUsersByAge(int minAage) …

Member Avatar for vite
0
190
Member Avatar for janustt

Basically, I was wondering how I could read a text file (Transactions.txt) which will have one number per line(ex. 2000 on one line, 25 on another). This number is either a deposit or a withdrawal to a checking account. The program should read the Transactions.txt , then write the deposits …

Member Avatar for masijade
0
168
Member Avatar for deepa_vsd

Hi, I have opened Internet Explorer by using Process p = Runtime.getRuntime().exec(browserCommand+" " +url_name); Now I want to know how to close opened internet explorer using java program I used p.destroy() method, but it's not working.

Member Avatar for Ezzaral
0
160
Member Avatar for clueless101

This program is suppose to allow the user to enter a student's name and (4) scores via GUI, instead of Scanner class. The class is to use a String array for 5 names, an array of 5 characters to hold letter grades, and 5 arrays of four doubles for each …

Member Avatar for VernonDozier
0
176
Member Avatar for peter_budo

I'm trying to get character "2936" printed out ( it is the arrow on your big Enter of the keyboard) as seen in Unicode charts [URL="http://unicode.org/charts/PDF/U2900.pdf"]Supplemental Arrows B[/URL]. However it does show as question mark. Suggestions? [code=Java] public class PrintCharacters { public static void main(String[] args) { String[] one = …

Member Avatar for di2daer
0
115
Member Avatar for jvvfci

Here is the log from my main system. I have no idea, but it seems longer than the others here. Any advice? Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 8:01:58 AM, on 9/26/2008 Platform: Windows XP SP3 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16705) Boot mode: Normal Running …

Member Avatar for gerbil
0
199
Member Avatar for mohammed2raja

In php file I write ; echo "<meta http-equiv=Refresh content=0;url=login.html>"; Here i load a login.html file. Along this i want to pass a php variable(suppose $nflag) content to login.html file, so that i can use it in javascript within login.html file. Please Help me.

Member Avatar for cwarn23
0
1K
Member Avatar for Darklighter201

I need to finish this assignment by tonight. I have been working on it for the last five hours and I am completely stuck. Any help would be greatly appreciated! I have already talked to my teacher, but she is awful. No help at all. This is what I have …

Member Avatar for Darklighter201
0
76

The End.