I am trying developing an applet which transmits audio and video. But I found a big problem that I have to make every client install the JMF, however the clients hope there is no software to be installed locally.
Is there any possibility to run the applet without JMF installation on the client side ?
Anyone can help on this matter
...
i want to connect a linux machine from my windows machine... with using java programmig..
i have putty,,,, can it help to me?????? and i have code""
Socket telnetClient=new Socket(inetAddress,23);
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
BufferedReader stdin=new BufferedReader(new InputStreamReader(teln...
i found this link.. LINK what i want is there's a JPanel that has a background and another JPanel with half the size of the first JPanel but with an image that is transparent and with a face or a ball at the middle.. :) just like the screenshot from the link.. is that possible to code in java? :) im just thinking it like for web programm...
Hello guys, I'm writing a program which allows the user to input his data then outputs it. Its 3/4 correct but when it arrives at outputting the address it only prints a word lets say only 'Archbishop' from 'Archbishop Street'. How do I fix this?
Thanks
import java.util.*;
class MyStudentDetails{
public static void main (Strin...
Hello!
I need several words to be highlighted in a String while appending it to a JTextArea. So that I try this:
jta.append("<html> <b>Termination time : </b></html>" +
CriterionFunction.estimateIndividual_top(individual) + "\n");
Where jta is a JTextArea. The output I get is: <html> <b>Termination time : </...
I really don't understand why the getMyClass2 method below cannot be static, why isn't it valid Java code?
public class MyClass
{
private class MyClass2
{
public String s1 = "";
public String s2 = "";
}
private MyClass2 myClass2;
private static MyClass2 getMyClass2()
{
MyClass2 myClass2 ...
I am attempting to get a connection to my University's MySQL DB but the connection is hanging.
import java.sql.*;
public class ConnectToDB {
public static void main(String args[]){
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
String url = "jdbc:my...
Is there in Java any command or proccedure that I can restart my appliation itself?
I developed a Java desktop application, but after some time it's going hang. I don't know why, so I want to restart my application itself. Is it possible?
...
I'm trying to use a dictionary. Whenever I want to check if an element is present in the dictionary, I do this:
int value = results.get("aKeyThatMayOrMayNotBePresent");
if (value != null)
// ...
But then the compiler says I can't compare an int to a <nulltype>. What's the correct way to check for null in this case?
...
Hi,
I'm doing my first steps with 2D arrays. Help needed on a practical example. Below code should store students and each of their results for 3 courses in a table. Below code returns an error. The error is caused by int studentResults[x][y] = sc.nextInt(); . Any ideas?
import java.util.*;
class CalcAverage
{
public static void ...
If the president changes, I would have to change the value of presidentName three times below in the application-context.xml:
<beans:property name="presidentName" value="Barack Obama" />
Is there a way to set variable once in application-context.xml to represent the string Barack Obama.
<?xml version="1.0" encoding="UTF-8"?>
<beans:b...
Is there a way to get the html color code from a JColorChooser
My java Applet takes three colors from the user and averages them and displays the color
I want to get the html color code after they look at the average color
how can I do that
...
Is AIR nativeprocess able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?
...
Hello!
In an every article the answer to a question "How to append a string to a JEditorPane?" is something like
jep.setText(jep.getText + "new string");
I have tried this:
jep.setText("<b>Termination time : </b>" +
CriterionFunction.estimateIndividual_top(individual) + " </br>");
jep.setText(jep.getText() +...
We have a project which (assumed) would be finished in 1-2 years. By then, the JDK7 (and hopefully the Java7 JCP spec) should be ready.
But, I wonder, how probable is the "danger" that Oracle will make a "stupid" decision, which would make the JDK7 a less "attractive" platform then the existing JDK6?
More specific, I'm afraid of scenar...
So java has a long type suffix for literals: (123L), a double type suffix (43.21D), a floating point suffix (1.234F). So ... why no byte type suffix? For example, when writing some testing code you MUST cast all your bytes when they are used as function parameters.
ByteBuffer b = ByteBuffer.allocate(100);
b.put((byte)3); // super an...
I have an EJB and a WEB module in my IntelliJ, created 5 entities that I would hope to load into a database using annotations.
I go to project settings, under modules, and select that I want to add JPA facet, I know have a EJB, WEB and JPA facet. I use eclipselink, so I checked that under JPA settings, I then added my persistence.xml f...
Hello,
I need to know which is the best Java web framework to design an UI. I know some frameworks like
vaadin
GWT
Which one is better and faster? And is there anything other than that?
...
Hello,
I am trying to write a program in android that does a lot of string and xml parsing.
I need suggestion of which way to go :
Use JNI and implement parsing in C++ and use C++ xml SAX parsing (Android - NDk)
Go with java and parse xml with SAX
...
So i am designing an art project that will print to a dot matrix printer the contents of my internet history. i have found info online to parse out a plist (what os x uses to store internet history) so im all set on that front but what i am looking to find out is how to send a request to the printer to print a new line, which would happe...