If I have no to little experience in either of them, but know enough Java and Ruby to be comfortable, is one framework harder to learn than the other? Is one easier to use for the beginner on these?
I know it is hard to answer. Just looking for general thoughts on it.
...
I have a Java app that needs to integrate with a 3rd party library. The library is written in Python, and I don't have any say over that. I'm trying to figure out the best way to integrate with it. I'm trying out JEPP (Java Embedded Python) - has anyone used that before? My other thought is to use JNI to communicate with the C bindings f...
If I have a mapping like this:
<class name="Users" table="users">
<id column="id" name="id">
<generator class="native"/>
</id>
...
<set name="types" table="types" cascade="all">
<key column="user_id" />
<element column="type_name" type="string" />
</set>
</class>
How should the user object b...
This problem has been bugging me for a while. I have to load a couple files in my java app, and the only way I got working so far looks like this:
URL hsURL;
if(System.getProperty("os.name").toLowerCase().contains("windows")) {
hsURL = new URL("file:/" + System.getProperty("user.dir") + "/helpsets/helpset.hs");
}
else {
hsURL = new UR...
I'm not sure if GridBagLayoutManager is the only layout manager that does this, but here is my problem. I have 4 controls layed out horizontally in a GridBagLayout. To keep things simple for this example, each control get's an equal 1/4 of the form, and each control resizes with the same ratio as the other controls. The four controls are...
How to Read word comments (Annotation) from microsoft word document ?
please provide some example code if possible ...
Thanking you ...
...
I have a JFrame with BorderLayout as the layout manager.
In the south border, I have a JPanel, I want this JPanel's size to be adjustable by the user, i.e. the user can click on the edge of the border and drag it up to make it larger.
Is there any way you know that I can do this?
...
Is a combination of SCJP, SCWCD and Oracle programmer certification useful for a fresher to get off campus placement?
I am fresher B.E. (Computer Science) passed out from Thapar University, Patiala in India. It's one of the top 20 colleges for engineering in India.
I got one offer from GlobalLogic Pvt. Limited on campus and one tempora...
I am looking for an automatic class diagram generator in Eclipse. It will look at a project and automatically create a class diagram without needing to run the code.
What is your favorite class diagram generator for Eclipse?
...
I see this parameter in all kinds of places (forums, etc.) and the common answer it help highly concurrent servers. Still, I cannot find an official documentation from sun explaining what it does. Also, was it added in Java 6 or did it exist in Java 5?
(BTW, a good place for many hotspot VM parameters is this page)
Update: Java 5 does ...
I'm using Apache Commons VFS (Virtual File System) to access some files over SFTP. Does anybody know how to check if an instance of org.apache.commons.vfs.FileContent is folder?
...
hello ... iam having problem writing java applet and link it with html file
java applet is about drawing a pie chart 3 values sales, membership and adds. the code for java applet :
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
/**
* Class AppDemo - write a description of the class here
*
* @author (your na...
I'm researching alternatives to the federally backed CONNECT adapter for building a custom adapter to connect to the Nationwide Health Information Network (NHIN). Is CONNECT the only available solution, or are there other solutions as well?
...
There are thousand articles how to use LineBreakMeasurer to draw multi-line text but there is none about drawing multi-line text taking into account also \n(when you want to force a new line at a specific position in text and not only when the right - or left - margin ends).
The secret seems to lie in BreakIterator, but I couldn't find ...
Hi there,
I'm working with Ant 1.6 and cannot use a "resourcecount" within a "condition". Basically, I'd like to check if a FileSet contains elements according to regex:
<condition property="foo.exist">
<resourcecount when="greater" count="0">
<filelist dir="." files="*foo*" />
</resourcecount>
</condition>
Normally this w...
I am interested in developing things for google apps and android using python and java. I am new to both and was wondering if a environment set in windows or linux would be more productive for these tasks?
...
As a beginner in programming it always bugs me when I run into a walls.
Currently one of the wall are co-depending objects.
As you can see in my question history I'm currently working on a blackberry application, in which I implemented something I call the MVC Pattern, but it isn't exactly what I think it's meant to be.
You see, a no...
I am currently working on 100+ Java Objects created by someone with no JPA/Hibernate experience into JPA Entities. Their Objects reference other objects based on a Foreign Key in the Class itself. All of the primary Keys are generated outside of the database.
For Example (Just to Illustrate)
Car
@Entity
@Table(name="CAR")
public cla...
I'm using javadocs generated by the javadoc Ant task to document a web service, and I want to exclude some constructors from the output. How do I do that?
...
Alex explained what I'm looking for much better than I have:
You want an existing program that
allows you to draw a picture, captures
what you do as you draw, and writes
each action as a Java command. When
you click the "Drawl Oval" tool and
click at 0,0 and then at 50,50, it
would generate the line
g.drawOval(0,0,50,50...