We've been given example code from the deitel & deitel book how to program and have to carry out the following alterations:a) Modify the TicTacToeServer class to test for a win, loss or draw on each move in the game. Send a message to each client applet that indicates the result of the ...
661 byte By
radsat at 2007-11-26 12:17:49
Hi I have an application running in the server and another application calls that servlet. It runs perfectly fine in my system, but does not in another system. Could any one please let me know why would that strange behaviour happen. The servlet code is,PrintWriter ...
Hi,I gather that with Creator update1, the JSF version has been upgraded to 1.1! Would this work on an appserver running java 1.4? Or do I need 1.5 for this?I was running the previous Sun API's (JSF 1.0) on java ...
1906 byte By
S.Roy at 2007-11-26 12:17:51
Hi,I am getting the following error while calling the webservice deployed in Weblogic 8.1sp5 version: Please help:SEVERE: caught throwablejava.lang.AbstractMethodError: weblogic.webservice.core.soap.SOAPEnvelopeImpl.normalize()Vat ...
177 byte By
Akark at 2007-11-26 12:17:52
basically i have a read all lines LineIO method to read .txt files. after doing this i need to store them into my arraylist. how do i do this?any help appreciated.
How can I add a Textarea to a Frame?Simply declaring a Textarea isn't enough.Isn't it?
583 byte By
dlegrid at 2007-11-26 12:17:54
Hello all,We are working through the planning for patching our Solaris 9 servers. The new DST change that is showing up in March of 2007 is putting a new spin on things. In order to get 300+ production servers up to speed by March, I need a better plan than trying to schedule outages the ...
233 byte By
phill10 at 2007-11-26 12:17:55
Hi!I have a column that renderers String.The length of strings may be different from row to row.How can I insert all the string in the cell with line wraping.A string may be very long.Thanks.
Basically I have a table that is inside a Div and the table gets filled out with data retrieved from the server. In order for the data to be up to date the Div has to be refreshed every 10 seconds or so. When viewing the table I will have to scroll down but with the 10 second refresh the ...
Hi thereI want to run Solaris 10 Update 6 on an HP Proliant 365 machine. I have checked the hw comp matrix and found its certified at http://www.sun.com/bigadmin/hcl/data/sol/systems/details/2025.htmlI followed the instructions referenced there. ...
Can you please help me how to run this command with java (windows):In console : C:\Data> md5sum testing.zip > file.lstI have tried :===========================================================String s = "md5sum testing.zip > file.lst";try{Process p = Runtime.getRuntime.exec(s, null, ...
Hi all, Recently in my Swing application, I was trying to use Indian fonts. But rendering is not smooth. At font size 12, I could not read the letters. I had to make size 20+ to make it readable. But it is no smooth.Please help me to solve this problem.Thanks in ...
444 byte By
daib at 2007-11-26 12:18:00
hi, i've a problem with compling with the jdt eclipse complier: I use this string in a java file to compiler a .java:org.eclipse.jdt.internal.compiler.batch.Main.compile("c:/test2.java");but i should compile like javac compiler, with this string:pb = new ProcessBuilder("javac", ...
Hi people, I have a problem if a program in runtime: i call a method in a client class named JRSimpleClient and then occur a message of error: NUllPOinterException . let see the server class: the kind of return is VectorVector<Object> myVector = new Vector<Object>(1000); . . . ...
Hi guys,Does anyone know what kind of composite is VE Palette is layed on? I need the same concept,expandable curtain-like widget to be expanded horizontally. Any ideas? Thank you!
Hi,I am curious about whether or not it is possible to write Java programs that take advantage of a 64 bit machine; namely, would it be possible to allocate more than 4GB of heap memory? If this is possible, then what happens when you try to allocate more than 4GB of heap memory in a 32 bit ...
7513 byte By
Annette at 2007-11-26 12:18:07
[nobr]Hi!I have two questions: The first is about line wrapping in JEditorPane and the second is a validate problem.I have a JPanel in a JScrollPane. And to this panel are added and removed some TextBlocks which contain a JEditorPane. I want that scrolling vertical is possible when needed, and ...
550 byte By
Sabi@Sun at 2007-11-26 12:18:08
Hi,I have an xml file , my requirement needs me to display the xml file as a tree structure in jsp. The user should be able to make changes to tree. he can drag and drop the nodes and save the changes.I parsed the xml file and created a method that returns an arrayList of the immediate children ...
Hi,Im trying to launch a program from a servlet. Im using the following code:try{log.debug("Starting the cruisecontrol batch file...");//a batch file on the path to start ccRuntime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL c:/tools/startcruisecontrol.bat"); log.debug("Should have ...
I have 2 string arraysString[] s1 ={"aroma" ,"Huge", "dock" ,"divide"};String[] s2 = {"a pleasant smell","big","place where ships are loaded","to split up"};The word in the textfield searching from first string array and if found writing the corresponding element of second array in other ...
does anyone know how to calculate uk sunset and sunrise time with MIDP2.0 CLDC 1.0?
Hi,i have a very typical problem. I am trying to get an inputstream by using conn.getinputstream(), and of course as everybody knows, the program hangs if the inputstream doesn't come or is delayed.I cannot use setReadTimeout() because i have a limitation of working with Java 1.4.2.I tried ...
how to create different session for 2 browsers , where one browser is child of another browser ?
HiI have recently upgraded HP-UX apache software FROMApache webserver: 2.0.55Apache tomcat :5.5.9TOApache webserver: 2.0.55Apache tomcat :5.5.9I have 2 tomcats running, one JVM for a daytime service and another for a nighttime service. So while 1 tomcat is down, the other is up, apache always ...
Ok, so there are two classes, C1 and C2.C1 contains the following method:protected static final PersistentCheckBoxMenuItem[] getCollections() {Component components[] = ((JMenu)menubar.getComponent(3)).getMenuComponents();return (PersistentCheckBoxMenuItem[]) Arrays.copyOfRange(components, 6, ...
I am using BEA Weblogic and I need to get a value from a previous jsp evaluate it and based on the value I need to show certain scripting on the next jsp. I was able to create a function and hide and show on the same jsp, but not get the value from one, check the value and then show or hide on ...
Strange problem today : I have a JComboBox on a JInternalFrame. When I click the combo, the list gets displayed behind the frame. I can see a small part of the list below the frame, but the rest is hidden.I really dont know in which direction I should be looking. Any pointer ?
Does importing all classes make my file larger?
I have a list with different types of objects in and I want to compare the selected objects type with a type, to see which type of object I have selected.Is that possible?
What is the difference between importing java package and including header files in c++?
I am using the -javaagent option to load a custom class transformer whichmodifies a specified method by adding a call to a native library at beginningand at the end. I have made exactly the same modification by hand and notused the option -javaagent:... to prove that everything works OK and ...
Can rs.last() be used after calling the stored procedure? If yes what should be the CURSOR types?
Hi all, I would like to know if there are some differences between Java3D 1.3 and Java3D 1.4 to save a canvas3D in a PNG file... I have written a class to save a canvas3D in a PNG file which runs with Java 3D 1.3 but not with Java3D 1.4. Java3D 1.4 returns following exception :Exception in ...
Hi,I have a file which I have to parse and extract all the possible instances of a date from. The File is free text format and I can't impose any restrictions on the content (or formatting)I'm using java regular expressions to catch some of the dates, but it occurred to me that someone may ...
Anyone doesn't like something in J2SE6.0? Personally I feel that this version of Java was more on integrating Java with other tools and technologies then improving elements in the language. I could be wrong however since I still did not try the 6.0 out...anyways .. anyone wants to ...
The PHD to recreat the Microsoft NOTEPAD?can we do it?i can do copy,paste,redo,undo,delete,....,etc operation.i have agood knowlege about Panels,Files,Bars,...etc,but what about Save Dialog,Open Dialog,Print Dialog,Page Setting Dialog?can any one give me ahint or help ...
Hi everyone,We are running 5.2sp4 ldap server. Currently we upgraded the OS to solaris 9 from 8. The server is running smoothly, however, we just found out two issues:1) if we use startconsole command to display the console, it shows up extremely slow.2) the font in the console is very small, ...
I have the following line if (Robot.getPixelColor(x,y) == Color.red) but i get the following error, non-static method getPixelColor(int,int) cannot be referenced from a static context . How do i get that line to work?
Hello,I have a JList with dynamic content.At first the JList is correctly rendered so its width is sufficient to show its longest element. I do not use setPrototypeCellValue() as elements have unknown length.However after I add or delete some element the JList width does not adjust ...
Hello, can anyone explain how in JavaCard is cast short to byte?
For some odd reason, this set of code isn't workingelse if (checky == 11){setBackground(Color.white);g.setColor(Color.black);g.drawString("YOU LOST!", 110,150);}Can someone tell me why the drawstring isnt working? The background is becoming white, but nothing is being displayed on the ...
There have been several forums posts about the lagging performance of JSC2 and the bundled App Server.Could anyone suggest some steps to optimize the IDE and app server without any hardware changes?
I recently install Sun Directory server 5.2 on a SUN box. I have configured everything and all looks ok. I then proceeded to configure a client for testing, but when I tried to log back into the directory console, it seems as though it will not take my password. I get the following ...
All we have a 3NDS installed which has two of our apache webservers configured in it. These webservers connect to our application server which hosts the jnlp file which launches the swing application which then talks to the webservers for information. My problem is that when one of the ...
Hi,I do not know if this is the more suitable forum to ask this question, but I am going to try it:I am developing an application with two parts. 1. A server developed in J2SE which is connected to a MySQL database. 2. A client developed in Swing which shows data received from the server by ...
i use the file Transcode.java from this link: http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Transcode.htmlbut can any one tell me what they mean by audioformat and videoformat , and how can i choose the suitable format.?thanks
Hi,We have a 3rd party application which calls a Java frame and intermittently it freezes!What is the best way for me to debug in a citrix environment or in a multiuser environment in general?Can we get this stack trace to a file?Please accept my apologies for poor understanding, I am new to ...
I'm having a major problem getting a tag file to evaluate my el correctly. Here's the test casetest.jsp======================================${value==null} ${value==0}${value!=null and value==0}<c:if test="${value!=null and value==0}">this is not shown, rightfully ...
Hi, I'm trying to lock a text file for exclusive write use for different threads of an application, started from websphere. I wrote a small standalone test harnass to verify the solution, and found that it works just fine on windows, but completely fails under unix !Using java 1.4.2_08 ...
Suppose I have:* a class named Base which contains a function named foo().* a class named Derived which extends Base that also has a function foo().I'd like to call Base::foo() using JNI (this is me playing around getting to know JNI; I know this isn't terribly useful).In Derived, I ...