I swear... i hope this is the last question I have to ask like this, but I'm about to go crazy.
I've got a JTable using a custom TableCellRenderer which uses a JEditorPane to display html in the individual cells of the JTable. How do I process clicking on the links displayed in the JEditorPane?
I know about HyperlinkListener but no mou...
I'm just beginning to grasp the setup of maven2 while porting over a simple project of mine. I've ran through the package command line example on the Sonatype web site but I'm a bit confused of how I could expand and change the packaging of this project. I've tried to find more information on this subject but I think I'm either thinking ...
We are using XPath in a Java app and I was wondering: How do I select a set of nodes where the "terminating point" is a node not belonging to the same kind as it's siblings.
For example, I want to get two sets of <a> tags of size 3 and 2 from the example below:
<sample>
<a />
<a />
<a />
<terminating />
<a />
<a /> ...
I just inserted 1million records into a simple sqlite table with five columns. It took a whooping 18 hours in java using the jdbc drivers! I did the same thing in python2.5 and it took less than a minute. The speed for select queries seem fine. I think this is an issue with the jdbc drivers.
Is there a faster driver for sqlite3 in jav...
How can you access the REQUEST_URI from within a Struts 2 Action? In perl/php/ruby it is readily available via ENV["REQUEST_URI"] and the like. In java it seems that the PageContext.getErrorData().getRequestURI() is what I'm looking for, but sadly, the PageContext does not appear to be defined within the action, either because the ErrorD...
I have to add text or background image as "DRAFT" for report when it match certain condition.I have to dynamically enable or display birt report back ground text ?
I am looking forward to hear any ideas.
Thanks In Advance.
Thillakan.
...
I've been a LAMP developer for 5+ years. I have learned quite a bit on my own, but I feel like my "context" as a software developer is limited (ie. I can only create scripts & web applications). Ultimately I'd like to be able to create a range of applications from daemons to desktop apps. Additionally I'd like to learn more about the "in...
Consider that I have written "File" at the top left corner and then how can I add a button at the top right corner?
public class FileViewer extends JPanel
{
private static final long serialVersionUID = 1L;
public void paintComponent(Graphics g)
{
Graphics2D graphic = (Graphics2D)g;
graphic.drawString("HTML ...
Possible Duplicate: How do you kill a thread in Java?
I need to stop doing some big task by sending the interruption signal to the Thread. I am using most of the APIs from java.util.concurrent.*. My task is send to the Thread and is executed. This task comes from the client so I do not have any control over that code.
Task are someth...
When Finder of Mac, Explorer of Windows did drag & drop of a specific item in the Swing application to a desktop and a folder,
How to get the former path which I dropped?
I am happy teach me a necessary class and method.
...
I read
FileTreeDragSource
Can I get file path from Swing to explorer.
Not explorer -> Swing!!
Swing -> explorer
I wanna get path with explorer
...
Hi All,
How to raise custom events and handle in Java. Some links will be helpful.
Thanks.
...
Hi is it the best, if I need to trim what user sends in a form to trim it in ActionForm?
e.g:
I have MyActionForm class in which I have property
private String name;
public void setName(String name) {
if(name!=null) {
this.name = name.trim();
}
}
Or is there any other good way?
thx.
...
I'm reading from a Java Socket in a loop.
I want to re-open the socket if a read throws an exception.
In an attempt to test that, I simply close the socket and catch the exception.
The catch is, when I attempt to re-open the socket:
serverSocket = new ServerSocket(port)
socket = serverSocket.accept()
it throws an exception:
java.n...
What I need is to encrypt string which will show up in 2D barcode (PDF-417) so when someone get an idea to scan it will get nothing readable.
Other requirements are - that should not be complicated, it would not consist of RSA, PKI infrstructure, key pairs etc. It must be simple enough to get rid off of the people snooping arround, and...
Hi everybody,
We're currently using amazon-a2s-2007-10-29-java-library.jar to interact with the Amazon Webservices or Product Advertising API, respectively.
We don't see a way how to implement signed requests (mandatory from Aug 15) using this library, nor can we find an updated version supporting signed requests.
There does not seem ...
I have a servlet calling a session bean via a local interface. There is a 3 second pause between the last statement of the session method and the statement following that method call in the servlet.
I have identified what statement in the session bean causes the extra delay upon method return, but I just have no idea why there is such ...
Hi,
I'm in the process of internationalising some JSF files so am externalising strings (and the concatenation of strings using placeholders). I have very little experience with JSF (today and yesterday) so excuse me if there is an obviuos answer to my question!
I have been using the h:outputFormat tag (and the f:param tag) successfull...
Is it posssible to have the previous value of checkbox alongwith new value?
My problem is, i have to execute some code, only if the value of checkbox is true, also if it was already true, then i am not suppose to perform the same action again.
Currently what i am doing is , for every checkbox i am having previous value holder too. If t...
how do i stretch a row when data overflows the band height in jasper reports, I have set the stretch with overflow flag as true but it doesn't work.
...