Hi,I have a classic problem of over-ambitious generalisation of a solution.Problem is thus - I have to generate various reports in different formats, these reports are generated from swing input screens and these reports can be printed. I am using the Java printing API for such printing.Problem ...
Comments (11) | Promote | Bookmark
Data transmission speed in TCPSun, 23 Sep 2007 04:59:00 GMTI am developing a project in which i want to transmit data from one host to other host. As my experience I hv seen that in normal trnsmission from p 2 p over Lan with out using any program the speed is very fast while same file if we transmit though our program with socket , the speed is will ...
Comments (8) | Promote | Bookmark
JPanels & JButtonsSat, 22 Sep 2007 05:53:00 GMTMy main file is ExpenseTracker.java. When u> >compile the ExpenseTracker.java , there is a column of buttons on the left> >and a right box. I would like to make the output of the RecordMenu.java> >appear(not pop out) in the right box of my ExoenseTracker when i click one> ...
Comments (8) | Promote | Bookmark
can't add cookiesWed, 14 Nov 2007 12:09:00 GMTI want to add some cookies to store some settings for the next time you open the page in a navigator. In my jsp-page I have following code fragment:String nbrlines = "200";.... Cookie cookie = new Cookie("tetra_index_lines", lines);cookie.setMaxAge(7*24*60*60);response.addCookie(cookie);When I ...
Comments (6) | Promote | Bookmark
JScrollPane scrolling problemSat, 22 Sep 2007 11:26:00 GMTHi to all, When I am using a JTable inside a JScrollPane... table column increases... the horizontal scrollbar is not getting activated.. when the row increases.. the vertical scrollbar is getting activated...any one knows.. what must b the problem?thanx in advance...anvar ...
Comments (5) | Promote | Bookmark
Java Serial Port - byte by byte reception.Sat, 22 Sep 2007 10:09:00 GMTI want to receive one character after the other over my serial port. Could some one tell me how to control the data flow during reception. case SerialPortEvent.DATA_AVAILABLE:ReadBuffer = new byte[1]; try {if(serialPort.isCTS()){while (inputStream.available() > 0) { int numBytes = ...
Comments (3) | Promote | Bookmark
JTree - sorting without collapsingSat, 22 Sep 2007 08:54:00 GMTi have a JTree which represents data stored in my data layer. if this data changes, i do not only have to update the view part in the tree but also resort it to certain criteria. as far as well, this works fair enough, my problem is, that with every resorting, i remove/add children in the JTree ...
Comments (3) | Promote | Bookmark
JPanel scrolling of multiple images slowSat, 22 Sep 2007 12:08:00 GMTI have a JPanel that I use to display about 100 small images. I am using the drawImage() method in a for loop within the paintComponent method to accomplish this. Everything works fine except when I scroll, the JPanel is not smooth and is jerky and slow. Also when I move the splitpane marker to ...
Comments (3) | Promote | Bookmark
Editable ComboBox focuslistener?Sat, 22 Sep 2007 07:29:00 GMTI posted this in the main J2SE forum, but that was probably a mistake:Apologies if this has already been discussed, but I have created an autocomplete comboBox, and would like for other fields to update when the comboBox loses its focus. However, I have noticed that the standard FocusListener ...
Comments (3) | Promote | Bookmark
images & HTTPWed, 16 Jul 2008 21:26:00 GMTI have developed an HTTP grabber that stores requests (both header and data) for later providing this requests based upon url (sortof proxy caching). I have some trouble with images. While text "plays" ok, images have some noise I can't figure it out what it is. I don't know if this come...
Comments (3) | Promote | Bookmark
How to make a c program "awaken" a java socketSat, 22 Sep 2007 19:36:00 GMTI am developing a client program which has to communicate with a server written in c. I've created a listener thread which keeps verifying if there is anything in the stream:public void run() {while(true) {try {if (input.ready()) { msg = input.readLine();.....the problem is that the client ...
Comments (2) | Promote | Bookmark
Populating a JTextArea with a BufferedReaderSat, 22 Sep 2007 14:29:00 GMTI have a chat client with a JTextArea that needs to display the contents of a BufferedReader. It needs to do so on a continual basis so that as the server sends it text through the BufferedReader it just displays it. Are there any examples for how to do this? Is that what load() is supposed to ...
Comments (2) | Promote | Bookmark
Windows Net Send & a Tall Java TaskWed, 16 Jul 2008 21:23:00 GMTHello,I am learning java and I believe the best way to learn is by doing hands on projects. I've thought of a project--below is what I am thinking. I hope you can guide me on how to make this project (point me where to look, what to research, read)Intranet Instant Messenger Requirements:1. M...
Comments (2) | Promote | Bookmark
Datasocket Binds to wrong Address FamilySat, 22 Sep 2007 05:15:00 GMTThis seems strange to me but it would appear that I've an application that is binding a DatagramSocket to inet6 and not IP V4. I'm running java 1.4.2_04 on a SuSE 9.0 system. On Red Hat ES systems, I'm not having this problem.So the code looks like:DatagramSocket ds = new DatagramSocket( ...
Comments (2) | Promote | Bookmark
JTable SelectionSat, 22 Sep 2007 18:21:00 GMTHow do you make a JTable so the user cannot choose a single cell but only an entire column?How do you make the JTable readonly so that it cannot be edited?I have tried table.setColumnSelectionAllowed(false);table.setCellSelectionAllowed(false);table.setRowSelectionAllowed(true);this does not ...
Comments (2) | Promote | Bookmark
Newbie: In what order to close sockets ?Sun, 23 Sep 2007 10:36:00 GMTHya,when sending a file between 2 computers, in what order should the streams close?Serverstream reading in the file, and the socket stream which sends the fileClientthe socket stream which reads the file, and the output to diskthanks in advacne...
Comments (2) | Promote | Bookmark
java.io.EOFExceptionFri, 21 Sep 2007 20:46:00 GMThi techies,i'm facing an odd exception from few days. i've made a client-server application which communicates with sending and receiving object of a class which implements serializable. sometimes when i'm reading tht object from the network TCP connection it throws following ...
Comments (2) | Promote | Bookmark
Focus problem Jtextfield - JoptionPaneSat, 22 Sep 2007 17:36:00 GMTHi to everybodyI'm working on an applet which includes a Jtable with a lot of Jtextfield. At a certain moment, I call a JOptionPane to be displayed. It works fine, but when I click de OK button, the focus doesn't return to the textfield I want ( I use the changeSelection method, that request ...
Comments (1) | Promote | Bookmark
IIOP & firewallWed, 16 Jul 2008 21:25:00 GMTI can this doubt about firewall and IIOP:What the feature of firewall can intervene with IIOP operation:- port filtering- load balancing- address filtering- network address translation...
Comments (1) | Promote | Bookmark
Help with JTable editing & clickingSat, 22 Sep 2007 11:47:00 GMTIs it possible to make the whole table non-editable when the user clicks on a cell? If so, how? Also, would it be possible to run a function or make an object when the user double clicks on a cell, and how?thanks for any help! ...
Comments (1) | Promote | Bookmark
Scrollable drawingSat, 22 Sep 2007 09:40:00 GMTi got a drawing over one JPanel object, now i am trying to put into a ScrollPane mi drawing but, i can not see my overall drawing, only a part here is a snippet from my code:public class GraphEditorFrame extends JFrame {...some declarationsgev=new ...
Comments (1) | Promote | Bookmark
Can I send a binary file without encoding it into Base64Sun, 23 Sep 2007 14:51:00 GMTHi there,I am not quite sure this is right place to post this question. If not, please kindly let me know. Thank you.My question is: I want to send a binary file over the network using HTTP protocol without encoding it into Base64. Is it possible?...
Comments (1) | Promote | Bookmark
Tomcat socket closed errorThu, 20 Sep 2007 17:08:00 GMTHello all,I have an JSP/servlet application that runs on solaris8, with apache 2.0.43 and tomcat 4.0.4 using jdk 1.4I get the following error message in the catalina_log:2003-04-01 18:17:34 Ajp13Processor[8009][5] process: invokejava.net.SocketException: Socket closedat ...
Comments (1) | Promote | Bookmark
calculating tcp/udp delay timeSat, 22 Sep 2007 07:09:00 GMTHi everybody,i am curently trying to calculate the delay time of tcp and udp packets send from a server to my app.My client app. gives the server settings like packet size number of packets and max. data rate, and the server then starts streaming.there is no problem in receiving the packets, ...
Comments (1) | Promote | Bookmark
How Can I make A Dialog/Frame TransparentSat, 22 Sep 2007 05:06:00 GMTHiI want to make a dialog or frame Transparent. Is it possible in java. Actually i want to add an gif image on the Frame container that image is in curve shape with transparency, and I want this transparency also on the Frame in the java application. I m using JFrame with setUndecorated(true). ...
Comments (1) | Promote | Bookmark
SSH with JavaMon, 24 Sep 2007 10:04:00 GMTHi there, I'm a newbie to distributed computing and was wondering if there are any free java libraries out there to do SSH?See as I may have classes on distributed host(s) which should be able to accept /SEND remote commands via SSH.Can somebody please point me into the right ...
Comments (1) | Promote | Bookmark
JEditor PaneSat, 22 Sep 2007 15:56:00 GMTi am trying to render progress message one by one in JEditorPane but it is taking to mucn time in loading .how can i improve the performance of this i am sending my code ..method public void writeMessage(String s_messageText) are used to write message in JEditoPane..plz help me!!!! public class ...
Comments (1) | Promote | Bookmark
Caret Possition ProblemSat, 22 Sep 2007 03:19:00 GMTIn regard with this question :http://forum.java.sun.com/thread.jsp?forum=31&thread=503158&tstart=0&trange=15 ...
Comments (0) | Promote | Bookmark
Accssing GPRS through mobile from PCWed, 14 Nov 2007 18:59:00 GMThi all,i need help on developing a midlet which will access the GPRS connection from my PC using the mobile as a midway.I hope there will be 2 midlets, one for the mobile (server) and the other for the PC (client).The connection between the PC and mobile will be via bluetooth (JSR-82) and/or ...
Comments (0) | Promote | Bookmark
Migrating the application from Iplanet to Websphere.Wed, 16 Jul 2008 21:27:00 GMTWe migrated the application from Iplanet to websphere.After migrating to Websphare many of the links are not accessible, it's giving the pop up" you have no access to the link" for couple of links.One thng we noticed is that the issue is not happening on offline servers but only on online se...
In regard with this question :http://forum.java.sun.com/thread.jsp?forum=31&thread=503158&tstart=0&trange=15 ...
hi all,i need help on developing a midlet which will access the GPRS connection from my PC using the mobile as a midway.I hope there will be 2 midlets, one for the mobile (server) and the other for the PC (client).The connection between the PC and mobile will be via bluetooth (JSR-82) and/or ...
We migrated the application from Iplanet to websphere.After migrating to Websphare many of the links are not accessible, it's giving the pop up" you have no access to the link" for couple of links.One thng we noticed is that the issue is not happening on offline servers but only on online se...
Is it possible to make the whole table non-editable when the user clicks on a cell? If so, how? Also, would it be possible to run a function or make an object when the user double clicks on a cell, and how?thanks for any help! ...
i got a drawing over one JPanel object, now i am trying to put into a ScrollPane mi drawing but, i can not see my overall drawing, only a part here is a snippet from my code:public class GraphEditorFrame extends JFrame {...some declarationsgev=new ...
Hi there,I am not quite sure this is right place to post this question. If not, please kindly let me know. Thank you.My question is: I want to send a binary file over the network using HTTP protocol without encoding it into Base64. Is it possible?...
Hello all,I have an JSP/servlet application that runs on solaris8, with apache 2.0.43 and tomcat 4.0.4 using jdk 1.4I get the following error message in the catalina_log:2003-04-01 18:17:34 Ajp13Processor[8009][5] process: invokejava.net.SocketException: Socket closedat ...
Hi everybody,i am curently trying to calculate the delay time of tcp and udp packets send from a server to my app.My client app. gives the server settings like packet size number of packets and max. data rate, and the server then starts streaming.there is no problem in receiving the packets, ...
HiI want to make a dialog or frame Transparent. Is it possible in java. Actually i want to add an gif image on the Frame container that image is in curve shape with transparency, and I want this transparency also on the Frame in the java application. I m using JFrame with setUndecorated(true). ...
Hi there, I'm a newbie to distributed computing and was wondering if there are any free java libraries out there to do SSH?See as I may have classes on distributed host(s) which should be able to accept /SEND remote commands via SSH.Can somebody please point me into the right ...