473,554 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
1,603
thread by: Catfood | last post Oct 5 '12 by: Catfood
I do hits on mTurk and often (inquisit software, for instance) and some of the surveys and survey applications will not load due to java's refusal to launch. I have windows vista.
0
2,099
thread by: Ram R | last post Oct 10 '12 by: Ram R
I need to modify hibernate.cfg.xml with encrypted password by running my own java class. <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration>...
0
1,665
thread by: mach22 | last post Oct 11 '12 by: mach22
Hello, After opening a crystal report in jsp page, top and rear buttons of crystal report viewer application were not working.. it says that Javascript: CrystalViewerCrystalEvent('CrystalViewer','tb=next') or CrystalViewerCrystalEvent('CrystalViewer','tb=printdlg') or any other buttons.. ERROR it seems like this js script doesnot exist or...
0
1,698
thread by: mdyusufali786 | last post Oct 13 '12 by: mdyusufali786
Hello everyone, I am very much new to java programming. I have been assigned the task of creating a java application through which the live video of an IP camera connected via usb can be recorded into our system and played at the same time in the java JFrame created by me. How to proceed with it? What concepts should i have to...
0
1,241
thread by: suni | last post Oct 23 '12 by: suni
i want to check in the captured packet that a particular word or a string exists in it...that particular word can can be any word like bomb...so that an alert message can be given...for capturing jpcap works well but can it perform a checking like this...im aware that of packet.data in jpcap but not very clear...please help me with this. thanks
0
1,426
thread by: mahender kumar | last post Oct 24 '12 by: mahender kumar
how i make a thin connitionin java using oracle 8.0 also set classpath
0
1,912
thread by: bernouli | last post Oct 27 '12 by: bernouli
Ibatis cannot access the database. here is my SqlMapConfig.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"> <sqlMapConfig> <settings useStatementNamespaces="true"/>
0
959
thread by: sahital | last post Oct 30 '12 by: sahital
i want parametarized funcion...how to create that using netbeans??
0
1,723
thread by: chintan85 | last post Oct 30 '12 by: chintan85
Basically I want to automate comparison of screenshots(new with old) of web applications. I have configured Selenium to run with junit core in eclipse. I am tyying to use Jmagick with this configuration. This is the command to do image comparision in command line. compare reference.jpeg to-be-tested.jpeg -compose src diff.jpeg I...
0
15,740
sreekandank
thread by: sreekandank | last post Oct 31 '12 by: sreekandank
Generic class is a class with one or more type variables. A Generic class declaration looks like a non-generic class declaration, except that the class name followed by a type parameter. For instance, consider a following generic class Employee<T>. class Employee<T> { private T obj; Employee(T obj) { this.obj=obj; }
0
1,158
thread by: Ionelia | last post Nov 17 '12 by: Ionelia
How can you define the classes Adult, Student and Engineer so that the next sequence to give compilation error only where specified? class Test { public static void main(String args) { Adult a = new Student(); //without giving compilation error Adult b = new Engineer();//without giving compilation error a.explorare(); //without giving...
0
1,966
thread by: Keith F | last post Nov 17 '12 by: Keith F
Right, so I am trying to find the answer to the above question and then return it as type IntSet. For this question, I need to use arrayList. I have tried tweaking the code a number of times, however, the array contains the wrong elements. The intersection method called works perfectly fine, so the problem is not there. I think it is when I am...
0
2,292
thread by: gauravagam | last post Nov 17 '12 by: gauravagam
This is javabean code to create database connection. You can use this code in any java application. import java.sql.*; public class DBConnect { private Connection con; private String connstring; private PreparedStatement ps;
0
1,605
thread by: isaacsanya01 | last post Nov 19 '12 by: isaacsanya01
Hello there, I have an xml file that has the following structure Aggregation Actions Aggregation Actions Aggregation Actions Aggregation
0
1,318
thread by: pearlyn | last post Nov 21 '12 by: pearlyn
i need to find the x,y co ordinates of the mouse clicked on the image.(distance between the frame and the mouse click).x,y co ordinates -distance between frame and the image. x,y co ordinates -distance between the starting edge of the image and the mouse click.And i need to display all these 3 co ordinates in 3 text boxes below the image.
0
1,277
thread by: Kam06 | last post Nov 27 '12 by: Kam06
am appending two files.but the appended text is not displayed properly. the appended text is like †††††††††††††††䡄偃䔠慮汢摥›†夠獥††††† ...can some 1 help me wth this... this the code: PrintWriter out = new PrintWriter(new BufferedWriter(new FileWrite("D:/SoftwaresInstalled/Softwareslist.txt",true))); BufferedReader in = new BufferedReader(new...
0
1,696
thread by: Sailab | last post Nov 28 '12 by: Sailab
Is there anyway to set a java heap memory to a limit where in case of more users activities it stop users from further activities until extra memory is back. The following is one of the issue I had: I used Java for almost over 4 years and honestly speaking it's a faster language than PHP. Most recently in one of my web application...
0
1,593
thread by: PreethiGowri | last post Nov 30 '12 by: PreethiGowri
I have a table something like name id date login logout arjun 1 2012-11-28 9-30 7-30 arjun 1 2012-11-29 9-30 8-00 arjun 1 2012-11-30 9-40 8-00 i want to view this table as follow on my jTable name id date login logout
0
1,716
vitthaldevkar
thread by: vitthaldevkar | last post Nov 30 '12 by: vitthaldevkar
this sample code help you to set limit on textfield in java swing. e.g in you want to set mobile number 10 digit only or any thing you want . just change constructor parameter in attached file
0
1,656
thread by: gauravagam | last post Dec 4 '12 by: gauravagam
Here is code to include html,htmlf,jsp & jspf files in servlet. Just change the path & file name in getRequestDispatcher(). RequestDispatcher dispatcher = getServletContext(). getRequestDispatcher("/htmlfragment/header.htmlf"); dispatcher.include(request, response);
0
1,542
thread by: manojdeoli | last post Dec 7 '12 by: manojdeoli
Hi, I am calling an external application from java application deployed in solarish server using ProcessBuilder or Runtime.getRuntime().exec(). I would like to know when a process is spawned from inside the java code does it uses the application memory or solarish server memory?
0
1,646
thread by: Man4ish | last post Dec 23 '12 by: Man4ish
Hi, I m working on Java application (Spring) Demo Application(Hello World) in Netbeans. It takes too much time in downloading maven repository. There is only one line that need to printed in spring framework but it start downloading applications from maven repository first which takes arnd 15 mins. Then actual program runs. Is there any way to...
0
1,878
thread by: roshan ban | last post Dec 24 '12 by: roshan ban
Hello every one! I've a problem regarding obtaining the data in java i.e android software. The problem is that using an aspx page i've written a xml data structure in the page as below: Aspx Code for generating xml data Response.Write("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); Response.Write("<ContactList>"); for...
0
2,235
thread by: bernouli | last post Dec 25 '12 by: bernouli
i tried to upload image but it prints error Photo0017.jpg (The system cannot find the file specified) import org.apache.myfaces.custom.fileupload.UploadedFile;
0
1,368
thread by: CodeNoob117 | last post Jan 20 '13 by: CodeNoob117
I am making a game in which it has a JFrame that contains a gridlayout full of Jlabels. I want to make a separate image class that can be added to the JLabels. So far, I have been trying to override the paintIcon method to draw a picture icon to the label. I have been trying, unsuccessfully, to draw an animated GIF. The code is as follows: ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.