how to hieghlight ant row on its value change

307 byte By martin1 at 2007-11-20 8:58:02
hi all,i am making an application in which the rows of jtable are getting updated from live data coming from forex market my problem is that i wanst to make the row highlight as soon as the data changes and goes back to normal condition after few minutes plz sujjest me.thanks in advance...

Change the padding of a panel

222 byte By Invader Zim at 2007-11-20 8:58:08
Is there any way you can change the padding of a panel? My problem is as follow : I add one panel to the other , but the space between the inner panels upper border is to far awy from the upper border of the outside panel.

Error in line of code

247 byte By __gini2 at 2007-11-20 8:58:17
I have created a class which has this line of code :<br/>private Class class;<br/>But an error message pops up saying:<br/>identifier expected and both Class and class are highlighted.<br/>Why is this and how do I resolve them.

Abstract Methods - Whats the point?

590 byte By Kai Dao at 2007-11-20 8:58:35
I've just started going through Barron's AP comp sci prep book and I'm on chapter 2 with inheritance and polymorphism. Well, I was reading through the section on Abstract classes and methods, and I was just wondering, what's the point of them? If you declare an abstract method in...

Creating a stack with data

516 byte By __gini2 at 2007-11-20 8:59:18
I have to create a class 'Dear' that has a stack that will allow addition of 'event' information into it. The event information will include event type and date of event. All the data has to be sorted automatically while it is being added into the stack.Please help me with this b...

Linking code to GUI Interface

495 byte By __gini2 at 2007-11-20 8:59:19
I have a GUI Interface with Add, Edit, Delete, Filter, Sort, Search methods.How do I connect the coding for each of the methods above to the GUI Interface so that when the buttons are pressed, the correct method is called and the required output is seen.Let's say that I want to add an informati...

Calling a class in another class

1021 byte By __gini2 at 2007-11-20 8:59:32
I have 2 classes, Event and Dear. I have created Event class with two variables which are Date and Type of Event. This class is known as the ADT Event class.Another class Dear, has variables name, hphone, email, type of relation and event(which is supposed to be a stack).How do I write the proper co...

Calling a class in another class

1021 byte By __gini2 at 2007-11-20 8:59:39
I have 2 classes, Event and Dear. I have created Event class with two variables which are Date and Type of Event. This class is known as the ADT Event class.Another class Dear, has variables name, hphone, email, type of relation and event(which is supposed to be a stack).How do I write the proper co...

how to handle event upon textfield

283 byte By martin1 at 2007-11-20 8:59:58
hi all,<br/>i am making an application in which i am using jtable i wants to make few collums of this jtable to be editable and when i enter some values and press the enter button i wanst to save this values into database how can i do that plz sujjest me.<br/>Thanks in advance.

jsp, getAttribute

763 byte By derok at 2007-11-20 9:00:00
Hi, I have this Enumeration method,<%! Enumeration Enumeration123() { return elements123.elements();}%>and then i asign that method using the setAttribute.<%request.getSession().setAttribute("test",Enumeration123());%>Then, in another jsp, i am calling that method with:<% En...

seeking a read binary file example

940 byte By zhshqzyc at 2007-11-20 9:00:08
I mean "Convert the binary stream to a string" after I read a binary data file. this is my codeimport java.io.*; public class MainClass { public static void main(String args[]) { int readBytes; byte[] data = new byte[1024]; try{ FileInputStream in = new FileInputStream("plotdata")...

Java applet issues with jar file with WAMP5.

1642 byte By mirthen at 2007-11-20 9:00:20
not 100% positive this would be the right place to ask, but im fresh outta ideas.i have a jar file containing several .class files. now when i load this up on my professional webhosting it loads and runs fine. java console shows it grabbing the .jar and then just runtime things. now, when i try to r...

TLS connections in Java 1.4.2

559 byte By Victor Kulichkin at 2007-11-20 9:00:59
Hi guys,Sorry for the stupid question.I need to write an app for NetWare, which have to use TLS protocol for data transfer. My problem is that NetWare server has an old JVM - 1.4.2, which has not TLS support. I cannot set the last SDK (1.5 or 1.6) on the server, because the OS does not support i...

Problem with PreparedStatement.setTimestamp, ODBC & timezone

2238 byte By Martin O at 2007-11-20 9:01:30
I'm having a problem with PreparedStatement.setTimestamp. I'm trying to set a timestamp in a MSSQL table using GMT timezone, so I'm using the version of setTimestamp that lets me specify a calendar (void setTimestamp(int parameterIndex, Timestamp x, Calendar cal)).The problem I'm...

Size of object?

2977 byte By voidflux at 2007-11-20 9:01:45
Hey guys I was wondering if its possble to figure out how big an object is.For instance, here's my message object class:public class Message { String Identifer; String Serial; String Node; String NodeAlias; String Manager; String Agent; String AlertGroup; String AlertKey; String Severity; Stri...

rotate an image

192 byte By Dash_Riprock at 2007-11-20 9:02:20
I need to rotate an image. I dont mean rotate a Graphics or Graphics2D object, as Ive been able to find plenty of guides for that, but actually have the Image rotated. Thanks for any advice.

add image to gui

307 byte By vivendi at 2007-11-20 9:02:53
Hello, i want to add an image to my gui but i cant really figure out how to do this.I did find this:ImageIcon image = new ImageIcon("image.jpeg");jpanel.add(image, BorderLayout.North);But i want to be able to place my image by setting the pixels. Any idea how i could do this??...

strings of numbers?

4071 byte By redgto4u at 2007-11-20 9:03:08
I'm not sure if that's the best title for this, but here goes... I am trying to figure out a way to output a delivery number given certain inputs.Those inputs are the year (yyyy), month (mm), and delivery number in that particular month (000). Then with those inputs I need to output my 6 d...

new interface programming technique

664 byte By ALADINI at 2007-11-20 9:03:09
Hi My name is Paolo and I'd like introduce you to ALaDIn Interface programming technique. ALaDIn is a new revolutionary programming technique to build powerful man machine interfaces, well suited for mobile phones, car navigators but also washing machines and big domestic appliances. ALaDIn is...

Float to byte/int

1093 byte By ct5845 at 2007-11-20 9:03:19
Hi i was wondering if anybody can give me any guidance on how to turn a float number into a 32-bit integer representation of this float. For example the string '\n' is converted into '10' then padded out to 32 bits with 3 '0''s, i need the same for a float number....

reverse function help

3903 byte By Shlinka at 2007-11-20 9:03:54
I am trying to add a new member function of reverse( ) to reverse the order of the elements in the list. I added a reverse function with no errors, but doesn't seem to look right. Can anyone look at this and tell me if it is right. If not what should I do.class LList implements List { // Linke...

help with images in game

717 byte By Dash_Riprock at 2007-11-20 9:03:57
I am trying to make a space game that involves .gif image of the space ship rotating around. While I can get the image to rotate, the transparent parts of the image become black when I do, so the ship becomes a black box with the image in the middle of it floating around. Heres how Im currently rot...

RXTX cant send out AT commands properly?

871 byte By yeya at 2007-11-20 9:04:13
My company has some need of sending out SMS from a Java application via the serial port. The GSM modem accepts AT commands, however when I use RXTX (gnu.io), although it can find the port and open it with no problem, there's no response from the modem after some AT commands are sent to it. Howe...

multiple digit KeyEvents

779 byte By Porrum_Doctum at 2007-11-20 9:05:15
Being quite new to java and programming in general, I was experimenting somewhat with keyevents. I met the following problem: I'm using CTRL+the number keys to insert a certain item from an array in a textfield, however, there are more than 10 items in my array, and I only have 9 single numbers...

Binary Trees

393 byte By kimstanely at 2007-11-20 9:06:20
Hi,I am trying to transverse throught the binary tree, but i am having problems implementing preOrder transveral. What i need to do is as i go through the nodes in preorder i need add them to arraryList and then iterate over them, i don;t know how to implement it?public Iterator pretOrderIterator(bo...

Simple Doubt please..

128 byte By creativehacker at 2007-11-20 9:06:34
Why should we save the .java file with the name of the class (which contains main())<br/>Can't we give some other name..???

Java messenger

3269 byte By yukix_08 at 2007-11-20 9:07:04
I'm having problems with my java messenger. i used netbeans to create the interface._______________________________________________MouseAdapter popupListener = new MouseAdapter(){ public void mouseClicked(MouseEvent e) { userOptions.setVisible(t...

Dynamic array length

217 byte By zhshqzyc at 2007-11-20 9:07:08
I will use a array. But I don't know how is the size. The size will be depands on the different input file. Probably it has millions of elements.<br/>Do I need to declare and create it in advance?<br/>Thanks

dynamic variable names

345 byte By attilio at 2007-11-20 9:07:12
Hey,Im trying to write a dynamic variable name into Java but im not quite sure how. This is what I have so far:for(int i = 0; i<100; i++) {String[][] MyProgram["string"+i] = New String[100][10];}What I want this code to do is create the variable: MyProgram.string1 as a new String for all numbers...

Dynamic vs Static iterator.

1071 byte By kimstanely at 2007-11-20 9:07:16
Hi,I am suppose to implement a Dynamic iterator, i did but i am not to sure if it is the correct way to do it, could someone please let me know if this is correct.import java.util.*;public class PreOrderIterator implements Iterator { private BTree tree; private Stack stk; // constructor public PreOr...

read hard disk serial number

139 byte By GremlinSA at 2007-11-20 9:07:19
A Good example of using JAVA to get what you need... ( http://forum.java.sun.com/thread.jspa?forumID=31&threadID=683640)<br/> <br/>Gremmy...

Display console outputs in MFC via JNI ?

527 byte By Michael77 at 2007-11-20 9:07:32
Hello all,I have to start a java program from inside a MFC application.I already achieved setting up a JVM thread within the MFC applicationand starting the java program by calling its static main method.But now I would like to have javas console outputs displayed in a text-window of the MFC applica...

Applet, why nothing

10402 byte By zhshqzyc at 2007-11-20 9:07:42
Hi, I am designing a gui which contains a Jslider, a JCombox and polygons.but nothing can't be seen. No compile errors.I guess it's the structure problem.Any advice, THANKS.The import java.io.*;import java.util.List;import java.util.ArrayList;import java.util.LinkedList;import java.util.Li...

Screen Capture

445 byte By viggu at 2007-11-20 9:07:51
Hello AllI am developing an program that will let the user to select any part of his screen using mouse and then should be able to capture that region. In java, there is a possibility of taking screen shot of the entire screen. (java.awt.robots). Is there any way i can narrow this down to user selec...

can anyone tell me, from where I can start learning Java

185 byte By pragashan at 2007-11-20 9:07:52
There are somany tools and way. I confused every think. starting from writing code in editer or netbeans.<br/>Can any one tell me the way?, any suggest website to learn about this.

for some reason, after I send my first string via socket, the rest are cutt off?

4893 byte By voidflux at 2007-11-20 9:07:59
Hello everyone.For some reason when I send my first string through the socket, everything works fine. But after that Its cutting off the first 2 or 3 characters of the string and I have no idea why because I'm flushing the output buffer before and after I send the the string to the output buffe...

Compile with ant in Eclipse

391 byte By dummyagain at 2007-11-20 9:08:22
I am using Eclipse 3.3. I would like to know how to compile the program with any in Eclipse. I try to search some pages like http://www.mobilefish.com/developer/eclipse/eclipse_quickguide_ant.htmlbut i cannot locate the files like ../eclipse/plugins/org.eclipse.jdt.core_3.0.1/jdtCompilerAdapter.jar....

changing the contentPane of a JFrame

716 byte By IOException at 2007-11-20 9:09:14
I have a JFrame with a contentPane set in it and it works fine.What i want to do is declare another set of components simultaniously, inside their own contentPane and set the program to change the displayed contentPane to the new components.....public example() { /** declare many GUI...

Two days on JSlider and Combobox

188 byte By zhshqzyc at 2007-11-20 9:09:58
Hi, I want control my graph by select JSlider and Comboxbox such as zoom or so. But the working is obvious wrong, everybody can give me a hint or help?<br/>Thanks<br/>I attach my code

SOAP over HTTP/POST

905 byte By sabatier at 2007-11-20 9:10:31
Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task.I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accep...

Accessing single Index values using System.in

1041 byte By Pez at 2007-11-20 9:11:04
Hello can anyone please post a quick code, something along the lines of this: int intInput; int servers = intInput; String intServerImp; String servers1 = "jolt3.mehmeh.com"; String servers2 = "jolt4.mehmeh.com"; Scanner input = new Scanner(System...

JDBC driver connection problem

1606 byte By creativehacker at 2007-11-20 9:11:34
When I execute the below program I am getting the following error please help me..I have set class path to ojdbc14.jar also.. please helpimport java.sql.*;public class Con2{ public static void main(String a[]) throws Exception{ Driver drv=new oracle.jdbc.driver.OracleDriver(); DriverManager.registe...

problem with PATH

309 byte By creativehacker at 2007-11-20 9:11:46
I have set PATH in My Computer rt click -> properties -> advanced -> Environment variables But I always when I open cmd.exe and try to execute my java program I am unable to execute. everytime I shld set path by usingc:\java>set PATH="c:\java\jdk..\bin"What shld I do...

Closing popup window when another one is opened

846 byte By cedric813 at 2007-11-20 9:12:07
Hi everyone. I have a webpage at: http://www.digitaldisplaydirectories.com/ad_board/left_frame/hotels/hotels_p1.html(Please note: The page will only work properly in IE)I have an issue with popup ads. If you go to my webpage (using IE) and click one of the ads, a popup appears which you can then clos...

Change sectiob name(crystal reports)

999 byte By maor at 2007-11-20 9:12:33
Hi anyone can help me to change a section name. this is my code ReportSectionController rsc = (ReportSectionController) targetdoc.getReportDefController().getReportSectionController(); Section sec = (Section) targetdoc.getReportDefController().getReportDefinition().getReportHeaderArea().getSections(...

Converting a XML file to database table by using java/Xml programming

848 byte By mskamal at 2007-11-20 9:12:51
Respected SirI would like to convert my xml file into database table by using java programming. Please site me by example code, my xml file is given below<?xml version="1.0" encoding="UTF-8"?><Results> <Row> <ENO>001</ENO> <ENAME>NISHA</ENAME&g...

Java Bug?

2174 byte By BlackDragon777 at 2007-11-20 9:13:27
Hi. I need to copy an entire object and not just the reference. Obviously the clone method first comes to mind. However in my case, it is not an option because my object is composed of multiple array lists. Again, I want to duplicate the entire object, including the values of its array lists....

Swing Widgets

599 byte By BlackDragon777 at 2007-11-20 9:13:34
Hey guys. I have another question. Does anyone know if the swing control widgets are buggy? The reason I ask is because sometimes the controls or widgets will render fine but other times maybe only have of the text will render. I have tried invalidating the rontrol but that doesn't help.The...

startswith?

306 byte By backtoblack at 2007-11-20 9:13:44
im having a problem with a program i'm trying to create, basically i have a file with full names and i want the program to be able to output a file with pairs, where the first name and the surname start with the same letter... 'm really stuck on how to code this... any help would be apprec...

Issues deleting a value from a mutlimap.

8141 byte By voidflux at 2007-11-20 9:13:50
I'm having an issue deleting from a map where the KEY is the Serial data member and i'm trying to delete where the KEY is somthing and the PackID is equal to a value.here's me trying to do it:When I run the following test:public class MainTest { public static void main(String [] args...