Hello all, ok i am adding multithreading to my Swing program. First i have the Main GUI loading, but first a "loader" which extends Thread is start()'ed (loader opens several large defualt program files) and then the SplashScreen which implements Runnable is run()'ed. Ok now the problem. once ...
1301 byte By
mayra at 2007-9-26 1:24:31
Hi i am quite new in Java and i have this problem! i am trying to read a remote-sensed image and display it. to make things more clear:The image i am using is a remote sensed image 512 * 512 . It has three bands, green, red, nir.The data is 8-bit (single byte) and in a binary byte format. The ...
128 byte By
del3 at 2007-9-26 1:24:32
can anyone teach me how to(1) open a document to the JTextArea(2) save JTextArea docuement to a file
515 byte By
harvin at 2007-9-26 1:24:33
Hello,I'm having a problem regarding tabels. I have an interface built using java.awt in the form of an application. What i would like to do is to call in a table with a scroller.can JTabels and JScrollPane be used in an awt interface.the commands are as suchexampleprivate Jtabel tabel; tables ...
3530 byte By
palv at 2007-9-26 1:24:35
Hello,I'm having some probelms with my code and i can seem to figure out with the problem is in line 82 of my code i'm suppose to give in a type. but ven if i do give in the type i would still get an error...my codes are as below.import javax.swing.*;import java.awt.*;import ...
757 byte By
unknow at 2007-9-26 1:24:38
Hi I have two java version one is JDK standard edition 1.3and the one is JDK Runtime Envirment Standard Edition 1.3.1now i know the 1.3.1 is a newer version but the name Runtime Enviroment what it mean compair to Standard Edition..Now I wanted to use SWING in my java programming. I got a ...
419 byte By
dquick2 at 2007-9-26 1:24:39
I'm trying to add a Button component to a JApplet using the addImpl method, which has three parameters. I can figure out what the first and third parameters are, but the second one has me stumped. It's an Object "contraints", which is "an object expressing layout contraints for this ...
637 byte By
tanpoh at 2007-9-26 1:24:43
thank you kurt for your help. I still unable to solve the problem.I had download the jdk1.1.8 from java.sun.com sucessfully and setup sucessfully. i had also path C: /jds1.1.8/bin. BUT i don't understand why i write program to a notepad.but after save as abc.java, the icon still show as ...
547 byte By
unknow at 2007-9-26 1:24:48
Hi I have del my java 1.3, which then i install java 1.3.1 but when i set the path and everything else i can't find the javac in the java folder? . I thought that the javac.exe comes with the installation file but for some reson it was not there. Can anyone tell me what is the latest version ...
597 byte By
guide at 2007-9-26 1:24:51
Hello friendsWhile working with Monica Pawlan's tutorials, 'writing enterprise applicationswith Java2 SDK, Eenterprise Edition, I cannot resolve following error message. I have installed programs in following pathc:\j2ee\jdk1.3.1c:\j2ee\j2eesdk1.3c:\j2ee\ClientCodec:\j2ee\BeansWhile trying to ...
2415 byte By
totitan at 2007-9-26 1:24:52
How come the code could not understand HTML?somebody please helpimport java.awt.*;import java.awt.event.*;import java.io.*;import javax.swing.*;public class CreateAccount extends JPanelimplements Serializable, ActionListener {private JTextField tfName = new JTextField ();private JTextField tfIC ...
Hi!I have a servlet that writes a string to a file every time it receives data. In order to make sure that I only have the latest string at any time, before writting the new string I delete the file, then create a new one and then write to it. The problem is that if the previous string was ...
608 byte By
unknow at 2007-9-26 1:24:58
HI I have been posting msg about this topic be4 but I only get one preson reply my msg. He did kind of help me but i wanted a link so that i can just click and get the JDK.I got the Java 2 runtime enviroment 1.3.1It said it comes with java complier which is a big bull shit I follow their link ...
744 byte By
unknow at 2007-9-26 1:24:59
Hi everyone sorry for posting that many MSG up.I have fix my error in the JDK file hehe thanks to that guy who give me the link. Now I running hehe.Ok ok now back to the qestion: What do import do will it effect the compiler time and run time so can i just leave IMPORT out e.g Import ...
3790 byte By
amrita28 at 2007-9-26 1:25:00
Hello To All, I have a program which check for matching braces or brackets. In this program, i am trying to implement a Stack using Vector. I am stuck with some errors. can anyone correct my errors and explain to me.Here goes my program:import java.io.*;//import java.util.io.*; class ...
I'm working on a very cool freeware Java text editor, that is working beautifully, except for the code used to change the color of reserved words, etc, on the fly...At the moment, I use a documentlistener. When text is inserted, I need to color some of that text automatically. However, when I ...
266 byte By
wonwoei at 2007-9-26 1:25:06
Deal all: I am new to java. If i type as below:short a=1;b=2; ->can compiledshort a,b; a=1;b=2 -> can't compiledshort a,b;a=(short)(1);->can't compiled can anyboby tell me Why?Thanks!!!
Hi,I have made an applet that opens a dialog, and now I would want that windows dialog stays all the time in the same location. So that, it can not be moved with the mouse by the user. Thanks, Regina
I Have Did An Editor Like Kawa-Editor More Than That.Now I want To Convert It To An .exe file .so that i can include my Editir in Accessories ,and i can open my editor instead of NOTEPAD.
hi group,I have one Node called "My Baskat".Under this I am inserting newNodes. o.kWhen i insert the nodes,just I want to avoid duplicates.For sample:import java.awt.*;import javax.swing.*;import javax.swing.tree.*;import javax.swing.event.*;import java.util.*;public class MyEditor extends ...
343 byte By
werwohl at 2007-9-26 1:25:13
hi,when I try to write: byte mybyte = 0x91;javac says:found int, required byte.but every value untill 0xFF should fit in a byte, am I right? 0x91 = 10010001 (8 bits)2. question:how can I convert a byte to a BitSet? or is there any better way to edit bits?thanks in advance! ...
200 byte By
gopisuri at 2007-9-26 1:25:15
Hi,I working on a program, which reads and writes files. I would like to know how much the JVM takes to run the program. Please suggest me a way to do this.Thanks,sg
I use following code to create statement,I am using Microsoft Access DataBase 1: st= dbConnection.createStatement(); 2: st= dbConnection.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE );- rsAuthors = st.executeQuery("SELECTlastname,firstname,city,country FROM ...
455 byte By
bytonix at 2007-9-26 1:25:21
Hello, I used my own Settings class extends from the Properties class for loading and saving my Programms settings. So everything works, but if i load a garbage file as settings file, I do not get a exception ore something notification. Is this a Bug or a feature of the Proprties class? How can ...
how to generate reports in java
1434 byte By
evett at 2007-9-26 1:25:24
Hi I'm trying to write a loop that does the following :-Takes an array of index values that applies to a string adds one to the value of the index and then returns the character in this position.There are only four types of character within the string so I have tried to solve it with the ...
303 byte By
gopisuri at 2007-9-26 1:25:25
I am working on a program to read one record from a file(contains many records) and write to another file in a different format. I was wondering if there was a better way than writing one row at a time to the file. Because it increases I/O there by decreasing the performance. Please help. ...
101 byte By
cgjusa at 2007-9-26 1:25:27
I am getting an error when I try to do this (the subject). Any ideas/solutions? Thanks!
373 byte By
hareshkc at 2007-9-26 1:25:29
Hi all,I am new to Java and would like to know how to implement mouse and key listener in one class. I am trying to create an applet that behaves a certian way when a mouse is clicked and behaves another way when a certain key is pressed.I can implement one or the other, I dont know how to ...
388 byte By
t0phy at 2007-9-26 1:25:32
Hi all... I read the API entry for java.security.cert.Certificate, but I'm not entirely clear on how I can go about actually creating a certificate. It seems I need a base64-encoded file to take in as an input stream. Is there a way to create my own self-signed certificate from scratch (and ...
753 byte By
hq2 at 2007-9-26 1:25:33
I am working on a program to write variable to file. but when I open the file, there is nothing in it. the program is as follows:import java.io.*;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class file1{public static void main( String[] args ) throws Exception{String ...
hi alli m trying to implement a graph with tooltips. for using JToolTip class of swing i need to make the line joining two nodes as an object so that i can recieve action events and register the tooltip. can anyone help me?thanx in advanceamit
176 byte By
msohaib at 2007-9-26 1:25:38
While working with a J2EE application server, how can i manipulate - add, delete, update and explore - JDBC Datasources from a java application or servlet?
385 byte By
msohaib at 2007-9-26 1:25:40
How can I hold a file in memory as a large object?is there anything like Blob? binary large object? I know about the Blob interface in JDBC 2.0 but its about handling database objects. I want a general object may be a file object to hold a complete file in memory.is there any such object or i ...
493 byte By
JebeDiAH at 2007-9-26 1:25:41
Hi there...do you know how it is possible to do the following (I assume it is not....). Let's say class A is a Java-intern class such as String...class B extends A{.....}so lateron I use a Java-intern method, that returns an array of all A's constructed.How can I test if some of these A's ...
184 byte By
wuqiuzi at 2007-9-26 1:25:47
Does Java language provide classes or functions which can do this directly?if don't ,then how can i do?i am a newcomer from china.thx!
CAN ANY BODY TELL THE RELATION OF JAVA AND C THAT WHERE IT INTEGRATE WITH C AT RUNTIMEAS I HAV NOTICED THAT JVM ENVIORMENT STARTS FRM C ONLY MEANS THIER ARE SOME HEADER FILES.I HAVE KEEN INTEREST IN STUDYING THEM KINDLY HELP FROM WHERE TO START FROM
535 byte By
tasoss at 2007-9-26 1:25:50
hello pplis it possible to pass any parameters to the run() method of a threadmoreover if i create a thread foo the only method that can run is run() ? i know that i can have more methods and just call them via run().i mean that if i create the constructor of the foo class then first the ...
161 byte By
ybajaj at 2007-9-26 1:25:51
Hi all,Has anybody implemented vCard in java....If yes, could you please explain how it can be implemented,thanksybajaj
This is a seemingly simple problem, but I cannot seem to figure out why the total variable is not summing the two die results.Any help would be appreciated. Here is the code:public class Die2 extends Object {public Die2() {}public static void roll(){for(int i=0; i<=2;i++){int ...
196 byte By
jsongs at 2007-9-26 1:25:56
I try to us Javax swing make some buttons like 0 - 9 then input some numbers by using those number like a calculator. But I only can get numbers no more than 9.Please help me.
I want to supply a list of customer names from which the user can select but the control should return the customer id not the customer name.Can a JList take an id as well as a description for each line or should I be using some other sort of control? Could someone please give a simple ...
356 byte By
jetaimeB at 2007-9-26 1:25:59
Hey what IDE are people using? I have tried so many and found none that I like. egJCreator (jcreator.com)Forte (sun.com)SlickeditDoes any one have a link to a good one that has integrated compiling , debugging etc and code completion would be a plus. Good project management and easy to ...
910 byte By
jjsimas at 2007-9-26 1:26:04
Keywords: chart2d, chart, graph, pie, bar, line, dot, scatter, plotChart2D is a library written in Java for adding 2D charts to Java programs (or for exporting them to images). It can draw the following charts: pie, line, vertical bar, horizontal bar, scatter-plot, and charts with any ...
656 byte By
dupsy at 2007-9-26 1:26:06
I have a problem with implementation of a something similar to a LISP tree in Java. That means that I want to be able to combine different if-else-conditions from a set of variables and operators and run it automatically. For example, if (variable) (operator) (variable) (operator2) (variable) ...
284 byte By
yllk at 2007-9-26 1:26:07
I want to draw rectangles dynamically (in a 'for' iterative)I have built this in an applet but when it draws the rectangles, they just vanish.Is this something really fundamental ( I am a business language programmer - new to OOP and Java)!!Cheers
251 byte By
usama_ra at 2007-9-26 1:26:10
hi there , i hope to mack a firewall in java , i read a lot a bout firewall concept and firewall stratge but still can't how how to make the firewall monetor all conection and all ports in any machine , so if there any on can help !!!!!
904 byte By
ansmns at 2007-9-26 1:26:13
Hello all,I have a small problem.Before explaining the problem as such,ill give u a breif description of what i am trying to do I have two layers.The upper layer is sender and the lower one is the reciever.Now ,there's only one reciever thread and a number of sending threads.So when one sender ...
230 byte By
Espy at 2007-9-26 1:26:14
Hi All,two questions:1-How can i make my java program supports arabic language (read & write)?2-Is there a java editor and compiler where i can use both English & Arabic?thank u...
56 byte By
gopisuri at 2007-9-26 1:26:15
Does anybody know what is System.gc() for?