Looking for suggestions for announcement

932 byte By PeterAhea at 2007-11-26 12:19:58
I'm thinking about posting an announcement (a post that will alwaysappear at the top). The topic I'm thinking about is "READ THIS BEFOREPOSTING".The content would be something like this:This forum is for discussions about generic types. This forum is notfor general questions about Java ...

defining an anonymous user desktop in XML

614 byte By beejaymurphy1a at 2007-11-26 12:19:59
I'm trying to define my basic portal organization and corresponding portal settings in an XML file and while I can get most of it done and working, I'm not sure how I can define the desktop of an anonymous user.I've been look at the docs and the amAdmin.dtd and at this ...

global Methods inside JSPs

606 byte By Adelxa at 2007-11-26 12:20:02
hi everyone, is it possible to create Global methods inside JSPs so that all my JSPs can access them. notice that I am not looking at helper classes or simialr solutions. I want to be able to do the following inside my JSP<%= getname("test") =%>on solution I thought of is to make the JSP ...

PostgreSql - Table Error

832 byte By ali.kelesa at 2007-11-26 12:20:03
Hi,I am using PostgreSql 8.2 with Netbeans Visiual Pack. I am tring for three days to get vales from database and show them in the table with RowSet. As they say it is simply to show database tables in your web projects, it doesnt happen in my project. I get the following errors and it didnt ...

T3+ cyclic reboot

3371 byte By alex_pa at 2007-11-26 12:20:04
HelloI have certain T3+ array that cannot boot correctly, instead constantly rebooting in cycleIn terminal I have the following ...T3B-EP Release 2.00 2001/06/22 16:07:00 (192.168.11.163)Copyright (C) 1997-2001 Sun Microsystems, Inc.All Rights Reserved.Found units: [u1-ctr]auto boot is ...

How to create/ export Mysql Bean to be use in DreamWeaver 8

185 byte By U_arsia at 2007-11-26 12:20:05
If possible, I want to generate JSP pages in NetBeans5.5 containing forms and beans for a database and then export the whole thing to be use in Dreamweaver 8.Please advice

Exception Handling Within Methods

372 byte By MattMcCa at 2007-11-26 12:20:06
I'm currently looking over exception handling within Java and have what whats probably a very simple question to answer!If within a method I have a try and catch block to handle all exceptions that the specific method may throw, do I then also need to specify the exceptions that the method ...

URGENT: Unable to Display "Live Threads" in JConsole

368 byte By ACaycia at 2007-11-26 12:20:07
Hi,I can connect to JConsole and display "Number of Threads" graph fine. But I don't see anything under "Live Threads". I tried with both JDK 1.5.0_06 and JDK 1.5.0_05.I noticed under VM, it is only showing oc4j.jar but tools.jar is missing. Has this anything to do with it?I would appreciate ...

Browser closes due to error

1276 byte By Bart69a at 2007-11-26 12:20:08
Hello, we are running Rational Functional Tester on a RAD server using JDK 1.4.2 and when executing some Java code, we are seeing the following error, which causes our browser (IE6) to just simply close. Any ideas or does anyone know where I could look to fix this problem?An unexpected ...

what's it called?

349 byte By yellowrosea at 2007-11-26 12:20:09
hello i am rather new to java. i want to create a form that when i click a button on it opens another window. i have several books but i don't know what this is called so can't look it up!!! i have looked through the books quite a bit but nothing is screaming at me. Can anybody tell me the ...

checking if a directory is empty

185 byte By d_rotha at 2007-11-26 12:20:10
hi all,can anybody explain please how can i check if a directory is empty or if it is containing any files inside it ?thanks in advance,Regards,D.Roth

code for a search engine front end

623 byte By mkoryaka at 2007-11-26 12:20:11
I am implementing lucene on my site, i wrote some code that shows something like this:displaying results 11-20 of 34341. url / description2. url / description....page 1, 2, _3_, 4 .. 25 [next] [prev]for some reason i found this not so easy to write as i thought. calculating all those ranges ...

Policy Agent 2.2 - problem on installation

669 byte By benb99a at 2007-11-26 12:20:12
Hi,I've seen this problem listed here a while ago without any solution.1- I install my Java Web Server 6.1 under C:\Sun\WebServer6.12- I start the server, no problem.3- I install the proper Policy Agent, installation seems fine.4- In order to see the changes, I stop the server and then it ...

Adding Text Field for input

9064 byte By tk3445a at 2007-11-26 12:20:14
/* * File: CyberPet.java * Author: Java, Java, Java * Description: This class represents a CyberPet that can * eat and sleep on command. This version incorporates * a public getState() method to report the pet's state. */public class CyberPet {private boolean isEating = true;// CyberPet's ...

Performance of IE7?

798 byte By MCorazao3a at 2007-11-26 12:20:15
I have an applet that displays a map in a graphics panel. This applet runs fine under IE6, but with IE7 I seem to run into performance problems. Whenever a dialog box is dragged over the graphics, the shadow of the dialog remains behind, and it takes a long time before all the display is up to ...

reference to this

255 byte By metdosa at 2007-11-26 12:20:17
{ Matrix temp=new Matrix;this=temp; (It is not allowed)return true;}this function is in Matrix classis there any way to do this?I want to change where point these object to temp. Thanks

getRuntime.exec spawning multiple processes

2377 byte By d0gmatica at 2007-11-26 12:20:18
I am having a very weird issue, which I have been trying to debug for a while. I am executing a command on a unix box using:Process proc = Runtime.getRuntime().exec(command, null, workDir);proc.waitFor();Where the command is the "zip" program which zips several files up selected by the user. ...

How to keep Allways JFrame on top of JApplet?

431 byte By harry_singha at 2007-11-26 12:20:19
I have Japplet runs on the client side. after pressing buton on the appleta jframe pops up. but if i click on the japplet it hides under japplet.Any ways to keep this jframe on the top ? if i use jframe.keep always on the top will thought security exception. I know applets have some security ...

Copy data from one JTable to another JTable.

213 byte By EikHorsa at 2007-11-26 12:20:20
Isn't there an easy way to copy the content from one JTable to another JTable?Both tables have the same columns. The one may not refere to the other, as they later on should be able to be different.

Executing Commands In Java

1219 byte By dgriera at 2007-11-26 12:20:21
I already know how to execute a system command in Java, but I'm having trouble with a particular multi-line command.Process p = Runtime.getRuntime().exec("telnet www.nameofsite.com 80");There is more that follows that command:The entire command that needs to be executed is:telnet ...

SOAP Faults with attachments

568 byte By bspruitta at 2007-11-26 12:20:22
I am wrestling with how to send back an attachment when a fault occurs. Currently, I embed in the SOAP Body a tag with a href attribute set to the cid of the attachment. This is using the guidelines in the SOAP with attachments spec.But, the SOAP spec states the SOAP Fault tag is the only tag ...

NEED a java coder to help with a script for a programs of mine.

724 byte By chaddy20a at 2007-11-26 12:20:23
I play a game, very competitively, and need someone to make and compile a script for me. I am willing to pay upwards of 100 USD for this script made to MY standards. There will be a lot of work involved...Probably 12 hours studying my game and the purpose of the script(s). I will be buying 2-3 ...

looking ahead in the list with iterator

1105 byte By bhaarat_javaa at 2007-11-26 12:20:25
HelloI am trying to look at the NEXT (not current) element in the list. so i am doing something like thiswhile (dt.hasNext()&& i<5 && num!=nextnum){DateUIObject srvdt = (DateUIObject) dt.next();num = srvdt.getPosition();nextnum = ((DateUIObject) ...

j2ee version 1.2.1 installation problem

942 byte By oas_999a at 2007-11-26 12:20:27
Hi allI am having problem running j2ee version1.2.1I have installed j2ee version 1.2.1 in Windows XP in C:\j2sdkee1.2.1 directory.then I created following environment variables:J2EE_HOME=C:\j2sdkee1.2.1JAVA_HOME=C:\PROGRAM FILES\JAVA\JDK1.5PATH=C:\Program ...

Java 1.5.09/10 Java Applet on Vista - starts but never downloads files

1118 byte By matthewleara at 2007-11-26 12:20:28
We are attempting to test a java 1.5.07 compiled and signed Java applet with Windows Vista (from MSDN).Logged in as an administrator on the client PC, we installed the 1.5.09 and the 1.5.10 JRE on the client.We then changed the html of the applet page to specifiy the new plugin version so it ...

SystemTray difference between Debian and XP

443 byte By aranzugliaa at 2007-11-26 12:20:29
Hi, I'm trying the new SystemTray functionality. In XP I get the following events when I press a mouse button:- mousePressed- mouseReleased- mouseClickedThat is ok, but in Debian with KDE I only get the following when I press the right mouse button:- mousePressedWith the left button it works ...

how to make what is in textfeild be displayed

9269 byte By tk3445a at 2007-11-26 12:20:30
/* * File: CyberPet.java * Author: Java, Java, Java * Description: This class represents a CyberPet that can * eat and sleep on command. This version incorporates * a public getState() method to report the pet's state. */public class CyberPet {private boolean isEating = true;// CyberPet's ...

Tree Structure

291 byte By Sabi@Suna at 2007-11-26 12:20:32
Hi ,I am new to Swing. I need some ideas to proceed with my project.I have an xml file I need to parse it and represent as a tree structure.The user can add delete nodes in the tree and save to an xml file.Any ideas are greatly appreciated.Thanks,SS

Stripping characters from the end of a string

303 byte By Unconditionala at 2007-11-26 12:20:33
I have a string which looks like this:www.webpage.com/index.htmlI need to strip the 'index.html' part from it.What is the best way of doing this and storing it into another string?Converting to a char array and using loops seems a messy way of doing ...

Store the session data temporary

446 byte By abualmajda at 2007-11-26 12:20:34
HiI'm a beginner in JSP, and I started to design a webpage to ebook store site.I have a problem with saving the session data , because i didn't want to use data base in may site. and that data will used in the later pages in the web site. as example : if the user needed to add more than one ...

Architecture for Backtesting Program

972 byte By jbraswella at 2007-11-26 12:20:35
Hi, I'm fairly new to Java and to programming, but I just finished a fairly accelerated intro course in Java, and I'm eager to keep practicing my coding skills.I want to write a simple backtesting program for trading. (I know there are already lots of platforms to do this, but I wanted to do ...

Adding script to Available Scripts in Configuration Task

464 byte By squibbydoga at 2007-11-26 12:20:36
I'm following the instructions for creating a Configuration Task here: http://docs.sun.com/app/docs/doc/817-7961/6mn8bt797?a=viewMy question: How do I get a new script added into the Available Scripts in the Edit File Set window? All that shows up there is email.sh, and I would like to add a ...

design patterns in log4j

261 byte By techy2001a at 2007-11-26 12:20:37
hi i have a question that was asked to mewhat pattern does log4j appender(consoleappender,rollingfileappender etc) implement?candidates can be dao, facade etc....can somebody xplain what pattern does it use and howtechy

Not able to deploy netBeans visual web application on remote tomcat server.

1024 byte By Dabbu_Bhaia at 2007-11-26 12:20:38
Hi,I am new to Studio creator and Netbeans and facing a problem. If I develop an application using visual web pack and try to deploy on other tomcat server then it's giving error. If I deploy simple web application with text boxes and labels only then it is working properly but if I use table ...

One question about Regular Expression!!!

727 byte By hairena at 2007-11-26 12:20:39
I need to creat such a regular expression to match the format "[ ][ ][ ]".For example, there is a context, (1), " The project manager defines [1][0.400][+goals] for iterations."Suppose that there are some spaces or "\n" characters in this way, (2), " The project manager defines [1 ][ ...

Need help with the text output here... kinda a newbie..

5153 byte By ustridenta at 2007-11-26 12:20:40
Alright the problem I am having is with the output of this program. It does not appear to calculate the mortgage formula correctly and outputs some other data that does not make any sense. here is the code. Any help on this matter would be great!!import java.awt.*;import javax.swing.*;import ...

project is still running after undeploy

701 byte By Bgollifera at 2007-11-26 12:20:41
Does anyone have a solution as to how to "kill" a project when it has been undeployed and seems to still be running. I have some projects that write to a file client as a log and I can see the log growing so I know that it is running even though I have undeployed it. When I stop the domain this ...

How to set up disk space on Sun Sparc machine correctly. Please help.

1129 byte By duke0001a at 2007-11-26 12:20:42
I am not very good at UNIX and seek help here. I tried to install Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this:/dev/dsk/c0t0d0s05104758 4854293 19941897%//devices0 000%/devicesctfs0 ...

Store Running Threads information

292 byte By tlloretia at 2007-11-26 12:20:44
Hi!I have a multithread web application and i would like to know where can i Store current threads information . This information should be accesible even if I close the browser and I open it again with another sessionWhat do you suggest to do this?ThanksT.

how to download a file or a string

291 byte By Nikhil_Guptaa at 2007-11-26 12:20:45
Hi,we are building a custom report from end user menu. We want to download the contents of the table( which is nothing but a string) to our local desktop.Does IDM provide any feature to help export/download some content onto the local machine?Thanks,Nikhil

How to get encrypted session key form PGP message ?

111 byte By zzzZZZ123a at 2007-11-26 12:20:46
maybe somebody will paste code, because i have no idea how to do it.thx in advanceMarianno

jtable row highlights

676 byte By Mickey123a at 2007-11-26 12:20:47
I guess i am not sure how to implement jtable search highlights. I want to preserve the highlighted rows from the previous search in one color and add the new search results highlighted with a different color.Doing setselectionbackground() seems to set the background for all the selected rows ...

is FTP a good option here?

271 byte By choghoka at 2007-11-26 12:20:48
From several computers, I'd like to transfer some files(txt or xml) to /var/incoming/ directory of a central sink (a computer) using internet.What's the best way to do it? Is FTP a good approach? any other suggestion? sample code is greatly appreciated :)

Relationship between JAX-WS and Java SE 6

861 byte By swellinga at 2007-11-26 12:20:49
I installed SE 6 today and tried to create a few new web services (following some online tutorials). I am seeing a few problems, however.1. The wsimport and wsgen ant tasks don't seem to be included (although the command line tools are).2. The class ...

Two Questions?

137 byte By Eng_mohameda at 2007-11-26 12:20:51
1) how can i make an image flashing ( appear & disappear ) in JLabel?.2)how can i make it rotate?.plz need help!

Flashing & Rotate image problem!

137 byte By Eng_mohameda at 2007-11-26 12:20:55
1) how can i make an image flashing ( appear & disappear ) in JLabel?.2)how can i make it rotate?.plz need help!

How can I get the Connection in JSF?

284 byte By Fast_Franka at 2007-11-26 12:20:56
Hello,The code below is not working.Connection conn = tblusersRowSet.getConnection();Statement stmt = conn.createStatement();ResultSet results = stmt.executeQuery(query);How can I use a current connection in jCreator?ThanksFrank

Programmatic method to add users, groups, realms, etc?

308 byte By codebooka at 2007-11-26 12:20:57
Is there a way from within a Java EE app (a stateless session bean or web service) to create and add new users to a security realm? I want to be able to make a little Swing GUI widget within my app that lets anyone with admin access go ahead and create new users for the application. Is this ...

.equals question help please

490 byte By Progr@mera at 2007-11-26 12:20:59
Hi again all,Is there anyway you can compare two things in a .equals statement.For example.If(symptoms.equals("headache" || "head hurts")){System.out.println"BLah blah blah");}I tried that but it gives a weird error so i was wondering is there ANOTHER method i need to combine to make that to ...

LDAP

621 byte By Amandaa at 2007-11-26 12:21:00
I am a student looking to use LDAP in a Web Application. We are uploading files, storing them and retrieving them. We are using netbeans, the application server and Google Web Toolkit for the upload and interface. My school has an LDAP server, but I am not sure how to connect to it. Also I am ...