Possible to display external web page?

1061 byte By bronze-starDukes at 2007-11-26 12:10:45
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 ...

problem with println

2338 byte By bronze-starDukes at 2007-11-26 12:10:46
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 ...

SUN TEAM!!!! Forum search not working!!!

291 byte By bronze-starDukes at 2007-11-26 12:10:47
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?

Animated GIF question

317 byte By bronze-starDukes at 2007-11-26 12:10:48
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?

52 byte By bronze-starDukes at 2007-11-26 12:10:50
What is better Java Logging or Log4J and why?

Put doesn't work

1388 byte By bronze-starDukes at 2007-11-26 12:10:51
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 = ...

package javax.jms does not exist

324 byte By bronze-starDukes at 2007-11-26 12:10:52
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 ...

server side cursor with sql server 2000

4747 byte By bronze-starDukes at 2007-11-26 12:10:53
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 -> ...

JSF Page Sizing

433 byte By bronze-starDukes at 2007-11-26 12:10:54
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 ...

Source not found error in Eclipse

452 byte By bronze-starDukes at 2007-11-26 12:10:55
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 ...

connect to database

84 byte By bronze-starDukes at 2007-11-26 12:10:56
could you suggest a jdbc driver that can connect to both mysql and postgresql

Removing output from my logging

707 byte By bronze-starDukes at 2007-11-26 12:10:57
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 ...

umount a filesystem

343 byte By bronze-starDukes at 2007-11-26 12:10:58
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 ...

How to obtain the form name within a jsp?

264 byte By bronze-starDukes at 2007-11-26 12:11:00
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

Text Feilds

956 byte By bronze-starDukes at 2007-11-26 12:11:01
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 ...

Load for a JSP

344 byte By bronze-starDukes at 2007-11-26 12:11:02
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 ...

Find memory usage

250 byte By bronze-starDukes at 2007-11-26 12:11:03
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

strange problem about the execution speed time

1071 byte By bronze-starDukes at 2007-11-26 12:11:04
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 ...

Swing Threading Question

1235 byte By bronze-starDukes at 2007-11-26 12:11:05
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 ...

Desperately seeking design patterns

750 byte By bronze-starDukes at 2007-11-26 12:11:06
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 ...

error handling

227 byte By bronze-starDukes at 2007-11-26 12:11:08
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

JNI Woes: UnsatisfiedLinkError

4713 byte By bronze-starDukes at 2007-11-26 12:11:09
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 ...

Keyboard input failure in 2nd java applet

864 byte By bronze-starDukes at 2007-11-26 12:11:10
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 ...

Report without the first record using JasperReports

310 byte By bronze-starDukes at 2007-11-26 12:11:12
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 ...

Sol 8 - Pam prompts for old root password

309 byte By bronze-starDukes at 2007-11-26 12:11:13
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 ...

Problem developing web services on netbeans 5.0

16190 byte By bronze-starDukes at 2007-11-26 12:11:14
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 ...

Dynamically Sized JSPs

732 byte By bronze-starDukes at 2007-11-26 12:11:15
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 ...

JTextPane.setText() before addUndoableEditListener(), but still undoes it

1372 byte By bronze-starDukes at 2007-11-26 12:11:16
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 ...

Trouble Converting String to int array?

557 byte By bronze-starDukes at 2007-11-26 12:11:17
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; ...

Algorithm efficiency

519 byte By bronze-starDukes at 2007-11-26 12:11:18
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) ...

How to declare an exception like this?

165 byte By bronze-starDukes at 2007-11-26 12:11:19
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.

Null Pointer Exception in ObjectInputStream.class

1211 byte By bronze-starDukes at 2007-11-26 12:11:20
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 ...

Timing question

855 byte By bronze-starDukes at 2007-11-26 12:11:21
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 ...

Proxy Server

664 byte By bronze-starDukes at 2007-11-26 12:11:22
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 ...

Reflection problems with null pointer exception

437 byte By bronze-starDukes at 2007-11-26 12:11:23
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 ...

How do you share a Solaris directory?

158 byte By bronze-starDukes at 2007-11-26 12:11:24
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!

AM7 - Cold fusion integration?

229 byte By bronze-starDukes at 2007-11-26 12:11:25
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

error in arrays object

999 byte By bronze-starDukes at 2007-11-26 12:11:26
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 ...

How to prevent scrolling if you have two Jpanels in a JScrollPane

601 byte By bronze-starDukes at 2007-11-26 12:11:27
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 ...

Question for duffymo only..Okay, maybe KelVarnson too

67 byte By silver-starDukes at 2007-11-26 12:11:28
duffymo, do you think your Celts are gonna pick up AI today?

AVTransmit3, AVReceive3: see image couldn't hear sound and vice versa

224 byte By bronze-starDukes at 2007-11-26 12:11:29
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

Strings setFont JPopupMenu

446 byte By bronze-starDukes at 2007-11-26 12:11:30
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 ...

WebLogic 8.1 Download

357 byte By bronze-starDukes at 2007-11-26 12:11:31
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 ...

Problem adding a user to more than 1 group

794 byte By bronze-starDukes at 2007-11-26 12:11:32
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 ...

Is it just me ...

67 byte By platinum-starDukesEa at 2007-11-26 12:11:33
or is "Mark All Threads as Read" back to running like a dog?

Running multiple IE sessions each using different version of RE

1305 byte By bronze-starDukes at 2007-11-26 12:11:34
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 ...

What happens after a CORBA object is destroyed?

79 byte By bronze-starDukes at 2007-11-26 12:11:35
Hi,How do we know if a CORBA object gets destroyed?Thanks.

Launch a background process

224 byte By bronze-starDukes at 2007-11-26 12:11:36
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.

Minimizing paintComponent () Work - Optimizing Performance

1413 byte By bronze-starDukes at 2007-11-26 12:11:39
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 ...

Query with boolean values

124 byte By bronze-starDukes at 2007-11-26 12:11:40
Hi all,is it possible to create query which check boolean attributes? If yes, how?Thanks,Michele