Click here to Skip to main content
15,886,761 members
Everything / Programming Languages / Java / Java SE 6

Java SE 6

JavaSE6

Great Reads

by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
by Corinna John
Fun with code and yarn
by Fadi Hania
This is a J2ME beginner article that describes how to add different J2ME components to your application especially StringItems and Commands.
by Jitendra_Jain04
IBM WebSphere Application Server V8.5 Liberty profile is a flexible and dynamic server profile of WAS which enables the WAS server to deploy only required custom features instead of deploying a big set of available JEE components.

Latest Articles

by Vladimir Kolmanovitch
The article allows extracting java.lang.reflect.Method using anonymous class or lambda
by Corinna John
Fun with code and yarn
by Tung.Nguyen.2k
How to implement B-Tree's searching, insertion and deletion in Java
by Paulo Uechi
Uechi APM Web is an APM (Application Performance Management) Open Source Server Performance Monitor written and developed in Java and C # for all Linux and Windows platforms. The Uechi.APM.Web offers a complete resource for unlimited monitoring servers in real time. Have full control of the CPU cons

All Articles

Sort by Score

Java SE 6 

2 Jan 2013 by WebMaster
Hi sistlachetan,I think firstly, u should catch up how Java can interact(read/modify..) with doc/ppt/pdf/xls files.For this point, I recommend reserching on Apache POI[^]"The Apache POI Project's mission is to create and maintain Java APIs for manipulating various file formats based...
18 Jul 2016 by Andy Point
Android Alert Dialog Tutorial : Working with Time Picker, Date Picker and List Dialogs In this tutorial we will discuss how to use dialogs and alerts in Android Apps. A Dialog is a small popup shown to the user to get some additional information from the user or ask him to make some decision. Alert
15 Feb 2017 by Corinna John
Fun with code and yarn
28 Jun 2010 by Cedric Moonen
You'll never get any satisfactory answers because your question is so vague that nobody will be able to reply.You need to cut your problem into pieces and ask specific questions. What have you already done ? It seems nothing because you didn't even choose a language.First thing to do is...
17 Apr 2011 by Fadi Hania
This is a J2ME beginner article that describes how to add different J2ME components to your application especially StringItems and Commands.
5 May 2015 by Jitendra_Jain04
IBM WebSphere Application Server V8.5 Liberty profile is a flexible and dynamic server profile of WAS which enables the WAS server to deploy only required custom features instead of deploying a big set of available JEE components.
25 Sep 2015 by Afzaal Ahmad Zeeshan
No, if that is your homework you need to do it yourself. We won't provide any code unless you show us what you did and where did it get your stuck. Here is the algorithm, https://en.wikipedia.org/wiki/Eight_queens_puzzle[^] (See solutions) and you may want to have a look at a few PDFs provided...
7 Oct 2016 by Paulo Uechi
Uechi APM Web is an APM (Application Performance Management) Open Source Server Performance Monitor written and developed in Java and C # for all Linux and Windows platforms. The Uechi.APM.Web offers a complete resource for unlimited monitoring servers in real time. Have full control of the CPU cons
4 Apr 2019 by OriginalGriff
Simpel: you haven't specified any parameters, so there are no arguments to process. No arguments == empty array == error when you try to use any element at all. Add a check for "no parameters", and when that works, add parameters to your run.
26 Nov 2011 by OriginalGriff
We are unlikely to give you any help that would give you the opportunity to copy the work of others: it could well be someone here that originally wrote the code, so why would we help to give it to you? At best, that would be copyright infringement, at worst outright theft.Try looking at...
2 Jan 2012 by CPallini
Yep, it has. See, for instance: "Static Variables, Static Methods and Static Constructor"[^].
21 Sep 2012 by Mehdi Gholam
If you are using SQL Server try using Bulk Insert...
17 Jul 2016 by Andy Point
Android Download Manager Tutorial: How to download files using Download Manager from the Internet
14 Jan 2021 by Richard Deeming
Should be simple enough: let dataStorage = [ "08:30", "10:30", "Project", "Nicosia", "12:30", "14:30", "Selef", "Famagusta", "16:30", "18:30", "Deneme", "Kyrenia", "20:30", "22:30", "Sunum", "Laphitos", "20:30", "22:30", "Sunum",...
30 Nov 2009 by Richard MacCutchan
Try Google search for Java Media Player - lots of samples there.
2 Dec 2009 by AspDotNetDev
Well, the URL has a semicolon where it should have a colon. That could be a problem.http;//Should be.http://Also, the web services I work with typically have an extension in the URL, but that could just be because I work with Microsoft technologies. For example:NWSSService?wsdlWould...
18 Jan 2010 by Christian Graus
Please edit your post to add detail, don't post a fake 'answer'. I can't see your post now and I'm trying to reply to it.If you don't know how to do this, then you have a lot of work ahead of you. No way is any forum reply going to give you much info. Your teacher said yes, that doesn't...
23 Apr 2010 by Abhinav S
parveenkumar00...
23 Apr 2010 by Nasir M@hmood
The Best way learn any thing is Read About it and then apply it without delay,start from easy and go through hard. U should start "Complete Reference to Java" a very good book
2 May 2010 by DaveAuld
Corinna John has created a who series of articles relating to steganography, suggest you go read these;http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=475133[^]
28 Jun 2010 by Sandeep Mewara
Fine. Go ahead and create it. Hope you have read the rules of posting questions here. It's a Quick Q&A. Further, you need to put some effort, post your issue and people would be more than happy to help you. I would suggest you to do some groundwork, use Google, talk to your...
9 Jul 2010 by husseinx
import java.sql.*;public class Main{ private static final String accessDBURLPrefix = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="; private static final String accessDBURLSuffix = ";DriverID=22;READONLY=false}"; // Initialize the JdbcOdbc Bridge Driver ...
27 Dec 2010 by Sandeep Mewara
Did you try Google search[^]?If you would have tried, then you would had links like these:Apriori Algorithm[^]Apriori Algo details[^]
9 Jan 2011 by Espen Harlinn
Try posting java related stuff here (OTN):Forum Home >> Java Desktop >> Swing [^]RegardsEspen Harlinn
28 Jan 2011 by OriginalGriff
All that is wrong is that you need another "else" clause. At the moment:if((a>b)&(a>c))If it passes, then you set t4 to indicate.But then you set t4 again either to show 2 is greater, or 3 is greater.Add another else:if((a>b)&(a>c)) { t4.setText("no.1 is GREATER"); }else ...
7 May 2011 by Sergey Alexandrovich Kryukov
Technically speaking, all you need to work with class members shared by two or more thread is lock. Please see:http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/locks/Lock.html[^].This task is interesting by the reason not directly related to the techniques of thread...
10 May 2011 by Marc A. Brown
Either instantiate the JTextArea using the constructor that accepts a Document as a parameter or use the setDocument method to provide a document model (such as HTML) that will allow you to do fancy formatting.Here is a link[^] to the documentation for Document. It should provide a starting...
1 Jun 2011 by erwrwrwr
Your Customer and Bank Classes Should Implement the interface IEnumerable.For each works with the class which implements IEnumerable, IEnumerable, IList, IList etc.
26 Jun 2011 by Richard MacCutchan
Start here[^], for all Java classes. I'm not sure about sharing variables between classes (assuming you mean independently running) but I'm sure you can pass parameters when you exec a new class.As to posting code, that, I'm afraid, is your responsibility.
27 Jun 2011 by Sergey Alexandrovich Kryukov
There is no such concept as "run Java class" — you always run a method. There is no such thing as "equal variables". There is a concept of assignment of one variable to another or comparison of tho variables: if they are equal, not equal or referentially equal or not.It looks like you...
15 Aug 2011 by Simon Bang Terkildsen
Have a look at this[^] for the formula for calculating the distance.
3 Oct 2011 by Richard MacCutchan
See here[^] to check your code is following the correct rules. Also, make sure you have defined your JNI calls within extern "C" {} blocks, to prevent name mangling by the compiler.
4 Oct 2011 by Richard MacCutchan
I don't know why this happens BUT:In your C code, if you replace the line:res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);with// this should contain the path to the JVM DLL fileHINSTANCE hVM = LoadLibrary("C:\\Program Files (x86)\\Java\\jre6\\bin\\client\\jvm.dll");if (hVM...
5 Oct 2011 by Espen Harlinn
It's customary to locate the java runtime trough settings from the registry, and then load the dll dynamically.Have look at:Jace[^]Jace offers some additional features you might find interesting too.[Update]The _imp__ prefix indicates that you have a problem with your library - I...
30 Dec 2011 by Rajesh Anuhya
hi OM.., When you call the device profiles(Send SMS, Read/write Ph memory) this ask for the conformation. because your application is not TRUSTED. For this , you have add certification to your application., i done a similar kind of project 1 year back. That time client purchased...
28 Apr 2012 by Sandeep Mewara
what is Hibernate in JAVA?Hibernate is an open source object/relational mapping tool for Java.Look here for details: Google result: Hibernate in JAVA[^]
2 May 2012 by CPallini
Use the BigInteger[^] class.For instance: // implementation of 'long L1 = ((long)Math.pow(123,17)) % 3233;' BigInteger b = new BigInteger("123"); BigInteger e = new BigInteger("17"); BigInteger m = new BigInteger("3233"); BigInteger r; r = b.modPow(e, m);
13 May 2012 by Diler Patel
Try To Repaint ur jPanel jPanel2.repaint();
25 Aug 2012 by AmitGajjar
Hi,This is my personal opinion,If you do not have financial issues at your home then go for the higher study. don't stay at home and read books. In future if you are going for an interview in any of the company you need a valid reason why you have not done any job/study in that empty...
12 Oct 2012 by Dylan Morley
You'll be lucky to find questions for each area, exactly like you want. But if you put this into google[^] you'll see there are a load of 'mock' exams and questions out there - Have a read throuh. These type of examples can give you an idea of the kind of question formats to expect, but...
24 Apr 2013 by Bernhard Hiller
properties.setProperty("mail.s...
11 Sep 2013 by Shubhashish_Mandal
Try Java crawler to do this . Here is one example :http://code.google.com/p/crawler4j/[^]There are so many example in web.
25 Sep 2015 by Patrice T
Your Solution: Start working.We do not do your homework !By the way, try to define genetic algorithm. This wording covers many things. Which one is related to your question?Because the spam comment shows bad spirit, no further advice provided.
21 Apr 2016 by ZurdoDev
According to Wiki, Java SE is the new SCJP. See Oracle Certification Program - Wikipedia, the free encyclopedia[^]. Also there is a good chart in there to visually see the various options, https://upload.wikimedia.org/wikipedia/commons/3/33/Java_Certification_Path.gif[^].I would also...
4 May 2016 by Richard MacCutchan
I suggest you go to The Java Tutorials[^] and study the various tutorials. It is impossible to answer your question in a forum like this.
25 Oct 2016 by Kornfeld Eliyahu Peter
Come on!!!Can't you read error messages and trace?Quote:Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return statementIt means you have a method somewhere that does not return a value, but should...So it can not be compiled...Quote:at...
4 Apr 2019 by Patrice T
Quote: error at line 14 for message=new BigInteger(args[0]); Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at learnprogramming.Encryption.main(Encryption.java:14) The error message tells you that your code was called with no parameter...
21 Aug 2020 by Otekpo Emmanuel
May be you should check Fastest 2X2 Array Matrix Rotation Using Javascript[^]
2 Jun 2021 by OriginalGriff
Basically, don't. A text-based file is a really bad idea: it doesn't have any structure and it's intended to store human-readable data, and what you are trying to create is anything but that! You are talking about creating a whole database...
2 Jun 2021 by Richard MacCutchan
Quote: anyone has a remote idea how you do that? Well, as OriginalGriff says, it is not a good idea for an actual program. However, if you want to do it as an exercise in learning Java then it could be interesting. I would start at The Java™...
29 Jul 2021 by Chris Copeland
You need to start reading the documentation for the functions that you're calling. If you don't understand what the return values of these methods are then you'll constantly need to ask for support. Document.querySelectorAll() - Web APIs |...
24 Dec 2022 by CPallini
From 'The Documentation': FileNotFoundException (Java Platform SE 6)[^] This exception will be thrown [..] when a file with the specified pathname does not exist. It will also be thrown [...] if the file does exist but for some reason is...
27 Dec 2022 by Richard MacCutchan
You already posted this question at How to add element to jlist and then how to add that jlist to jscrollpane...?[^]; please do not repost.
3 Dec 2008 by stefanbb
Program written in Java, using the flickrj API, to browse a Flickr username's contacts
17 Apr 2009 by Matt Stine
Deploying Grails with Groovy
29 Nov 2009 by lewvan00
In java Gui Programming ,say JavaSwing ,How can i invoke the MediaPlayer in my computer to play MV or MP4?Thanks.
7 Dec 2009 by ozmrdn
hi,I was creating a WS client server that is not running.I'm using Glassfish v2.1 and Netbeans 6.5.I received an error as follows:"Problem with downloading WSDL or Schema file. Check url, proxy settings or whether server is running. URL:...
7 Dec 2009 by Sriram K G
Check if you could connect to the web serivce URL via browser.
18 Jan 2010 by Ajit singh chauhan
Hithis is my final project for my degree.my supervisor allowed me this and suggested me to go for it ....i have bit idea.as he told me its work like image comparing .but i have little bit clue.......looking for broad knowledge...please help me to understand the methods and...
18 Jan 2010 by Ajit singh chauhan
hiwell i got HMM algorithems for this project and the full java library which support HMM methods.but the basic need are which is the simplest algorithem to use......i ll try my best........
2 Feb 2010 by alololo
i am developing a streaming application in java and i want to transfer live streams of video to a mobile phone .mobile phone should have a streaming video player that should accept the streams of video and play them.can anyone help me with this project?
3 Feb 2010 by Richard MacCutchan
See here[^] for Bluetooth solutions.
27 Feb 2010 by SHREEKANTH P
hi i am doing project about adaptive image segmentation and image processing is this a good project....... i am using java language
28 Feb 2010 by AspDotNetDev
SHREEKANTH P wrote:is this a good projectYep.
7 Mar 2010 by parveenkumar007
How can I learn Java ??Which is the best book for learning Java ???
28 Mar 2010 by sector_9
I'm trying to use multiple BlueTooth adapters on the same machine (Windows) in parallel, but Windows only allows one adapter. The BlueTooth stack I'm using supports multiple adapters. Windows allows the driver of only one adapter to be installed. How do I use more than one adapter at the same time?
30 Mar 2010 by DaveAuld
Looking at some of the google results returned, suggest this is possible by hacking the .inf file manually to add the second device. The results also suggest that you should use 2 adapters from different manufacturers.I think you are going to need to investigate this yourself, and visit some...
2 May 2010 by nandan nataraju
public static final int OFFSET_JPG= 3; public static final int OFFSET_PNG= 42; public static final int OFFSET_GIF_BMP_TIF= 32;i got source code in that removing some offset values before hiding the data in to images(carrier image).description of the project. how they are hiding...
31 May 2010 by PoonamJ
Hi, I am new to Jasper reports. I have some problem when i call iReport from jsp. An error occurs at run time like below :-Error loading the report template: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'head'. One of...
26 Jun 2010 by bensalah
hi every one,i dont find simple drawing java app with (cut,copy,past,undo,redo)featurescan someone give me an exemple of source codethank you very much
28 Jun 2010 by Aescleal
Two quick bits of advice: - Decide what the rules of the game are going to be - Decide how you want to represnt the state of the gameOnce you've worked these two out all you've got to do is implement it!The second one can change during development - you can start of with text...
7 Jul 2010 by husseinx
How can i make a program run from the computer whenever a usb is plugged in?01x for any help.
7 Jul 2010 by Hristo-Bojilov
Of course you can for Swing but I'm not sure if it's possible for applets.Note that such solution is most likely to be OS specific.I don't know how to do it under UNIX but under Windows you need to hook WndProc function and listen for WM_DEVICECHANGE.I've done it several times using C++ and...
7 Jul 2010 by musicm122
Try this. The code looks pretty clear if you understand vbscript. It looks like its just a series of registry edits. I would recommend you run this on a test system or in a VM or at least back up your registry before trying it out....
11 Jul 2010 by OmiD_Haghighatgoo
FOR USING JDBC AND HIBERNATE IT'S BETTER USE SHINE ENTERPRISE LIBRARYIT DO ALL SETTING FOR YOUIT'S VERY EASY AND FASTERhttp://SourceForge.net/projects/shine-enterpris/files/[^]
24 Jul 2010 by sector_9
I'm trying to use java (client application) to post an html request , the request perform a simple login task , the login variable is stored in the session , after the login the program is redirected to another page (default2) ,on load the default2 page check the session , but it finds it null!...
23 Jul 2010 by E.F. Nijboer
First of all, the way you're implementing this now is flawed because you give both login and password in the url, This is absolutely not secure! What you now are doing is setting up the session beginning somewhere in the middle. Further you have to understand, who is your client at this...
23 Jul 2010 by Christian Graus
There is no way to maintain session between asp and ASP.NET, I doubt very much that it's possible for the session to exist between a java page and an aspx. How can it ? The session is stored ON THE SERVER, in the web host, and you're using two different web hosts, and two different frameworks. ...
23 Jul 2010 by raj_raje
How to create a custom size control (textbox, button, panel row)?