Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.
-1
votes
0answers
26 views
Java how to print two different values from one array
I am striving to print two different values from one array of stored models of computers. At the moment my program print first computer from the index but I cannot get how to print just one of ...
0
votes
0answers
4 views
Android Adding DATE (now) to SQLite database
Currently my SQLite database is working great, I have read up on various methods such as this one to achieve this, though currently I am having issues with setting up the Date constructor and also how ...
0
votes
0answers
2 views
How can I add policy file to the jar applet which is embedded in html file
I have this html
<html>
<title>The Hello, World Applet</title>
<hr>
<applet code=javaapplication4.test.class
archive="JavaApplication4.jar"
width=600 ...
0
votes
0answers
5 views
Is there a way to use Apache Velocity with .properties file?
I've a JSON template in a property file in my project. Is there a way I can use Apache Velocity for embedding dynamic content without using .vm file ?
0
votes
0answers
12 views
How to set text from an edittext from another class
In my application the user presses the TextView and it brings up an intent over the screen where the user enters the text they want.
Here is the case statement
case R.id.Weapon:
W = new ...
0
votes
1answer
14 views
calling within ActionListener
I'm trying to plug my code into my GUI at the moment i can't find a way to call text in the ActionListener with out breaking my code I know there are some things in findAndReplace() i will need to ...
0
votes
0answers
10 views
Adding cssErrorClass to a div
I am using twitter bootstrap for a Spring webapp.
I just added validation and I want to add an error class to the div.controlGroup if validation fails.
Part of view:
<div ...
-1
votes
0answers
19 views
How can I populate a JTable with objects from an arraylist?
I got one class thats called UserArchive where i make an arrylist to fill with objects from my User class by registering a new customer from my GUI class, and then printing it to a JTextArea with my ...
0
votes
0answers
10 views
Push notification blackberry
I am working on blackberry application for the firt time and it require "push notification" to communicate between web server and my app.I want to ask two questions
1.How can I make my web server a ...
0
votes
2answers
15 views
spring-hibernate transaction- changes not reflecting?
I am using spring and hibernate. i have a method annotated with @Transactional. This method has two database calls. one call would update the data in the table and the other call would retrieve some ...
0
votes
0answers
8 views
How to build desktop applications with Apache Karaf/OSGi?
Well im into building OSGi application for a while, but i can't really find some tutorials which show the way to build Desktop Application ( in any languages ) with OSGi/Karaf.
I want to use karaf ...
0
votes
3answers
49 views
Java regular expression bug
I have the following regular expression:
^(MIN|MAX|SUM|AVERAGE):[(\\d+(\\.\\d+)?), ]+$
The rule I am attempting to implement should allow only for strings of the following format:
OPERATION: ...
0
votes
1answer
13 views
MIDI beginner - need to play one note
I don't know very much about Java's MIDI function. In fact, it utterly bewilders me. what I'd like to do however is just build a simple application that will play one note.
How to play a single ...
0
votes
1answer
11 views
Get content author of a component - iparsys
I have a header component,and I have logo component hard coded in the header component. Now I dragged the header component in the iparsys component. I'm able to content author the header component, ...
0
votes
0answers
7 views
weblogic & websphere DataSource configuration
My application has to deploy and run on WebLogic and WebSphere. In CDI bean I use @Resource annotation to inject DataSource.
@Resource(name = "dataSources/example", mappedName = ...