35,618 Topics

Member Avatar for
Member Avatar for muaazab

Hi, I am learning to work in JAVA. I have gone through the basic concepts, understood and experimented small codes successfully. The point where I have been stuck is garbage collection, finzalize() method and System.gc() method. I have searched these on Google but all the explanations are in high-tech language …

Member Avatar for JamesCherrill
0
253
Member Avatar for EL69

I'm taking a Java class and need some help. I need to create a java class tp accepts a users houlry rate of pay and number of hours worked and will display the users groos pay, the withholding tax 15% of gorss pay and netpay (gross pay - withholding) here …

Member Avatar for Majestics
-1
180
Member Avatar for vishal1949

I made a program and want to enter previous dates into a linkedList. My code is [CODE]package bowlinggame; import java.util.Date; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames = new TreeSet<String>(); PlayerNames.add("Steve"); PlayerNames.add("James"); PlayerNames.add("Bob"); for (Object o : PlayerNames) { System.out.println(o); } …

Member Avatar for JamesCherrill
0
109
Member Avatar for vishal1949

I am making a program of a bowling tracker. I made four names and then I have to add specific dates they played and then the score they got on those days. Then print to screen the names, the number of games they played, average score, last games score and …

Member Avatar for NormR1
0
412
Member Avatar for Genericusername

Hello, I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods, …

Member Avatar for Genericusername
0
146
Member Avatar for warlord902

I am using netbeans 7.0 in windows 7. The problem I am facing is that when we design any frame in GUI builder of netbeans then it uses Windows Look and Feel always, so i need to design according to that. So as long as I use windows look and …

Member Avatar for mKorbel
0
864
Member Avatar for Majestics

How to set white back ground for disabled combo box??? I already tried setBackground.... But it didnt work like textfields.

Member Avatar for mKorbel
0
1K
Member Avatar for sathya88

any operation with text area is not working,,,cant find bug... [CODE]import java.io.*; import javax.swing.JMenu; import java.io.FileWriter; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JSeparator; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JScrollBar; //import javax.swing.JPopupMenu; import java.awt.Container; //import javax.swing.JFlowLayout; import javax.swing.JScrollPane; import java.awt.Color; import java.awt.Font; import java.awt.FlowLayout; import javax.swing.JFileChooser; import javax.swing.JColorChooser; …

Member Avatar for sathya88
0
207
Member Avatar for muzamilsw10

please Help me out, i'm new in java and i want code for following program. write a program that takes a series of email addresses as a command-line argument and, after parsing/processing the input, display the addresses separately and in alphabetical order at the command window. For example if the …

Member Avatar for NormR1
0
220
Member Avatar for DarkPheonix

[COLOR="red"]Hey guys[/COLOR] Icame across a weird situation wherein I had to use System.exit(1) in place of return, although the output in both cases should be same, the output im getting with return statement is giving me the wrong result while the one with System.exit(1) is giving me the correct result …

Member Avatar for DarkPheonix
0
176
Member Avatar for thompsonSensibl

Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For …

Member Avatar for thompsonSensibl
0
132
Member Avatar for sealxlion

Hi, can someone help me? I have two Jframes: Frame and MainFrame. My problem is they both show at the same time. If the login is correct MainFrame opens and Frame closes. [CODE]import javax.swing.*; public class Main extends JFrame{ public static void main(String args[]) { //Frame Window /Login Window Frame …

Member Avatar for mKorbel
0
168
Member Avatar for lena1990

hi i am working in project that i have multiple frame so i used with my project static variables but i cannot use these array with my table in another frame too many exception is appered and my frame that cotain the table doesnot apper how can i solve this …

Member Avatar for mKorbel
0
96
Member Avatar for aldeene

shifting from vb.net to java gives me a hard time!.. I have a little background on java.. but not on Java + Database.. anyone can give me samples or tutorials? I started googling some but hell I can't understand it

Member Avatar for Anuradha Mandal
0
147
Member Avatar for SagarSe7en

Hey Guys im newby to Java! Help Needed! Please Help Needed! This is How it Goes! DAO.java [CODE] private BookRecordViews populateBookObject (ResultSet Results) throws ClassNotFoundException , SQLException { int BookID = Integer.parseInt(Results.getString("BookID")); String BookName = Results.getString("BookName"); String DateOfArrival = Results.getString("DateOfArrival"); String DateOfPublish = Results.getString("DateOfPublish"); String AuthorName = Results.getString("AuthorName"); int StudentID …

Member Avatar for SagarSe7en
0
3K
Member Avatar for adri00713

Can anyone help me !!! i need to create a library system using java and i don't know where to start so can anyone suggest steps on how can i create a successful application .

Member Avatar for Anuradha Mandal
0
116
Member Avatar for dhea_andiesss
Member Avatar for Anuradha Mandal
0
150
Member Avatar for comp_sci11

I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int …

Member Avatar for gihariwathsala
0
1K
Member Avatar for sahil1991

hello frndz, i was trying to implement a client server communication example.her's the code [CODE] import java.net.*; class client_server_communication { private static int client_port=4444; private static int server_port=4476; private static int buffer_size=1024; private static byte[] buffer=new byte[buffer_size]; private static DatagramSocket ds; private static byte buff[]=new byte[buffer_size]; public static void server() …

Member Avatar for NormR1
0
264
Member Avatar for minimi

I updated JDK/JRE to the latest Java SE 7 version but I was wondering what's the environment path to it. I remember Java 6 Update 26 used to be C:\Program Files (x86)\Java\jdk1.6.0_26\bin So would Java SE 7 be something like C:\Program Files (x86)\Java\jdk1.7.0_00\bin I wasn't quite sure because this version …

Member Avatar for NormR1
0
174
Member Avatar for emorjon2

Hi all! I want to start making apps for android phones. The problem is that I have installed Android SDK, JDK 7 and eclipse, but failed to complete the install of the ADT plugin. I have install the plugin, but I can't configure it. the guide on android developer saids: …

0
143
Member Avatar for gedas

hey, i have a JTextField, the values entered in to the text field should be added to one dimensional array after a click of a button. its an int array. the values entered into the text field are separated by a comma i.e. 12,23,2,0,1 how am i meant to separate …

Member Avatar for NormR1
0
141
Member Avatar for Majestics

I have googled alot exampled to create auto complete jcombo box, found many libraries also codes but they are pretty much complex, has any one idea to create this as easy as possible????

Member Avatar for Majestics
0
1K
Member Avatar for nikolaos

After login (if succeed) a user will see the result of statement "select test_column from table_test " execution. table_test is the only table of database 'test' which i have created in NetBeans 7.0.1. test_column is the only column. class '[B]MySQLTest[/B]' creates the gui for login , connects with the database …

Member Avatar for nikolaos
0
2K
Member Avatar for dwayned

Hi, I am trying to write an applicaiton which will run 2 zip files (one after another) with minimum user input. I can get the file to run but it is then waiting for the user to select "Unzip" to unzip the file. I was wondering if there is a …

Member Avatar for dwayned
0
1K
Member Avatar for betny

[CODE]private String [][] personalDetails() { logger.debug( "personalDetails()" ); String personArray [][] = { { "John", " Muray", "1-10-1982" }, { "Peter", " Kamau", "2-5-1987" }, { "Mary", " Wambui", "8-5-1988" }, { "Bethu", " Kips", "8-8-1987" }, { "Cetera", " Omosh", "2-5-1987" } }; return personArray; } /** * Demonstrates …

Member Avatar for JamesCherrill
0
165
Member Avatar for sat123stud

i m wrking on a inventory mgmt system and the requirement is when user logs in all the expired medicines will be displayed

Member Avatar for anand01
0
30
Member Avatar for syeda amna

hi I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout. how can I get broad panel?? Is it possible or not?? [ATTACH]22085[/ATTACH]

Member Avatar for JamesCherrill
0
138
Member Avatar for RykeTech

Hey everyone, I have a couple of Vaadin projects deployed as portlets in Liferay and they work great, but when I add the Vaadin compiler portlet I receive an error (displays twice in each portlet) within my two deployed portlets. I have compiled using the Vaadin Widgetset Compiler portlet after …

0
55
Member Avatar for Natique

Hi! I'm trying to send data from a mobile application written in Java ME, to an ASP.NET website connected to an SQL server. I tried to open an httpconnection output stream in the Java ME application, and send the data in a POST to the website. The problem is I …

Member Avatar for Natique
0
218

The End.