I want to create something like this http://flowplayer.org/tools/demos/scrollable/index.html but in Java Swing. I dont need all those effects, just scrolling of thumbnail images. Is good aproach to use toolbar and ImageIcons, and then on click load image on some JPanel.
Is there any common practice for this ?
...
I have set up a JFrame like this:
public class XFrame extends JFrame {
public XFrame() {
setSize(100, 100);
}
@Override
public void dispose() {
super.dispose();
System.out.println("Dispose get called");
}
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
...
Let me first give an example. Imagine you have a single server running a JVM application. This server keeps a collection of N equations, once for each client:
Client #1: 2x
Client #2: 1 + y
Client #3: z/4
This server includes an HTTP interface so that random visitors can type https://www.acme.com/client/3 int their browsers and see ...
Hello,
I am writing a multi-threaded application in Java in order to improve performance over the sequential version. It is a parallel version of the dynamic programming solution to the 0/1 knapsack problem. I have an Intel Core 2 Duo with both Ubuntu and Windows 7 Professional on different partitions. I am running in Ubuntu.
My prob...
I am using the recently released Glassfish v3 and while using native libraries glassfish would intermittently complain glassfish SEVERE: java.lang.UnsatisfiedLinkError:
Native Library already loaded in another classloader
The procedure to load native libraries in the previous glassfish release (v2.2) was to simply put the .dll files in...
Hi,
I had seen, only the String is used as a key in HashMap.Although the put() method takes Object as a parameter.What is the significant of it.If any other object can also used as a Key or not?
Please provide the answers.
...
public class A {
static String s1 = "I am A";
public static void main(String[] args) {
String s2 = "I am A";
System.out.println(s1 == s2);
}
}
Above program outputs "true". Both are two different identifiers/objects how the output is "true" ?
My understanding is that the JVM will create different referenc...
I want to make connection between two parts of my program which can be located in departed places.
I have some choices for making this connection:
using PRC/RMI: in every request a calling method will send to second part
using normal function call
using queue(in memory):every request will be placed in a queue and second part will get t...
findCalendarStart: time into Calendar: 1260575897
findCalendarStart: set hour : 13
findCalendarStart: after hour : 1249775897
findCalendarStart: after hour string: Thu Jan 15 11:09:35 UTC 1970
findCalendarStart: set minutes : 13
findCalendarStart: after minutes: 1250015897
findCalendarStart: what calendar returns: 1250015897
I p...
I know that the RoR can do the CRUD easily, but is there any similar framework in Java to make the CRUD easy instead of typing boring SQL statement?
...
I have this frame and I want to delete its table data and then enter some data.
But I have this exception why? Please help me.
my BirthList frame:
public class BirthList extends javax.swing.JFrame {
private Admin admin;
List<Birth> list;
/** Creates new form BirthList */
public BirthList(Admin admin) {
initComponents();
thi...
Hi,
I'm trying to combine some existing Qt code written in C++ with some code written in Java using Qt Jambi, but I'm not quite sure how to do it. I'm basically trying to acieve two things:
Pass a QObject from C++ to Java using JNI
Pass a Qt Jambi QObject from Java to C++
It looks like I can pass the pointer directly and then wrap i...
This is Jsp page taglib : <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
ERROR :
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exc...
hi.
i'm making a calculator and need to get my buttons to work but i don't know what to do.
i have 2 ways of inserting numbers.
1) physically write the number in the field
2) push a button and the corresponding number should appear in the field.
i don't need the +-*/ and only 1 input is needed. when = is clicked my formula (number -1 ...
Hello,
I was wondering which is the best way to extend Java syntax and include other things.
I mean something like Groovy or other langagues based upon Java, that keep backward compatibility
The most efficient way should be to actually generate .class files without having to interpret them but letting the JVM do the dirty work. How ca...
I don't want to calculate a file's checksum, just to know if a given string is a valid checksum
...
Possible Duplicate:
How to cast generic List types in java?
When this is feasible
Number number = new Integer("");
Why not this ?
List<Number> list = new LinkedList<Integer>();
...
Is it possible to have more than one tapestry5 module in one web application? Every Tapestry module has an AppModule.java file, which if i'm correct, is supposed to handle only one context, is it possible to have multiple of these AppModule.java.
...
i have deployed my application on jboss 3.I have restored a database back up of sql server 2000 on sql server 2005.then i have downloaded the jr file jdbc connection to sql server 2005.My connection string setting is as below.
<datasources>
<local-tx-datasource>
<jndi-name>SLBDataSource</jndi-name>
<connection-url>jdbc:sqlserver:...
when using spring @Transcational on service layer, I will need to put <annotation driven> on xml file.
may i know can javax.jdo.annotations.Transactional be used on service layer just like spring does? do not need to configure xml files. etc?
can javax.jdo.annotations.Transactional be used on service layer independent on whether i usi...