Hello!
I am new at using Jtable and I need some help. I want to write the following CODE to display data from queue in the table
a problem : the data does not appear in the table
i dont kow what is a problem !!
i need help , please
Source Code :
// class student
public class student {
int id,age;
String fn,ln;
public s...
I want to do some simple sums with some currency values expressed in BigDecimal type.
BigDecimal test = new BigDecimal(0);
System.out.println(test);
test.add(new BigDecimal(30));
System.out.println(test);
test.add(new BigDecimal(45));
System.out.println(test);
Obviously I do not understand well the BigDecimal arithmetics, see output ...
The javadoc says:
Please note that this class is designed to provide convenience rather than high performance. For best performance consider using a custom RowMapper.
How slow is it in the real world?
...
How can I Include Grails generated java class into the grails project?
How can I use the generated class by grails into a java class in the project.
Use my Groovy class into a Java class of the Grails project. Accesing his methods, attributes, etc...
Example:
I have a Domain class like this:
package es.prueba.domain
class Author impl...
Hi everyone,
I'm asking this question given my chosen development frameworks of JPA (Hibernate implementation of), Spring, and <insert MVC framework here - Struts 1, Struts 2, Spring MVC, Stripes...>.
I've been thinking a bit about relationships in my entity layer - for example I have an order entity that has many order lines. I've set...
Is it possible to do Table Inheritance in Java DB? We have a complex code model that uses inheritance and would also benefit from DB inheritance.
Is it possible? It doesn't seem possible from a quick google or a poke around in netbeans.
Cheers
...
two days ago i started using tomahawk ExtensionsFilter components im my jsf application.
i noticed that all javascript alerts were not displaying special characters (ç, ã, ó ô), it displays things like #231 instead.
When i remove ExtensionsFilter from my web.xml file, javascript displays allright.
Anybody had this issue before?
thanks i...
I am getting the following exception when trying to run my jar through java web start:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost /ValidatorWEB/validator.jnlp
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)...
hi, please take a look at this error, how can i fix it?
An internal error occurred during: "Building workspace".
java.lang.StackOverflowError
...
Once an instance of an OSGi service is retrieved from the bundle context does it become invalidated when the service is stopped?
My initial tests show that the service instance can be used even after the service bundle is stopped, which contradicts my understanding of the dynamic nature of OSGi.
I suppose this boils down to what retri...
In a re-implementation of an existing program, I would like to keep the message text that users are familiar with. One of the enhancements I'd like to add is a good keyboard-only interface including mnemonics. But using the intuitive mnemonic character with the existing text gives some ugly results. For example:
useUpperCheckBox = n...
I have a java web start app that uses Swing and needs to allow a user to open a file local on their machine. My application is failing to run because it says that the the single jar I am trying to use is unsigned. I did however, sign it.
In my .jnlp file I am specifying security as:
<security>
<j2ee-application-client-permissions/>
</...
We have a process that outputs the contents of a large XML file to System.out.
When this output is pretty printed (ie: multiple lines) everything works. But when it's on one line Eclipse crashes with an OutOfMemory error. Any ideas how to prevent this?
...
Feature I'm looking for is being component based but not event driven.
I also like the idea of defining component in his parent code but describing its placement and some visual aspects in the template of his parent.
...
This code I have found attempt to track red color in RGB color space,
// red color detection, turn the detected one into white
if (((red > (0.85 * (green + blue))) && (red > 105))
&& ((red - green > 73)) && (((green < 150)
|| ((green >= 150) && (blue > 140))))) {
// set the pixel to white
red = 255; gree...
I'm using TinyMCE and the ASCIIMathML javascript library to provide equation editing capabilities on a web page. It's easy to take the ASCIIMathML, convert it to MathML, and then render the equation with any of the wonderful MathML rendering libraries.
What I haven't been able to figure out (and maybe I'm just missing something) is how...
We have the following enumeration:
public enum ComponentTypes {
PDIFF(301),
TDIFF(302),
TADJ(303);
private long componentTypeId;
private ComponentTypes(long componentTypeId){
this.componentTypeId = componentTypeId;
}
public Long getId(){
return this.componentTypeId;
}
}
In one of our...
class PassingRefByVal
{
static void Change(int[] pArray)
{
pArray[0] = 888; // This change affects the original element.
pArray = new int[5] {-3, -1, -2, -3, -4}; // This change is local.
System.Console.WriteLine("Inside the method, the first element is: {0}", pArray[0]);
}
static void Main() ...
Hi
Our project must be able to run both in Oracle and SQL Server. The problem is we have a number of HQL + native queries with non-standard operators (i.e. bitand and || ) and functions ( i.e. SUBSTR ) that work fine in Oracle but not in SQL Server.
I wonder if Hibernate is capable of translating them dynamically. I suppose that with ...
Using Spring, I can get all beans of a certain type that are currently defined using this:
@Resource
private List<Foo> allFoos;
How does Spring do this? I thought type information of generics was erased at runtime. So how does Spring know about the type Foo of the list and only inject dependencies of the correct type?
To illustrate: ...