I have an HTML document being displayed by a JTextPane that works very nicely. I have some buttons that I interact with using ActionListeners for a ButtonModel, and I hook into state links (#foo) to handle simple internal app links.
My problem is that I have a INPUT element that I need to change the "value" of so the text changes in the...
i configured spring with transactional support. is there any way to show log on transaction in log?
just to ensure i set up correctly? showing in log is a good way to see what is happening
...
Why do we have length of an array as an attribute. array.length and for String we have a method str.length()?
Just came in my mind, is there some reason?
...
Hi,
I created a JApplet which uses two external libraries (JENA and JUNG). The applet works correctly when i run it from the IDE (using eclipse). I created a jar file, signed it (since the applet needs to read text from disk), created an HTML page to hold the applet, however when i try to run it in a web browser i get the java security ...
reading appfuse example, it only guide you with prebuilt login screen etc...and start build from there. if i have an existing project and i only interested to use appfuse to generate service/dao layer from database. how to do it? what dependency i need to add into my existing project? can provide some guide
...
import java.sql.*;
// I think this is a poor abstraction
public class NewConnection {
/*very important: dont use statics for your Connection, Statement and Query objects,
since they can and will be overriden by other Instances of your NewConnection.*/
// There's no need at all for having class members here. It's actually
// a ...
In some projects, I have to deal with more than one programming language (for example a Delphi GUI application which communicates with an C# or Java app). The Subversion repository currently contains three top branches, one per language.
Should I change this and group all parts of the project in the trunk like in the following example ...
Hey SO
When running my
@Override
public void updateScene(int x, int y)
The code the runs takes a little to long, and a user can click on a java3D object before the code has finished running and my RotationInterpolator can't keep up I cant change the Alpha on the RotationInterpolator as this is what the button updates so im looki...
I need to generate a PDF from a JSP JSF page. I have searched the net, but I didn't found any examples of how should I do this. I need to transform the whole page, or maybe only the charts that I have on that page.
P.S. I'm also using IceFaces.
...
Its been habitual in most of the scenarios while developing a database design we set primary key as integer type for a unique identifier in the Table , Why not string ,float type for primary keys does this affect the accessibility of values or in plain words retrieval speed of values from the table will be slower ? Are there any specif...
Does a library or script exist to convert between NumPy and JPype arrays?
...
I have these classes that I use to create objects that I want to store at runtime
Class Person
String name
Pet[] pets
Class Pet
String name
Person[] owners
boolean neutered
At first I used these HashMaps to store them
HashMap people
HashMap pets
But I wanted to make the implementation concurrent so I changed th...
How would I go about setting the default font for all JLabel instances. Instead of setting the font for each JLabel independently.
...
I'm running GlassFish 2.1 and using NetBeans 6.7. I'd like to create a web interface to my data using JSF 1.2. Trouble is, I'm not sure which 'faces' technology to learn (that includes some good documentation). JBoss/RichFaces seem pretty good on documentation, but I'm using GlassFish.
Any thoughts? The choices appear overwhelming:
...
As a JCombobox ListCellRenderer, I have a class like this one:
class ZComboBoxRenderer extends JPanel implements ListCellRenderer{
private ZGrid grid;
public ZComboBoxRenderer(ZGrid grid) {
setLayout(new BorderLayout());
this.grid = grid;
add(new JScrollPane(grid), BorderLayout.CENTER);
}
public ZGrid getGrid(){
return g...
I am looking into using Buffer Strategy and the following technique described on the Javadoc:
// Main loop
while (!done) {
// Prepare for rendering the next frame
// ...
// Render single frame
do {
// The following loop ensures that the contents of the drawing buffer
// are consistent in case the underlying surface was re...
I'm still learning how to set up these mappings using the JPA annotations so this may be a beginner mistake.
I have a User class and a Course class. In the database each Course has a User foreign key in each row (think of the User as the teacher teaching the Course). So each User can have multiple Courses, but each Course has only one U...
Where can I find documentation about the binary data format outputted by javazic (the files shipped in Debian's tzdata-java package)?
The standard format used in /usr/share/zoneinfo has no explicit concept of daylight savings time versus standard time. It only knows about a timezone having different offsets from UTC at different times o...
I want to convert my Resultset to List in my JSP page. and want to display all the values. This is my query:
SELECT userId, userName
FROM user;
I have executed that using preparedstatement and got the Resultset. But how to convert it as a List and want to display the result like this:
userID userName
------------------
1001 ...
Hi I am messing around with google ajax api at the momemt and following the examples from the documentation I have two script tags in my html file:
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">google.load('search', '1');</script>
All works fine, but it...