Score: 164°       Point: 39814       Stars: 0        




vBulletin 4.0 Publishing Suite with CMS

Get Adobe Flash player


java2D performance very bad on mac-os-x

Hi !
I am working on a java application that is drawing a lot on a jpanel.
It is using Java 2D api.
The performance is very good on windows and linux, but it is very bad on max-os-x.
The platform is: mac os x - 10.6.8 ; java - 1.7.0_21 (64 bit).
I have tried to include the following statement at the beginning of the main() method:
System.setProperty("apple.awt.graphics.U seQuartz","true");
But there is no result. The application is equally slow with and without this statement.
I remember that this statement used to improve the performance a lot - two years ago
(I don't remember what was the java-version then).
Is there any other way to improve java2d graphics performance on mac os x ?

2013-06-05 22:19:22

Import java files

Hi ,
I'm doing my first steps in java so please be gentle ...
enclosed a part of a java program .
Q -1 - From where those files are imported ? ( what is their path ? )
Q -2 - Does those files are related to the java version that I have on my PC ?
package SensorMonitor;
import java.io.*;
import java.net.*;
import javax.net.ssl.*;
import java.util.*;
import javax.imageio.*;
import java.awt.*;

2013-06-05 09:01:04

an error about java scripting

in the Javascript file,there are two java objects,country and city
the result is :
function addCity() {/*
void addCity(com.luoer.time.entity.City)
javax.script.ScriptException: sun.org.mozilla.javascript.internal.Wrap pedExcepti on: Wrapped java.lang.NullPointerException (#24) in at line number 24
at com.sun.script.javascript.RhinoScriptEng ine.eval(R hinoScriptEngine.java:110)
at javax.script.AbstractScriptEngine.eval(A bstractScr iptEngine.java:232)
at com.luoer.time.entry.main(entry.java:48)
i wonder that's the problem??

2013-06-04 18:20:52

Updating Data In JTable

I have an int[] wich contains values that are changing all the time but when im putting them in an JTable, the value in the JTable doesnt change.
does anyone know how i fix this?

2013-06-02 16:04:32

java collection

Hi let me share my problem, i hope its not something silly, so bear with me if i'm overlooking a detail that i should have seen.
suppose we have two java file name is "First.java" &"Second.java". First.java having Vector title=new Vector(); List ls=new LinkedList(); both vector and list having some data .now i need to access(get that data) that both vector & list in Second.java how do i can?i tried but it's not coming...from the below program i got string but not vector and list.
import java.util.Hashtable;
import java.util.LinkedList;
import java.util.List;
import java.util.Vector;
public class Second{
Hashtable hash_table=new Hashtable();
List l_value=new LinkedList();
Vector v_title=new Vector();
String title;
public void table()
First cc=new First();

2013-06-01 16:22:47

Error sending request to the Action class from a href link in struts2

When i use this code to send request to the Action class from a link in struts2, it works fine.
">Add New Case
But when i am using this link, i am getting HTTP Status 404 - /Judicial/link error.
Add New Case
struts.xml remains the same both time.
How to do this, please help.

2013-06-01 09:00:03

Uploading files to IIS from Applet

I am trying to upload a file using Applet to the IIS. Which is the best mechanism to do this ? I am from .NET background and got some sample codes, but getting 'Null pointer exception' . Can i get the some sample code to refer ? I am trying to invoke the applet (signed) in my asp.net application and upload file to the server.
HttpURLConnection theUrlConnection = (HttpURLConnection) oUploadURL.openConnection();
theUrlConnection.setConnectTimeout(10000 );
theUrlConnection.setRequestMethod("POST" );
theUrlConnection.setChunkedStreamingMode (1024);
theUrlConnection.setRequestProperty("Con tent-Type", "multipart/form-data; boundary="
+ Boundary);

2013-05-30 14:42:53

Joget Workflow v4.0 BETA

Joget Workflow v4 is a source platform to easily build enterprise Web apps for cloud and mobile. Build full-fledged apps, e.g. CRM, HR, Healthcare, etc. Drag and drop forms, lists, and UI elements. Add workflows to automate processes. Extend via plugins. Apps are mobile optimized and cloud ready. Download ready made apps from the Joget Marketplace.
This release allows users to not only develop Web apps, but Web apps that are built and run on the cloud. From the mobile perspective, all Web apps developed on v4 are automatically optimized for mobile devices
Joget Workflow – Freecode
0526_Joget Workflow_v4.0 BETA.png
Attached Images
0526_Joget Workflow_v4.0 BETA.png
(160.3 KB)

2013-05-26 09:22:54

[NEED HELP]coding a simple calculator

Hey guys,
I'm new to Javascript and I'm trying to make a calculator without using the "eval" function. I am using jsbin.com to write my code and want to use the HTML and JavaScript partition, I got everything written in the HTML partition at the moment but i would like to have the JavaScript and the HTML seperated.Another problem is the "=" button, I have no idea how i can get the operation to work without eval, here is my code :
Thanks in advance

2013-05-24 12:12:59

Wizard Module

Hello all,
I'm quite new to both java and Netbeans. I am trying to develop an application in Netbeans that uses a wizard. I create the wizard as a module and when I run it, a new instance of Netbeans starts, with a new menu voice to access the wizard module.
Now my question is how can I use the wizard in my own application?
Should I have to copy the wizard project somewhere in my application folder?
thank you

2013-05-23 14:21:17

pagination without displaytag in struts

is there any other way to get the pagination without using the displaytag properties in struts..
please help me on it..

2013-05-23 11:54:50

Applet Security Settings

I have an applet working fine with Firefox 3.6.13 and Java -1.6.0 (on linux)
On Win7 and Firefox 18.0.1 and Java 7u21 I get a pop-up:
Apllication Blocked by Security Settings
Your security settings have blocked a local application from running.
How do I solve this?

2013-05-23 09:46:47

freetype in java library

Running a Line chart demo provided by jfreeChart library, using eclipse as IDE and java as a programming language, I’m getting the following exception :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no freetype in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknow n Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.font.FontManagerNativeLibrary$1.run( Unknown Source)
at java.security.AccessController.doPrivile ged(Native Method)
at sun.font.FontManagerNativeLibrary.(Unkno wn Source)
at sun.font.SunFontManager$1.run(Unknown Source)
at java.security.AccessController.doPrivile ged(Native Method)
at sun.font.SunFontManager.(Unknown Source)
at sun.awt.PlatformFont.(Unknown Source)
at sun.awt.windo

2013-05-22 16:16:34

Telnet Client ?

Hello all,
beginner alert!
i pulled together a simple Java Telnet client using the org.apache.commons.net.telnet.TelnetClie nt api library. when using Juno, i had no issues running the application locally on my laptop. however, when recompiling in ADT version of Eclipse, and deploying to android tablet (4.2 Jelly bean) at run-time i get an error indicating the class is not defined.
so a couple of question come to mind:
1. is the org.apache.commons.net.telnet.TelnetClie nt (or more specifically, the commons-net-3.2.jar) compatible with Android apps?
2. is there another library recommend for telnet client service running on a android jelly bean?
3. do i need to write (hack one together) using the java.net.socket class(s)... ?

2013-05-21 16:16:16

HTTP Status 404

I am working with tomcat 7.0.39 and i m facing error while uploading a file.
And i am getting like
type Status report
message /APM/fileupload.jsp
description The requested resource is not available.
how can i solve this please help me in it...

2013-05-21 08:31:02

Why do I get no main methods, applets, or midlets found in file error?

/*Programmer name: John Smith
Project name: Project1
Course, day, Time: CIS1500 Wed Night
Date of Completion: May 20th, 2013
Purpose: Print out the line Project1 to the console
public class Project1 {
public static void main(String[] args){
System.out.println("MSU - ");
System.out.Println("Get Anywhere From Here.");
System.out.print("My Name is John Smith");
}//end method main
}// End Class Project1
These are code but I keep getting no main methods, applets, or midlets found in file error. What am I doing wrong? I did exactly same as what my teacher showed me
in class but it just doesn't work. Also what does he mean by draw football field only using - _ | marks? I drew one only using those characters but it gave me error message
although it still runs program when i execute it. Help w

2013-05-21 03:11:04

How to find the length of the longest upsequence in an unsorted array of integers?

Hi, everyone. I have a school java exercise, but i am not sure whether my method for this question is correct.
Question is :
An upsequence is any series of non-decreasing numbers. In a file called LongestUpsequence.java write a public class of the same name containing a method with the signature:
public int maxLength(int [] a);
to find the length of the longest upsequence in an unsorted array of integers. If the array is of length zero then maxLength must return zero. Use the fastest algorithm you can devise for doing this.
As an example of how the code should work, the driver code:
LongestUpsequence mySeq = new LongestUpsequence();
int [] myArray = {5,-11,2,3,14,5,-11,2};
System.out.println(mySeq.maxLength(myArr ay));
should print the number, 4 because the longest upsequence is -11,2,3

2013-05-18 18:40:24

JavaFX Book | Learn JavaFX More In Depth

JavaFX is a constantly changing thing, but appears to have been mostly standardized by Oracle releasing most of it as open source (and the rest to follow very shortly), and JavaFX becoming part of the standard JRE in Java8.
I've been trying to learn JavaFX and so far I like what I see, however I'm having a tough time finding a good book I can curl up with for some good ol' bedtime reading. The Oracle documentation is fine for starters, but I'd like something comparable to the Swing Hacks book or other of the great Swing books. It's important the book is reletively up to date as from my understanding, JavaFX 1.0 is a completely different product than 2.0, and 2.2 has a bunch of new features, etc.
Can anyone recommend some good current JavaFX books or materials to learn this beast in depth?

2013-05-17 23:10:36

conversion between binary and decimal systems

Hi people, i'm working on this task. Netbeans gives me this error message:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type:
at zaklady.Vstup.main(Vstup.java:40)
package zaklady;
//import java.io.BufferedReader;
//import java.io.IOException;
//import java.io.InputStreamReader;
import java.io.*;
public class Vstup {
public static void main(String[] args) {
String vstup;
BufferedReader in;
in = new BufferedReader(new InputStreamReader(System.in));
try{vstup = in.readLine(); }
catch(IOException e) {vstup="";}
int cislo=Integer.valueOf(vstup);
int zbytek=cislo%2;
String retezec=String.valueOf(zbytek);
String vysledek=String.val

2013-05-15 23:11:13

Parsing InDesign document using Java

I an trying to read the contents of a InDesign file (.indd) from a java file.
Please help me getting through this.
Thank you.

2013-05-15 12:13:16

View More (Log In and Will Fans)

Win the T-shirt

with only 4000 points

Who We Are Partner Advertising Contacts Privacy terms Help & FAQ

© Copyright 2010-2017 Fabrizio Fichera. All rights reserved.

© 2010-2018 Fabrizio Fichera


Fill out the form you see below. Registration is free, fast and simple.
If you are already registered, sign in page login.

Web Site :
Required Field
First Name :
Required Field
Last Name :
Required Field
Email :
Required Field
Sex :
Required Field

evolveStar.com is free for ever !

evolveStar.com provides a search engine that allows you to gather information to write their own blog.

evolveStar.com enhances the sources displaying the logo of the site.

If you want to remove your site or you believe a site listed infringes copyright, please report it to: info@evolvestar.com

Specifies the subject copyright violation and the url of the page

evolveStar.com respecting the law DMCA (Digital Millennium Copyright Act) will immediately remove whatever its merits.

Next will be effectual and relevant checks.