32,199 Topics

Member Avatar for
Member Avatar for Sp!ke

I'm learning Java right now, and one of the projects I've been working on as practice lately is just a simple text editor (using Swing). The one thing, though, that I can't for the life of me figure out, is how to add scroll bars to the text box if …

Member Avatar for iamthwee
0
263
Member Avatar for mgland

I have a project that I am working on for 5 days, and I am stuck. I have been able to generate some numbers, but no based on the instructions below. Can you please provide some assistance on what I missing and what I need to do to get this …

Member Avatar for aniseed
0
167
Member Avatar for madrasparty

hello currently i have joined in a software company in bangalore. i have knowledge in jsp and servlet. in my company core java is needed. i dn have tat much knowledge in java . kindly help me to get source code from online. wat r the websites available. how to …

Member Avatar for masijade
0
107
Member Avatar for jmsnclr

:-|Hi all, I'm new to programming and I've been learning on my own. I seem to be writing way too much code for simple exercises. I just finished one where all they wanted was to convert your change into a total dollar amount. I went ahead and created a method …

Member Avatar for jwenting
0
80
Member Avatar for ronakp25

I am running my application over websphere. Application consists of fronthand and backhand.But when I make changes in backhand i need to restart my server which takes too much time .My whole backhand is in .jar file and fronthand is in .ear package. This is automatically created during build process …

Member Avatar for jwenting
0
144
Member Avatar for bartek20

Hi, i just started taking java in uni and im a little stumped, our assignment is to do this. Complete the body of the following method, as indicated by the comment: class Q2 { /** Sort the 'partially sorted' array 'p' into nondecreasing order. Requires: 0 <= i <= p.length …

Member Avatar for jwenting
0
75
Member Avatar for ryy705

Hi, I want to learn how to build web services with java. I am starting out by installing all the neccessary software. I am following directions from a book. However, tomcat is installed twice in the book's example. The first set of direction is labeled Servlet container and tomcat is …

Member Avatar for jwenting
0
122
Member Avatar for cassyjack

I'm really need help with this one. Im totally lost. I have to crete a class that models a Library. It lets the user add, print, borrow and return books to the Library. I guess my problem is that I really do not understand arrays. I needs to create a …

Member Avatar for Infarction
0
113
Member Avatar for cassyjack

I have to rotate numbers an array. Example:`{5, 6, 7, 8} ==> {6, 7, 8, 5}{5, 6, 7, 8, 9, 10} ==> {6, 7, 8, 9, 10, 5}` This is what I have. It works for the most part to rotate the numbersbut I can't seem to rotate the first …

Member Avatar for cassyjack
0
141
Member Avatar for ronakp25

I am using 2 .ear files. One file contains the EJBs and the other .ear file contains the application that calls the EJBs in the other .ear file. now the problem is that when i deploy the 2 .ear files on different machines and run the application it works fine …

Member Avatar for jwenting
0
110
Member Avatar for cronous

Hello again, I've been trying this coding for weeks now and have no idea where the bug is.... Could someone help me? :mrgreen: import javax.swing.joptionpane; public class homework7{ public static void main(string args[]){ //prompt user to insert a value of signal array String getsizearraystring = Joptionpane.showinputdialog(null, "enter a value for …

Member Avatar for cronous
0
87
Member Avatar for greywolf

Hi, I would like to create a simple chat program. Could you advice me which Java technology should I best look at. I did a tutorial from sun.com about Socket programming. Do I use this for such a simple chat program and if yes, how do I connect two clients. …

Member Avatar for jwenting
0
93
Member Avatar for makingit52000

my java applet failed on yahoo.. can someone tell me what to do so as i can start downloading games again :cheesy:

Member Avatar for aniseed
0
63
Member Avatar for *Alice*

Hey guys, For one of my assignments, i got this little exercise: "[COLOR=#000000]Add at the class Rectangle a method move(Point p) which[/COLOR] [COLOR=#000000]moves the rectangle in the point indicated by the parameter, a method[/COLOR] [COLOR=#000000]translate(int x, int y) which translates the rectangle to the right[/COLOR] [COLOR=#000000]along the 0x coordinate axis …

Member Avatar for thekillerkat
0
75
Member Avatar for cronous

Someone Please help me, I've no idea y it doesn't work?? :confused: import javax.swing.JOptionPane; //Program uses JOptionPane public class Homework5 { //Main method to begin Java application public static void main (String args[]) { int NumberWord1 = 0; int NumberWord2 = 0; //User Enter's the 1st word String Word1 = …

Member Avatar for cronous
0
122
Member Avatar for Prashmon

import java.io.*; import java.awt.Frame; import java.awt.FlowLayout; import java.awt.Color; import java.awt.Insets; import java.awt.Dimension; import java.awt.event.WindowListener; import java.awt.event.WindowEvent; import java.util.Enumeration; import javax.comm.CommPort; import javax.comm.CommPortIdentifier; import javax.comm.SerialPort; import javax.comm.NoSuchPortException; import javax.comm.PortInUseException; public class BlackBox extends Frame implements WindowListener { static int portNum = 0, panelNum = 0, rcvDelay = 0; static SerialPortDisplay[] portDisp; …

Member Avatar for aniseed
0
159
Member Avatar for cassyjack

Does anyone know why I am getting an NullPointerException:Null error for this method? [CODE] public int[] checkISBN() { String letter; int[] isbnCheck = new int[9]; for (int i = 0; i < 9; i++) { letter = isbn.substring(i,i+1); isbnCheck[i] = Integer.parseInt(letter); } return isbnCheck; [/CODE] This is the specs for …

Member Avatar for jwenting
0
115
Member Avatar for khoomy
Member Avatar for mattyd

Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to …

Member Avatar for mattyd
0
237
Member Avatar for cassyjack

I need to create a printing method. Once I call the method it will print the following code. [CODE]static Book1 a = new Book1("Miasha", "Secret Society", "Borrowed", 743281586); static Book1 b = new Book1("Omar Tyree", "What They Want", "On Shelf", 743228695); static Book1 c = new Book1("Eric Jerome Dickey", "The …

Member Avatar for cassyjack
0
141
Member Avatar for sandip.bhoi

Dear all, i am having a JTable, in which a column of each row is having a checkbox field. If the checkbox is checked then and then i should be able to modify the cells in that row, ...where the checkbox is. I have created the table with AbstractTableModel of …

Member Avatar for sandip.bhoi
0
158
Member Avatar for skramath

Please Help me to access serial port using java. I downloaded javax.comm.*.But still not working.I am using windows Xp as Os.Please Advice me to get The serial port...Also what set up i had to do before coding.... Thanks in Advancee

Member Avatar for aniseed
0
35
Member Avatar for ScatmanTom

Hello there! I'm new here, like to say hello to you all. I'll probably be needing help on plenty more themes soon as I'm looking to continue this subject alone when the Semester finishes. I'm studying Java and just can't get my head around Multithreading. Wonder if anyone could help …

0
53
Member Avatar for cassyjack

Hi I need some help.... Here is what Im trying to do....I havent worked with java in about 4 years. I have created a JOptionpane showInputDialog with a list of options to choose from inside a method. What I want to do next is once one of those options is …

Member Avatar for cassyjack
0
132
Member Avatar for totengtoh

guys, i am making a program in java. i have to use a sorting agoritm. i manage to get some from the internet but it seems that they are too technical and hard to understand and i dont know where to put them and how to use them. here is …

Member Avatar for totengtoh
0
128
Member Avatar for stevetook

Hello, I have three classes: Circle, Canvas and GameBoard. When I try to compile this I get the error `'cannot resolve symbol - constructor Circle(int,int,java.lang.string)'` I noticed if I delete the parameters of the Circle it will compile. Please could anyone tell me why it doesnt understand the parameters? Do …

Member Avatar for peter_budo
0
198
Member Avatar for yatishkarkera

hi everybody i am wrking on my final projrct n am facin problem in dynamic generation of any component on a click of a button.I mean in a frame there is a textbox n a button.Now if the user wants to add another textbox he clicks add button and a …

Member Avatar for jwenting
0
31
Member Avatar for BobbyBB

Im REALLY new to Java Programming and wanted to teach myself java. I download the newest version of the JDK from the website and have run into the javac problem. I keep getting the error that javac is not found or its not a operable program. (Something like that.) I've …

Member Avatar for BobbyBB
0
111
Member Avatar for fastmike

my program will ask the user his last name and his first name. after that it will do a search to see if the last name and firstname matches with the list. if it does then it prints out the phone number if not then it will say name not …

Member Avatar for fastmike
0
620
Member Avatar for mahul000

String serverName = ? String portNumber = ? String sid = ? Plz answer my above queries , while conecting with oracle 9i and Java.... its urgent !!!

Member Avatar for jwenting
0
147

The End.