36,051 Topics

Member Avatar for
Member Avatar for Littlen

Hi all Ive writing a simple j2me program to read from a file. Im running the midlet on a pda but im having trouble accessing the file. Im using J9 JVM on a Dell Axim, ive also installed the JSR-75 (which is need to access files), however im still having …

Member Avatar for Littlen
0
95
Member Avatar for Vach

Hey pls suggest a suitable topic for a final year project for the BSc. has to be feasible to do.. i have an average knowledge of Java. Thanks.

Member Avatar for jasimp
0
94
Member Avatar for Adila

i got until here.. [code=java] public class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent buttonEvent) { int delay = 1000; //milliseconds ActionListener taskPerformer = new ActionListener(){ public void actionPerformed(ActionEvent evt) { JFrame myFrame1 = new JFrame(); MySadFace sad = new MySadFace(); myFrame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); myFrame1.getContentPane().add(sad); myFrame1.setSize(400, 200); myFrame1.setVisible(true); } }; Timer test …

Member Avatar for Adila
0
217
Member Avatar for chandanapapa
Member Avatar for jwenting
0
106
Member Avatar for krish_kooll

how to obtain query execution time? i need for mysql query in java... does anyone know

Member Avatar for krish_kooll
0
85
Member Avatar for Techboy52

//Below i am trying to display a map onto my grid layout using the ImageViewer and I keep //getting a error cannot find symbol class ImageViewer. I really need to use this //ImageViewer because i need to use the x and y coordinate. I don't know any image //viewer display …

Member Avatar for darkagn
0
85
Member Avatar for deepak1234u
Member Avatar for darkagn
0
75
Member Avatar for parthiban

Hi all , I'm trying to do find and highlight program which finds a given word by highlighting it in the textarea. I'm finding the word in a textarea which has both vertical and horizontal scrollbars .if the word is with in the visible area everything is fine but if …

Member Avatar for masijade
0
81
Member Avatar for hkarthik

Hi everybody, I am new to j2me. Can anybody tell me how to start working with j2me.

Member Avatar for Samudricka
0
107
Member Avatar for Belisarius

Hi, Not sure if this is the best place to post this but here is the situation: I have 3 instances of tomcat running on each of ports 3030, 3031 and 3032. These all work fine. I'm using IIS as web listener and have installed the ISAPI connector. This works …

0
51
Member Avatar for aim

How to do programming in Image processing in java? I have searched on it.I got info abt JAI.But Can i get detail documentation or another library for image matching code in java. I want to match two JPEG images in java.That images are of birds. Can any1 help me out? …

Member Avatar for aim
0
113
Member Avatar for anifeelings

actually i stuck in this prog, not gettting it exactly, i want user to input natural no. of 4 digit and i want its all possible permutations of the number.. plz help me..

Member Avatar for anifeelings
0
97
Member Avatar for chicago1985

I have all my webapps in Tomcat 4.1.27. All of them were compiled using JDK 1.4. Now I need to move the Tomcat 4.1.27 webapps to Tomcat 6.0.16. Do I need to recompile all my Java class files using JDK 1.6 before I put them on Tomcat 6.0.16?

Member Avatar for jwenting
0
65
Member Avatar for KimJack

Hello All, How can I get the information that corresponds with the containsKey to be put into the hashtable. I am checking to see if a hashtable contains a key. If it does how can I put that key along with its value into a second hashtable. Snippet of code: …

Member Avatar for Ezzaral
0
122
Member Avatar for Samudricka
Member Avatar for jwenting
0
46
Member Avatar for D boss

hi guys, i am working on applets, below is a bit of coding i am working on, it compiles with out any problem, but when i run it i get an error msg saying: `"Exception thread "main" java.lang.NoSuchMethodError: main"` if any one can advice it will be appreciated a lot... …

Member Avatar for D boss
0
87
Member Avatar for Merumi

Hey guys I hope you can help me with this problem, its like a minor problem. ----PROBLEM----- I don't know how to generate the secret code... meaning if the input was: { c.println (generateCipherAlphabet ("COMPUTER SCIENCE)); } Above only outputs "COMPUTERSINQVWXYZABDFGHJKL" which is the cipher alphabet only I want it …

Member Avatar for darkagn
0
124
Member Avatar for DARKSTAR
Member Avatar for jasimp
0
557
Member Avatar for Noliving

I basically have the entire program done except for one little problem my maxDepth output is wrong! But the rest of the assignment is after your program gets the correct answers, add static variables calls, depth, and maxDepth to your class and add code to your implementation of Z to …

Member Avatar for Noliving
0
86
Member Avatar for chchchchanning

I am trying to fun a jar file that is on my desktop. I have been using [code] java -jar ProgramName.jar -nuc[file] [/code] and I get the error "unable to access jarfile ProgramName.jar"

0
74
Member Avatar for Kusno

Dear all, I have `textbox (txtTransDate)` that I set text to '2008-04-17' because mySQL accepts that format date. I want to change the format to "MM/dd/yyyy" 04-17-2008 to retrieve month and year. But the error is like this : `java.text.ParseException: Unparseable date: "2008-04-17"` int tahun =0, bln=0 ; String sBln=""; …

Member Avatar for jinternalframe
0
89
Member Avatar for 9107you

im new to java help me wit this question (you might think what the hell am i doin) question is: Using a series of methods, output the popular song "My Bonnie Lies Over the Ocean". However, instead of using "Bonnie", allow the users to enter a name of their choice. …

Member Avatar for javaAddict
0
127
Member Avatar for torbecire

I am having a problem with tokenizing "wddw". I can tokenize if they is a sign like (,). How can I tokenize this without getting an error. I have tried charAt(0), but it only gives me the first character. I want each character to be stored separately. I know about …

Member Avatar for Samudricka
0
96
Member Avatar for Jcw69

I have subscribed to a hosting acount that has jsp hosting, they use jsp 2.0 with the tomcat 5.5 server. i am using the netbeans ide to compile my jsp page etc using the tomcat server. my project uses JSF. i am battling to get it working on the site. …

Member Avatar for jwenting
0
91
Member Avatar for genji

hey guys I've been trying to connect this jsp site with MySQL database for a school assignment and I just can't seem to get it to work. It's getting really really frustrating because I have copied my friend's code(which does work on his pc) and for some odd reason it …

Member Avatar for jwenting
0
90
Member Avatar for Noliving

In this assignment you will implement the following recursive function in a ZFunction class. You must implement a main that will gather the parameters for the recursive function and display the result. Use JOptionPlane for the input and output. Given the function Z(x,y) where x and y are (small positive) …

Member Avatar for Noliving
0
167
Member Avatar for madhura09

how do in install and run java on red hat linux 9 we have already installed jre self extracting file but javac command to compile java files doesnt work we have already setpath are there any other terminal commands what is the meaning of javaconfig

Member Avatar for eggi
0
105
Member Avatar for CaffeineCoder

OK, this should be easy (in theory) but I'm having issues with the java applet showing up in the HTML. The applet works when I run it within the IDE, but when I try to run the applet, a message in the bottom left of the applet window says that …

Member Avatar for CaffeineCoder
0
122
Member Avatar for Merumi

public class GenerateCipher { /** To generate keyPhrase into cipher alphabet and secret code * @param keyPhrase keyPhrase to be changed * @return changed keyPhrase */ public static String generateCipherAlphabet (String keyPhrase) { //defines the variables and creates alphabet string String realStr = ""; String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String newStr …

0
68
Member Avatar for WalkmanXD

There is no pointers in Java, But how could java solve the problem of Dynamic Memory Allocation ???? [ As we know that pointers in C++ solve this problem ] Is there a solution WHAT is it ? and HOW to use it ? Please, explain with Examples... Thanks in …

Member Avatar for jwenting
0
248
Member Avatar for duongkhangth2

Hello everybody , Im created an Application in java . In that application i have to store data in a web Mysql database.How can i connect ?

Member Avatar for jwenting
0
68
Member Avatar for Beryl

[code=html]<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="com.py.db.*, java.sql.*" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="style.css"> <title>Registration</title> </head> <body> <% String id = request.getParameter("login_id"); String password=request.getParameter("password"); String email= request.getParameter("email"); DataSource ds = new DataSource(); ds.executeUpdate("insert into user …

Member Avatar for jwenting
0
98
Member Avatar for tte

Maybe a dumb question but is there a way to redirect/forward a form (and all it's parameters) to another host using jsp? Like this [url]http://www.xxx.com/form.jsp[/url] -> [url]http://www.xxx.com/redirect.jsp[/url] -> [url]http://www.yyy.com/response.jsp[/url] I've tried with sendRedirect which doesn't pass along the parameters and forward that for some reason doesn't seem to work with …

Member Avatar for jwenting
0
143
Member Avatar for Ankita B

Hi, I wish to save value entered by user in textbox in a session variable.my form contains many elements and i need to navigate back and forth.so i want to save the value once entered by the user in a session variable so that i can retrieve it and display …

Member Avatar for jwenting
0
1K
Member Avatar for Katherine692008

import java.io.*; public class k { public static void main(String args[])throws IOException { k s1 = new k(); s1.menu(); } public void menu()throws IOException { int input = 0; System.out.println("Pick from 1 of the following Options"); System.out.println("1) Twelve"); System.out.println("5) Exit "); System.out.println("Enter Number: "); BufferedReader br; br = new BufferedReader( …

Member Avatar for Ezzaral
0
133
Member Avatar for rajeshwarreddyt

Hi Folks, I have to print the error with line and error name using log4j property file so what property should i put in log4j property file so i will print error with line numbers! Regards, Rajeshwar.

Member Avatar for darkagn
0
90
Member Avatar for ravicsit
Member Avatar for darkagn
0
30
Member Avatar for ihtraa

[code] public void addRowsAntGrouping(){ Vector vectorAddRow = new Vector(); vectorAddRow.add(""); vectorAddRow.add(""); ((DefaultTableModel)jTableAntGrouping.getModel()).addRow(vectorAddRow); } [/code] Hi, I am in need of replacing the textfield of a table with combobox. the rows in the table are declared as vectors. there are two fields in the table. the first field is text and …

Member Avatar for masijade
0
92
Member Avatar for rajdotme

Hi, I understand, Socket.setkeepalive() enables the user to keep the socket alive. Here is an extract from the SocketOptions interface from the Sun site about the SO_KEEPALIVE variable: When the keepalive option is set for a TCP socket and no data has been exchanged across the socket in either direction …

0
51
Member Avatar for torbecire

We are supposed to read data from a file like [COLOR="Green"]2 2 0 0 w d d w 0 1 w w d d 1 0 d w w w 1 1 d w x d[/COLOR] The first two numbers represent the column and rows the rest of next two …

Member Avatar for torbecire
0
102
Member Avatar for Noliving

Here is the preorder: [code=java]private void preOrderTraverse(Node < E > node, int depth, StringBuilder sb) { for (int i = 1; i < depth; i++) { sb.append(" "); } if (node == null) { sb.append("null\n"); } else { sb.append(node.toString()); sb.append("\n"); preOrderTraverse(node.left, depth + 1, sb); preOrderTraverse(node.right, depth + 1, sb); …

Member Avatar for jinternalframe
0
95
Member Avatar for fnbhns

Dear Friend, I am new in Jave. right now I am learning APPLET but When I am trying to use THREAD in applet its giving the following warning after compilation. Note : Java Uses or Overloads a Depricated API. Note : REcompile with -XLint : Deprication for details. Tool Completed …

Member Avatar for fnbhns
0
80
Member Avatar for ntdaycott

I have a student class and also a cohort class. I need a command to find a certain student aStudent, bStudent etc but are unsure of the right way to do it Thanks in advance [import java.util.*; public class Cohort { private static int groupSize = 15; private HashSet aCohort; …

0
67
Member Avatar for raju123007

i posted a problem here a while back on doing a program, and i got the help i needed... but i'm faced with another problem. this code seems to be working fine but i want it store the values i entered into another text field... i cant seem to figure …

Member Avatar for Ezzaral
0
190
Member Avatar for juxD

Hey everyone, I've written an application with an animation using the Timer object. In order to stop the animation I call the stop method of the Timer class. From what i've read this just pauses the timer. My problem is that if i display the animation once it displays well. …

Member Avatar for Ezzaral
0
71
Member Avatar for shaikh_mshariq

Hello To Every One I have transformed xml document using servlet now i need to know how can i transform xml document using jstl. I have found this code very often but it doesn't work with a relative or absolute url. I need to pass parameters dynamically. [CODE]<c:import var="xml" url="<%=xmlFile%>" …

Member Avatar for jwenting
0
135
Member Avatar for torbecire

I have these two classes Maze and MazeCell. I have a problem with the Maze constructor in Maze Class and do not know how to access it, or test it. Does Maze N = new Maze(row, col) do anything. I know it's supposed to set it as the length of …

Member Avatar for parthiban
0
287
Member Avatar for cage

Hello, guys. I'm very new to Java and this is my first time I'm actually programming by myself. I have a homework due soon. Anyways, my question is: Write a program that asks the user for a word to replace in some text, and the word to replace it with. …

Member Avatar for Ezzaral
0
816
Member Avatar for Kusno

Dear all, I have these code below (netbeans) : All cells in columns "saldo Awal" are set to 58000000000.00, but appear in cell is 5.8E9 What should I fix in my code ? Thanks, Kusno import javax.swing.DefaultCellEditor; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.DefaultTableModel; import java.awt.Component; import java.text.NumberFormat; import javax.swing.JTable; import javax.swing.JOptionPane; import …

Member Avatar for Ezzaral
0
106
Member Avatar for Adila

how do i reset the applet? i thought that it would work if i call the method itself thanks [code=java] private class ButtonListener1 implements ActionListener{ public void actionPerformed(ActionEvent e){ myButton1.setBackground(Color.black); int answer = JOptionPane.YES_OPTION; answer = JOptionPane.showConfirmDialog(null, "BOOOoooM!!! Would you like to play again?", "", JOptionPane.YES_NO_OPTION); if(answer == JOptionPane.YES_OPTION){ LoanApplet …

Member Avatar for Adila
0
728

The End.