Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
0answers
7 views
addView not visible in custom FrameLayout but clickable
I wanted to create a relatively generic ViewGroup container to have it switch to a progressbar and hide it again (+switch to content) when the loading task is ready. This should be easy to use and fit ...
0
votes
0answers
7 views
Multi module project with maven (jpa+spring+root project)
I have done 2 projects in eclipse: JPA and Spring. I need to connect it with Maven but I have no idea how to add existing modules to new parent module. I tried to do it adding modules tag to my main ...
0
votes
0answers
4 views
Reading Sequence snappy with Java MapReduce
I have files in snappy format in Sequence containers. I want a way to be able to read these files using java mapreduce. How do I read sequence snappy compressed files with java map reduce?
The ...
-1
votes
0answers
7 views
Get subclass:es with EntityManager query, JPA
Hej!
Todo:
I want to get a list with all the subclasses.
I have:
abstract class Account
class User extends Account
class Admin extends Account
I want a list with Users's.
My code:
@Entity
...
0
votes
0answers
22 views
Visual Java Program not running (or not visible)
I'm doing a "messenger" style visual program (learning purposes) but when i run it, nothing happens. I'm doing it "visually" on NetBeans 7.3.1.
I have 4, classes but i'll show just 2:
Main:
package ...
0
votes
0answers
4 views
CXF ClassCastException SEIStub / ClientProxy
I have been having a lot of issues getting a CXF application to work. Having chipped away at dozens of issues, I am now facing this one that I don't know how to resolve. I know there are other posts ...
0
votes
1answer
20 views
NullPointerException on getting ManyToMany relation
I got entity Account with ManyToMany to entity Role.
@Entity
public class Account {
@Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
private Long id;
@ManyToMany(cascade= ...
-1
votes
2answers
20 views
How Do I Make my Screen Scrollable in Android Eclipse
This is the XML code I have before I attempt to adjust it to be scrollable:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
2answers
21 views
Control Image with Arrow Keys
I am trying to get my image to move across the screen based on what arrow keys I use. Right now it does not respond to any key I press. For testing purposes I have only tried implementing the use of ...
0
votes
1answer
10 views
Using IntelliJ IDEA with Oracle XE.. I dont see database or table?
I am new to oracle and I am trying to use IntelliJ IDEA Database browser to see my data and my tables..
I did a basic install of oracle xe on my linux computer and the following java code does a ...
0
votes
0answers
7 views
spring mvc javax.imageio.IIOException: Error skipping PNG metadata
i've simple web application where i try to convert html page to png image.using html2canvas then using ImageIO to read this image
here is my error log:
javax.imageio.IIOException: Error skipping PNG ...
-2
votes
2answers
42 views
Best practice to avoid side effects
I have a question about how to avoid side effects on Java objects.
Let us suppose I have an instance myObject of the class MyObject. I would like to process myobject through a chain of ...
0
votes
0answers
16 views
Jave Game Dev: Image flickering?
I'm making a "space-invaders style" game. You(the player) move left and right at the bottom of the screen. There will be one enemy in each window, and you have to move to the window and shoot.
I'm ...
0
votes
0answers
2 views
Icefaces ace:tree how do I the get the currently selected or expanded node
I would to know how to reference currently selected and expanded nodes of an ace:tree. All pages load as expected and the ace:ajax tags fire the listeners when the root node is selected or expanded. ...
0
votes
0answers
5 views
HIERARCHY_REQUEST_ERR while trying to add elements to xml file in a for loop
As the title suggests, I am trying to add elements to an xml doc using a for loop.
I have an ArrayList of strings called names that I wish to iterate through, and for each name create a <user> ...