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.
0
votes
0answers
5 views
How to draw lines with java for functions like f(x,y)
i am new to graphics with java and i have a GUI that is incomplete, actually what i need is to plot functions like:
f(x,y) = 100*(x²-y)² + (1-x)²
where : -2.048 < x,y < 2.048.
Can anyone ...
0
votes
0answers
3 views
client server error on 1 computer
I'm writing a little Client - Server Application but have the following problem:
I can start the server without problems but when I try to connect with the Client it says Connection refused: connect.
...
0
votes
0answers
10 views
How to move Jlabel from one JPanel to another
I have many JPanels and one JLabel. When I click on one JPanel I want my JLabel (contains a picture) move to this JPanel. How can this be done by code? I'm coding in NetBeans.
0
votes
1answer
13 views
Get a value from JDialog to the parent JFrame
I added a jDialog Swing Form to my project as in this image :
and now I want to get the value from that jtextField to the parent JFrame when I close this JDialog, I googled about it and I found ...
0
votes
1answer
10 views
Custom head renderer attributes not being passed through
I'm trying to render a head element with a prefix attribute. In order to do this in JSF:
<h:head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# XXXX: http://ogp.me/ns/fb/XXXX#">
I ...
-1
votes
3answers
21 views
DAO pattern in java what is a Business Object
Directly from this oracle article about the J2EE DAO Pattern:
Everything is very clear indeed but the Business Object "participant" (as they call it).
Here I quote the bit I would like more insights ...
1
vote
1answer
17 views
changing JTextField formatting
I want to change the format of this JTextField especially the font size and color.
here is the code :
JTextField textField = new JTextField(10);
JTextArea msgArea = new JTextArea(10, 30);
2
votes
2answers
28 views
Hash set that stores subclasses of certain class JAVA
Consider the following situation:
public abstract class Vegetable {};
public class Tomato extends Vegetable {};
public class Cucumber extends Vegetable {};
public class Orange {};
The point is - ...
0
votes
0answers
9 views
How do I append a quote to a string in JSF EL
I got a JSF page with a list of partners.
The page is opened in two modes, default and choice mode, that is set with choiceMode request parameter.
When choiceMode parameter is undefined it's just ...
2
votes
5answers
26 views
How this method is called without using the classname
I wanted to know how a static method is called in another class.
Assume I have a class as following,
class classA
{
public static void method1(String a)
{
}
}
In another class the method method1 ...
0
votes
1answer
11 views
EntityManager per DAO method
I have question about usage of EntityManager.
I've read that is not wise, opening and closing an EntityManager for every simple database call in a single thread!
Is it better to have one ...
1
vote
3answers
30 views
Java Transfer Object, what is it?
Directly from this oracle article about the J2EE DAO Pattern:
Everything is very clear indeed but the Transfer Object "participant" (as they call it).
Here I quote the bit I would like more insights ...
0
votes
1answer
15 views
Preferences in Android earlier than 3.0
I have the problem, that SharedPreferences with FragmentManager won't work in Android below 3.0.
I always get this error:
java.lang.NoSuchMethodError: mypackage.Settings.getFragmentManager
How can ...
-1
votes
0answers
29 views
how create webpage for attendance
I want to create a page for my team players to indicate their attendance for a match (it will be view on mobile device). Basically it includes a table of player name with their image on each row, and ...
0
votes
2answers
25 views
Why my form parameters not getting in JSP
This is my HTML form :
<form action="supplierportal_home.jsp">
<select id="contract" name="contract">
<option selected="selected">Please Select</option>
...