Hi all -
I need to take a .swf Flash file, ideally from a URL (but I can read the file from disk also) and create an image preview of it (png, gif or jpeg is fine).
I am using Adobe Coldfusion 8 so I'm looking for a Java solution. I need to get the first frame of the Flash movie only.
Many thanks in advance.
EDIT: I need to do th...
I have a data model with a skeleton (metadata) and large data objects. I'd like to keep the skeleton in memory and hold weak references to the data objects. I understand how I would implement this with plain Java, how I would create a WeakHashMap and clean up etc. But I'm wondering what would be the best way to resurrect the data objects...
Hi there,
I'm currently trying to receive key events during a drag and drop, but it seems to me that the focus is taken away while dragging so that I can't listen to any key events.
I'm dragging a JComponent subclass that implements KeyListener and requests the focus in the DragSourceListener's dragEnter method, but my assumption is th...
Ok... I have an unsatisfactory solution to a problem.
The problem is I have input like so:
{sup 19}F({sup 3}He,t){sup 19}Ne(p){sup 18}F
and need output like so:
¹⁹F(³He,t)¹⁹Ne(p)¹⁸F
I use a series of replacements first to split each of the {sup xx} sections into {sup x}{sup x} and then use a regex to match each of those and repla...
Hi, can some one point to jqgrid + java web app solution or especially with populating the grid and sending the form back to server. there are several php examples but nothing on java.
Help will be appreciated!
...
Here is the stacktrace and can you figure why its happening? It was working sometimes back but now I am getting this dump. I am trying to authenticate access to google sites using java authsub client library.
Error: Server rejected one time use token.com.google.gdata.util.AuthenticationException: 403: OK at com.google.gdata.client.ht...
I'm in the process of making some changes to a library that I'm using. In order to reduce memory usage the library is writing its temporary data to disk instead of keeping it in memory. However, for my usage scenario it is more efficient to keep it in memory. It also has some concurrency issues, because it has constant names for its temp...
StringBuilder sb = new StringBuilder();
// Send all output to the Appendable object sb
Formatter formatter = new Formatter(sb, Locale.US);
// Explicit argument indices may be used to re-order output.
formatter.format("%4$2s %3$2s %2$2s %1$2s", "a", "b", "c", "d")
// -> " d c b a"
In this case, why is a 2 appended to $?
...
Is there any way for a java servlet/jsp to determine the webserver's session timeout (in seconds, minutes, etc...)? I tried looking in the HttpSession and System API, but didn't see any property for determining the webserver's session timeout. I know that this value is set in web.xml, but I am designing a java library which needs to dete...
I've got a client who already has some applications in production and therefore has already made some decisions about what their production environment will be for this next project:
Sun iPlanet 6.1 SP7 (w/ apache)
JDK 1.6
Oracle Weblogic 10 MP3
Oracle 10g
1024-bit SSL
They also have some corporate standards for web apps:
Tomcat
St...
I want to INSERT a record in a database (which is Microsoft SQL Server in my case) using JDBC in Java. At the same time, I want to obtain the insert ID. How can I achieve this using JDBC API?
...
I am trying to silent print PDF files from within a java application (mroe specifically a J2EE Webapp).
Within this application I am creating PDF files with iText. The files created are form letters, each consisting of exactly one page.
To render and print out this PDF files I tried to use the pdf-renderer library. (See here: https://p...
Is it possible to use NIO with System.in?
I would like to somehow treat 'stdin' as a selectable channel. Has anyone found a way to do this?
...
There is a small dot that keeps trailing the cursor on a Swing application as I move the cursor about over the application frame. What is causing this?
...
Hello,
I have an application that is based on Swing, Spring 2.5.2, Hibernate 3.3.1.
If my application is run from a directory that contains a space character, for example D:\hudson\jobs\FooBar - Fast Build, then I get this error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFacto...
Hi all,
I've a web page that that can be used to upload files.
Now I need to check if the file type is correct (zip, jpg, pdf,...).
I can use the mimeType that comes with the request but I don't trust the user and let's say I want to be sure that nobody is able to upload a .gif file that was renamed in .jpg
I think that in this case I s...
Greetings ,
I have been using GWT for few weeks and wanted a rich Table widget.I came across with SmartGWT library.
Can I use SmartGWT widgets same way I develop using GWT or is there any special things I need to know ?
thanks
...
Here is the setup:
I create public/private key pair with .NET, I want to sign a string.
I take a random string, get a byte[] from it, sign it, and take the signature in the java app. I want to verify it in java ( (!)I'm talking about Android's java).
The process to take the public key to Java environment: When I create the public key, ...
I need to connect to a http server from a phone and play a movie while downloading. I understand that you can simulate this using multiple players (Manager.createPlayer(...)) in J2ME but I dont know how.
Thanks
...
Number n = new Number(5) is illegal, but Number n = 5 isn't. Why?
...