Hello!
I'm trying to write an own layout manager.
Components must be placed and sized relative to each other.
This means: when the user drags or resizes an component, some other
components (but not the one altered manually by user) have to
be altered.
Swing tells the layout manager to layout the components every time when
some of them...
I have a baseclass, Statement, which several other classes inherit from, named IfStatement, WhereStatement, etc... What is the best way to perform a test in an if statement to determine which sort of Statement class an instance is derived from?
...
On the web pages in our app, the trademark symbol (TM) is appearing as a questions mark. The registered trademark (R) works, though. We are displaying the value using the c:out tag in the JSP standard library. If I put ™ or ™ on the page to test this, those show up as they are supposed to.
<td><c:out value="${item.descriptio...
I have searched the internet for an answer to what could be causing "EXCEPTION_ACCESS_VIOLATION (0xc0000005)" in java but I couldn't find anything beyond reinstall your jvm. I know that it is a problem with my code, what in my code could cause this?
This exception always occurs directly after I have Created a Database Connection, and it...
Documentation on Intellij plugin development is scarce. If you have written any Intellij plugin, how did you write tests for plugin? Any pointer to documentation or source code is appreciated.
...
Hi, I'm programming in Java and my applications are making a lot of use of DB. Hence, it is important for me to be able to test my DB usage easily.
What DB tests are all about? For me, they should supply two simple requirements:
Verify SQL syntax.
More importantly, check that the data is selected/updated/inserted correctly, according...
Are the extra J2EE libraries required to run Hibernate standalone Java applications, or is the standard SDK sufficient?
Thank you.
...
My current build file has the following repetitive tasks:
<jar jarfile="${build.lib}/${prefix}-foo.jar">
<fileset dir="${build.classes}">
<include name="com/a/c/foo/**"/>
</fileset>
</jar>
<jar jarfile="${build.lib}/${prefix}-bar.jar">
<fileset dir="${build.classes}">
<include name="com/a/c/bar/**"/>
</fileset...
How can I play individual MIDI notes in a Web page?
I know of two ways to do it:
Write an ActiveX control. Then it only works on Windows. I used to write ActiveX controls a long time ago, but now nobody likes to install them.
Write a Java applet. This is OK if the user already has Java installed, but many users disable applets. Th...
I am looking for any comparative analysis of the Grails vs Struts 2. If any of you gurus have run into issues using Grails. Please do let me know if you have worked on large scale projects that use Grails. Peter Keller had mentioned in my previous post here that Sky News is using Grails. I was wondering if anyone else is using it. It wou...
I'm solving UVA's Edit Step Ladders on an uva sub-site named programming-challenges.com, but since I didn't get at all the format in which I'm supposed to test-input I simply took their sample input, put it into a text file and tested my code from there. Like this:
import java.io.*;
import java.util.*;
class Levenshtein {
private s...
My boss always says to use static factory methods, but I'm a beginner and can't understand it.
Please help me.
What's a "static factory method"?
...
I need to make my Java program as a PlugIn to OME - an Image processing web based s/w having Java API
www.openmicroscopy
...
hi I am trying to run eclipse pdt on ubuntu 8.04 with sun java 1.6 - the workbench screen loads up for a while and freezes, I get an ".SWTError: XPCOM error -2147467262" after that. Any idea how to get ride of it?
...
Hello All,
I am using Struts2 tags for my designing page at front end side.
Now i have a requirement for in my jsp page that i have put 3 simple fields & on some add link i want to so repetitively some another 3 or 4 field at same form dynamically.
For example if user clicks 5 time on add link then 5 time that 3 or 4 field have to sho...
Is there a way to get the value of a HashMap randomly in Java?
...
On Mac OS X 10.5 with Java 1.5, I have this code snippet.
public static void main(String[] args) {
String name = "Алексей";
System.out.println("name = " + name);
}
The output is:
name = ???????
I expected to see:
name = Алексей
How can I make this happen?
...
I have an audio track with an image slideshow - e.g. there's image 1 at 0:00, image 2 at 0:45, image 3 at 1:03 etc. I'm currently using a JSlider to change position in the track. I'd like to have ticks on the slider in the points where images change - but the spacing between ticks is not uniform, so setPaintTicks is not an option. Is the...
How can I get the J2EEServer MBean using JMX query ?
I've tried something like :
mbsc.queryMBeans(new ObjectName("*:j2eeType=J2EEServer"), null)
but no success ?
Have i done something wrong?
Thank you!
...
I am designing a website-based project wherein I first designed my logical layer in Java J2SE application development. Then I made the GUI in J2EE for website. I am importing my J2SE files in J2EE architecture using JSTL and I will call the data using this only. But it is giving me an error as follows:
for-each loops -- for-each loops ...