Hi everyone,is it possible to display an external webpage by, for example, specifying the URL of the page? It would work a bit like frames.I have a table with a list of reports, each of which links to a "report". all data is obtained from a database.We need to be able to click a report and have ...
hi. i need to set a car for a specific customer. but when i do this the println says: Car rented: Car@2bbd86here is the code im using://set the price for a carpublic void setPrice(Customer aCustomer){setCustomer(aCustomer);//customer.setCar(this); // point Customer to this ...
To the Sun team:I've tried searching for even the most basic words that i've searched before and would most definitely have results, but all attempted searches have led to 0 records found. even when trying to search words like "tomcat" "deploy" etc...what's going on?
Hi,I am trying the change the icon used in a radioButton. I can use the setIcon method to set the GIF image. However, if the GIF image is an animated GIF, nothing is displayed. Are animated GIFs not supported ?I am using NetBeans 5.0 in a Windows environment.Thanks in ...
What is better Java Logging or Log4J and why?
Why doesn't this work? :(It's the object to char that is wrong. If I type buf.put(2); below it works fine...In class Producerprivate CharacterFactory cf;buf.put((Object)(cf.returnChar()));In class CharacterFactorypublic Object returnChar() {Object tmp = ...
I know this is a too simple question, but I tried all the suggestions I can find from the net, such as adding jms.jar or j2ee.jar in classpath, but still can't compile JMS code.I have whole JavaEE5 SDK installed on Windows, also tried Sun MQ, but none of them help me providing ...
Hi ,I am using hibernate to connect to my Sql server 2K using driver. Since the result set is very large i am getting the following error2006-12-06 13:34:09.308 - [ERROR : 1001 ] could not execute query using scroll DETAIL : In com.nec.infocage.iclogviewer.model.dao.SummaryDAO -> ...
Hi, Can anyone tell me how to set the page size and attributes for a web page. I am using Netbeans with VWP and am new to web applications, I am trying to create a Login page which is say 400x300 in size and without the usual buttons, toolbars etc on the browser.I have looked at various ...
HiI am using Eclipse 3.2.1 with Weblogic 8.1 plugin. I got the project and its running fine. Problem is when I am trying to debug and add some break points and its showing error in eclipse as belowSource not foundand followed by Edit source lookup path button.I am not sure why this is happening ...
could you suggest a jdbc driver that can connect to both mysql and postgresql
HelloI use the logger package to print both debug info and userinfo. A irritating feature with logging is that it prints all kinds of AWT events on the level "FINE", which easily swamps my debug info. I find that kind of information more naturally on a level "FINER" or "FINEST" (god knows what ...
Hi all, We are running vxfs, vcs on a solaris 9 system.I cannot umount a san filesystem on solaris 9, I tried umount -f option, but it still said that the filesystem is busy.I also check with fuser and no one using the filesystem, what else should I do to umount the filesystem without file ...
I am trying to write a javascript that submits the form, but I really need to now the form's id/name. My other option is to use a simple "this.form.submit()" But I am not sure how to set it so that the validation is by pass.Thanks,Sid
I cant find anything in the java.sun.com documentation, its too difficult to navigate. :(anyway, i have created and applet that has textfeilds and buttons import java.applet.*;import java.awt.*;import java.awt.event.*;import java.lang.Math;import java.net.*;andButtonAction = new ...
I'm having a regd page where in it registers a particular user ones he fills up the form.I want the page to b accessed only by 100 users at the same time. If the 101 user accesses the page it shouldn't.Can anyone tell me what all r the constraints i've to follow in this criteria to limit the ...
Hi All ,I just see prstat -a output, in that one user occypying 100% of memory. But i can't able to find the process occupying more memory.How can i find the process occupying more physical memory.Regards,R. Rajesh Kannan
i have a strange problem in one of my programs, this mean it doesn't always take the same time to finish tehe programm on the school server, i fastly made a test programm and it doesnt either have always the same execution time. Could it be that the Interpretation of the java code doesn't ...
Hi all,I have a question about swing Threading. I have the following code:InformationDialog dialog = new InformationDialog(this,"Message");SwingUtilities.invokeLater(dialog);synchronized ( start ){//stuff here...}Now the InformationDialog is creating a new JFrame which has a JProgressBar. The ...
I posted earlier in a different forum about design patterns. I was able to find one new source, and I knew about the Head First Design Patterns. Please, is there another comprehensive catalog that has Java code examples of patterns like: composite/iterator, observer, decorator, template etc..?I ...
Is there anyway i can handle negative numbers as errors. cos say i dont want the user to be able to enter a negative number. An error message should appear. Is there anyway say like using catch or something?THANKS
I'm working through Sheng Liang's "The Java Native Interface: Programmer's Guide and Specification". On page 38 he talks about accessing arrays of objects. Up until now, I've been able to compile and run all his examples on my machine, but here, the code doesn't seem to want to work.I'm ...
The (London) Times offers crosswords developed as Java applets. With Mandriva 2007 newly installed on my laptop (Firefox 1.5.0.8, JRE1.5.0_08), I completed one crossword and loaded a second: no keyboard input to cells, no focus shown on cells. Killed the applet, reloaded: same problem. Quit ...
Hi everyone,I磎 using JasperReports127 but the first record is not being showed...I really don磘 know why... Does someone had the same problem?!I follow this tutorial: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/rep orts.htmlGustavo ...
When changing root's password as root, system prompts for old root password. I just got assigned a batch of servers, and this is the only server that does this. hostname <root>:/# passwd rootPassword:It should, like the other systems,# passwd rootNew ...
Hi,I磎 developing an application that uses some webservices to get data from a database. I'm using Netbeans5.0 + Jboss 4.0.3.SP1The WS format should be Document/Literal. They will be used inside pdf documents to fill some of the pdf磗 fields. When compilling the program i got no errors or ...
Hello:I'm looking for some information in regard to...What is the equivalent of Struts DynaForms in regular JSP?I have developed an application using Struts - where I use DynaForms, Indexed Properties and such on a JSP - and we are having a problem trying to run that app in our production env ...
I've been searching the forums for ages trying to find an answer to this, but haven't had any luck. If you can help, please do!I have a custom class extending JTextPane, and have an UndoAbleEditListener attached.The problem is, the UAEL registers the insertion of file contents via ...
As part of my program I have the user input a string of numbers separated by spaces that I then separate and put into an array like so...String[] individualNumbers = numbers.split(" +");I then need to convert these numbers to an int, which I can do temporarily in a loop using...for(int i=0; ...
I missed this question on a test and I don't have the answer yet. I was hoping someone could derive a formula representing the performance of this algorithm.for (int i =0; i < n; i++) {for (int j = i; j > 0; j /= 2) ...
going to only accept one argument from command line, i.e args[0] is legal, any further input will cause an error. any inspirations will be appreciated.
HiI have a serialized ArrayList which until very recently has worked fine. Its persisted to file and read back regularly. However "something" has changed and I'm now getting the following stack trace:Caused by: java.lang.NullPointerExceptionat java.io.ObjectInputStream.readSerialData(Unknown ...
Hi to all!I'm using a Java class that factorize big integer into prime factors. I have to search in a 256 bits prime its about-160-bits factors. I use a Curve Elliptic method, that takes a long long time if the number is a product of two big (about 120) factors. As I only need to factorize ...
I am trying to write a Proxy Server, the Browser will connect to my application then i will get data from the internet. I have this code; As you see, I am reading from socketInput (Browser) until EOF. but the problem it reads all data from browser then trying to read more, it seams EOF accure ...
I am having a problem with reflection. I keep getting a NullPointerException and can't figure out why.It is happening when I call this:ResponseObject result = (ResponseObject)method.invoke(classInstance, argArray);I can't figure out what the problem is. I had this reflection working, and then ...
hi all,i'd like to do this in order to make to make the directory mountable in windows .does anyone know how this is done?thanks!
Hi there, Do you have experience with integrating Access Manager and Cold Fusion? We have a project coming up that will require this and I'm hoping to side-step some potential problems. Thank you,-Ben
import java.util.*;class Data{private String str;private double d;private char ch;public char getCh() {return this.ch;}public void setCh(char ch) {this.ch = ch;}public double getD() {return this.d;}public void setD(double d) {this.d = d;}public String getStr() {return this.str;}public void ...
I have a JScrollPane with a JPanel for Linenumbers and one for a JTextArea,each time you have a new line in the JTextarea the propertyListenerEvent call a Method that sets the LineNumbers in the JPanel for Linenumbers, but then you get an unwanted behaviour of the scrollbar: The Scrollbar ...
duffymo, do you think your Celts are gonna pick up AI today?
Hi,I tried AVTransmit3 and AVReceive3 as following and I can see image but coudn't hear sound. Please help me!java AVTransmit3 file:\C:\Temp\ABC.avi 224.1.2.3 42050java AVReceive3 224.1.2.3/42050
Hi,I am creating a popup menu using JPopupMenu. I am filling the popup menu with some string contents. While doing so, I am trying to format it with some specific fixed font type like courier so that I can neatly display the popup menu with some formatting. I am not able to use setFont method ...
Hello Friends,I need webLogic 8.1 server. From where i can download. I tried http://commerce.bea.comIt needs a user name and password. So i registered for a new user.But my user was rejected. Please provide me the link to download WebLogic 8.1 Please Expecting your earliest reply.Thanks in ...
Hi,I am trying add a user to multiple groups using the code below. It works for the 1st group, but then gives the exception shown below.Any suggestions on how I can resolve this would be greatly appreciated.ModificationItem member[] = new ModificationItem[1];member[0]= new ...
or is "Mark All Threads as Read" back to running like a dog?
I understand that it is being said that multiple versions of the JRE can be run in different browser sessions. However, multiple versions cannot be run in the same browser session. I have 2 web applications one uses 1.3.1_04 and the other 1.4.2_10. How can I get two sessions for both appl ...
Hi,How do we know if a CORBA object gets destroyed?Thanks.
Hi!In my web application when a certain button is pressed i need to launch a invisible background process while i continue using the applicationWhat do you recommend me to do this?Thanks!T.
Hi all,I am attempting to optimize a java 2d game I have been working on by reducing the amount of times my entire paintComponent runs.I have a JFrame with a custom component drawn ontop that contains all of my games graphics.My problem arises when the paintComponent method is called something ...
Hi all,is it possible to create query which check boolean attributes? If yes, how?Thanks,Michele