35,618 Topics

Member Avatar for
Member Avatar for deftech69

I have a question about handling binary files. I am trying to create a method called read in a user defined class called Record that will handle the data from the file. Each record has 84bytes and the first 20bytes is a String, and the rest, 64bytes is for 16 …

Member Avatar for ~s.o.s~
0
144
Member Avatar for Ghost

Hi, I was wondering if there was a way to compare two images for similarity (i.e. checking to see if signature is same as signature on a credit card). Thankx in advanced. -- C++

Member Avatar for JavaHelper
0
2K
Member Avatar for jonnybgood

Hi, I need your help. I'm searching for very tough JAVA tests over the net. Can you send me links of such a tests. Thank you!!!

Member Avatar for Salem
0
51
Member Avatar for Draculaboy1014

I have to do this simple project: (a) A new project named LetterCountExample (b) A main class for the project named the same of the project. (c) A class called LetterCounter, with the following members: i. A eld of type char named letter. ii. A method of return type int, …

Member Avatar for tux4life
0
117
Member Avatar for jogendar

i have used the following code to save the text in a textpane into a file [code] final RTFEditorKit kit = new RTFEditorKit(); jta.setEditorKit(kit); jfr.setTitle(fname.getName()); OutputStream out = new FileOutputStream(fname); kit.write(out,doc,0,doc.getLength()); out.close(); [/code] where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is …

Member Avatar for jogendar
0
73
Member Avatar for eikal

hi, this is a program where you type a name of a class and it gives a brief description, what i want to do is after it gives the description of a class it goes back to the beginning of the script and asks you to enter another one. How …

Member Avatar for verruckt24
0
240
Member Avatar for Namrata.Bibodi
Member Avatar for Consus

so this is my first homework ever in Java so heres what I need to do: 1)a project named LetterCounterExample(done) 2)a main class for the project of the same name as the project (done) 3)a class called LetterCounter (done) with the following members: i. field of type char named letter …

Member Avatar for javaAddict
0
115
Member Avatar for Jagan Mohan Rao

hi friends , How to establish a wired mesh network of our own in na lab. Also, i need a code for the project entitled "Heuristic algorithms for designing self-repairing protection trees in mesh networks". can any one help me out in this issue. i don't want simulation results. i …

Member Avatar for peter_budo
-1
88
Member Avatar for muusa

hello friends. i would like to know if it is possible to run a class file using a java program itself.i mean a program tht would return the answer (run) the class file .

Member Avatar for muusa
0
169
Member Avatar for adam291086

Hello i am new to java and playing around with some scripts. I have three java files [B]Main.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class Main{ public static void main(String[] args) { new board(); } }[/CODE] [B]board.java[/B] [CODE]package snake; import javax.swing.*; import java.awt.*; public class board extends JPanel { …

Member Avatar for Stefano Mtangoo
0
162
Member Avatar for axn

cant figure out why summaryCounter wont increment?? [CODE] if (source == calculateButton) { int summaryCounter = 1; double payment = Double.parseDouble(paymentTextField.getText()); double rate = Double.parseDouble(rateTextField.getText()); int years = (Integer)yearsComboBox.getSelectedItem(); DecimalFormat currency = new DecimalFormat(" ##,##0.00"); double futureValue; String s; int i; futureValueListModel.clear(); System.out.printf("\n Investment Summary Option %d \n Monthly Payment%,10.2f\n …

Member Avatar for verruckt24
0
102
Member Avatar for anevins

I need to create a program that uses the String classes to read the suffix .txt and if true, return the sentence inputted, but if false return another sentence. I'm unsure of which boolean method I will need to use to execute this. Can anyone help me? Here is my …

Member Avatar for verruckt24
0
102
Member Avatar for jch02140

I am trying to make a simple chat program with the username in a certain font styles while the chat text in default. However, the results is both the username and the chat text have the same style... What did I go wrong?... I have also tried to look at …

0
54
Member Avatar for Memo..~

Hi everyone.. I wrote this program but I could not get the panels as what I arranged them.. also I don't know what's wrong with the scrollbar cuz I couldn't get the concept of it very well.. [CODE]import javax.swing.JFrame; import javax.swing.ImageIcon; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; import …

0
62
Member Avatar for Filipov

I need help with my JAVA homework, i need to make a java program about making a diagram, or diargrams of any kind graphic diagrams about any kind of data.

Member Avatar for Ezzaral
0
66
Member Avatar for Shmoil

Hello. I am new to jave so please forgive my newbishness. I've used Netbeans IDE 6.0 to construct a GUI for my project. However I have ran into a few problems; 1. I cant seem to get a jButton to change the text of a jLabel. (im trying to get …

Member Avatar for Shmoil
0
112
Member Avatar for stahlsta210

Working no something for school and keep getting this. \\filesvrcls\2011\stawil\Java\midterm2.java:37: illegal start of expression public static int numsum(int a, int b) ^ \\filesvrcls\2011\stawil\Java\midterm2.java:60: class, interface, or enum expected } Process completed. [CODE]//*********************************************************** // midterm2.java Author: Will Stahl // // demonstrates Keyboard class //*********************************************************** public class midterm2 { public void main(String …

Member Avatar for masijade
0
103
Member Avatar for stahlsta210

Stuck again. could use some help from the community. [CODE]// This program accepts a height and a radius from the user // It uses a subroutine to calculate the volume of the cone // The formula is v = (3.14 * r * r * h)/3 public class Midterm { …

Member Avatar for Zaad
0
126
Member Avatar for Memo..~

Hi everyone ... I hope that all of u r OK... This is the second semester for me in JAVA .. I have an assignment to create a GUI using JAVA and I almost finish but the problem is the teacher asked to use any component that she didn't teach …

Member Avatar for Ezzaral
0
153
Member Avatar for feoperro

Hi, I'm having a problem debugging a piece of code. I will paste the JSP version (that works) and then the exact same thing in Servlet form (that does not work). The code's function is to change a picture on mouseover and then revert onmouseout. I will paste for only …

Member Avatar for feoperro
0
204
Member Avatar for fardoonmuhafiz
Member Avatar for joehms22
0
76
Member Avatar for mice1793

I have tried many things obviously not everything or it would work, but i need your help. i have run out of ideas on how to fix this. im programming a fishing database where users enter the data and over time it collects and shows them were the type of …

Member Avatar for cale.macdonald
0
161
Member Avatar for jogendar

i created textpane and added undo manager like this... [code] final JTextPane jta; jta = new JTextPane(); jta.setEditable(true); final UndoManager manager = new UndoManager(); jta.getDocument().addUndoableEditListener(manager); [/code] and undo button was coded as [code] ImageIcon undo = new ImageIcon(getClass().getResource("images/undo.png")); final JButton bundo = new JButton(undo); bundo.setActionCommand("undo"); bundo.setToolTipText("undo"); ActionListener act_undo = new …

0
58
Member Avatar for Izarian

Hey guys, I'm working on converting some existing Java Code over to C++, trying to use only built in standard libraries because the platform we are building on we won't be able to have any outside libraries, and it's been a while since I had to write "fancy" c++ code …

Member Avatar for Izarian
0
135
Member Avatar for shashwatk

[code=jsp]<%-- Document : response Created on : Jan 20, 2010, 11:34:37 AM Author : srishi --%> <%@page import="java.sql.*"%> <%@page import="java.io.*"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!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"> <title>employee data entry</title> </head> <body> <form action="response.jsp" method="get"> <center>Employee Data Entry Page</center> <table …

Member Avatar for sank_03
-1
95
Member Avatar for Aish_V

Is it possible to populate a treeview by reading the nodes of XML? It is for web application. Without using swing is there any other method? If so.. Please share with me.. Thanks in advance Aish

0
61
Member Avatar for kiroyzki

C:\Documents and Settings\Elliona\Desktop\kirby>javac payrollsystem.java payrollsystem.java:166: '}' expected filter.close(); ^ 1 error here is my full code [CODE]import java.io.*; import java.util.*; public class payrollsystem{ public static void main(String args[]) throws Exception { File employee = new File("employee.txt"); File dtr = new File("dtr.txt"); PrintWriter pw = new PrintWriter(dtr); Scanner filter = new …

Member Avatar for musthafa.aj
0
100
Member Avatar for yasmena

Hi, I'm learning aspectJ and was wondering how can i use the Plugin in Eclipse IDE ..i Googled alot but nothing helped me !! i downloaded the Plugin fom the eclipse site but can't find an aspectj project when i open eclipse and try a new project i'm supposed to …

Member Avatar for yasmena
0
54
Member Avatar for lordx78

Hi there, I'm unable to run the demos java files. I followed the ways according to the prefuse tutorial. It says, 1) Go to "build" folder 2) Launch demo of interest java -cp prefuse.jar:demos.jar prefuse.demos.<name of demo here> and I inputted e.g. java -cp prefuse.jar:demos.jar prefuse.demos.TreeMap.java Please advice. [COLOR="Red"]*Screenshot Attached![/COLOR]

Member Avatar for fleure
0
104

The End.