35,618 Topics

Member Avatar for
Member Avatar for gedas

hey, i got a method that returns value which is java.util.List<java.lang.String>. this method actually contain data that was stored from .txt file which is simply names of people. how can i display this in the JList or how can i convert this value to a simple array so later i …

Member Avatar for quuba
0
229
Member Avatar for niks4all

hello all... I am reading an excel file and displaying it with some background images (added by me)using jsp,apache(poi).now the problem is I should send this displaying content to many mails and this content should be in body and not as an attachment....... can anyone help me please....hoping for your …

0
36
Member Avatar for kangkan_14

Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused.

Member Avatar for kangkan_14
0
278
Member Avatar for billy leung

Hi everybody, actually i am new to Java, and i would like to write a program that to find who is a copycat, for example, i get six txt file, all of these are juz put inside a folder, i guess i should get all the txt file to array, …

Member Avatar for billy leung
0
178
Member Avatar for in._.cloud

Hi to all I have one question about error in my code.. If I have compile the code in the NetBeanse , not found any error .. but if compile it in Command Line, I have errors. I attached my post with the code and 3 picture of run include …

Member Avatar for pbl
0
39
Member Avatar for renovatiotr

I got that code from [URL="http://www.javafaq.nu/java-bookpage-19-3.html"]here[/URL]. Everything's working except the balls! There is panels, splitpanes etc. Oh Look, no balls! I need to solve it like in an hour. Please help. I say again; please... [CODE]import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.event.*; public class Split …

Member Avatar for Akill10
0
109
Member Avatar for jaycastr

Hey guys im getting back into Java after a break from programming. And i was wondering what is the best integrated development environment for running java.Im sure there is no one Best, but your input would be greatly appreciated.

Member Avatar for Akill10
1
457
Member Avatar for AndrewSD

Does anybody know any good tutorials on how to make a web crawler in Java. All I can find is a bunch of code that you have to figure out own your own! I am pretty new to the forums, and have a pretty good experience in java. So..... Any …

Member Avatar for KirkPatrick
0
95
Member Avatar for JKP()

Im new to java and I would like to participate in some small projects.. let me know and I'll be glad to work with yha..

Member Avatar for JKP()
0
93
Member Avatar for دموعي

Create a JAVA applet program that accepts and displays object‟s details on respective GUI components. The Applet consists of seven GUI components such as two labels Name and Price followed by two textfields of size 10 respectively. There are two buttons labeled as ADD and DISPLAY followed by a Textarea. …

Member Avatar for دموعي
0
100
Member Avatar for peter_budo

I'm trying to get hang of custom events and listeners. I found example of single event-listener, but I'm curious how to extend from single method to multiple that are related. [code=Java]public interface CountListener{ public void countEvent(int count); public void multiplyEvent(int multi); }[/code] [code=Java]public class Counter implements CountListener{ public void countEvent(int …

Member Avatar for svedrenne
0
3K
Member Avatar for arshi9464

i am unable to understand WHAT MAKES THE BYTECODE IN JAVA, MACHINE INDEPENDENT. I mean how does the bytecode built after compilation becomes machine independent, or what are the properties that make the bytecode machine independent? EXAMPLE:- If i compiled a program on a x86-64 machine and after sometime i …

Member Avatar for ~s.o.s~
0
169
Member Avatar for rkyakkala

Hi, Note:selected item is not seen in the drop down list its going to default one. In my jsp application i am having two drop down lists (contract and devicename) when i selected contract name proper device name is loading in the select list of device name But in contract …

0
68
Member Avatar for softswing

Dear Friends, Am using inifile management,want to read and update ini files, for this am using properties class methods (below). but settings in ini files are changed while am updating, properties.load(inputstream); properties.put(writeIDName, writeData); please tell me how we can update inifile with out affecting the exisiting content in ini file,if …

Member Avatar for parry_kulk
0
174
Member Avatar for Letscode

Hey, I'm new to Javascript and I have a frameset and I need to dynamically change the Sizes of each frame. How to I do that?? This is my frameset definition:: <frameset rows="8%,87%,5%" > <frame id="logo" name="banner" src="logo.aspx" noResize scrolling="no"> <FRAMESET cols="73%,27%"> <FRAME id="mainframe" name="mainframe" src="Default.aspx" scrolling="no"> <FRAMESET rows="8%,92%"> <FRAME …

Member Avatar for parith
0
172
Member Avatar for maria_megha

can you explain with a simple example what is jsp pagination? i ve been trying to understand the folowing code in a project..pls help ********** [code]if(appList!=null){ int pageNoPerPage=0; // Per page only 5 Page Numbers will display if(numPages%2==0) pageNoPerPage=numPages/2; // 9/2 => 4 page no per page else pageNoPerPage=(numPages/2)+1; // …

0
65
Member Avatar for aligajani

I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() …

Member Avatar for aligajani
0
176
Member Avatar for khurram.1987

Hi, i am trying to connect to MySQL database [ICODE]mysql[/ICODE] using JAVA .. using code given below, [CODE]import java.sql.*; public class dbExample{ public static void main(String[] args) { System.out.println("Listing all table name in Database!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; …

Member Avatar for khurram.1987
0
160
Member Avatar for hao90

i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how …

Member Avatar for hao90
0
113
Member Avatar for daudiam

Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It …

Member Avatar for daudiam
0
209
Member Avatar for pigmario

Hi.. can anyone understand this piece of flowchart,i dont understand. the flow cart is in the attachment. and below is my source code implementation [code]input int n; int i=0,a,b; if(n>0){ while(i<a){ if(n>i){ if(n>a){ if(b>a) b=1; }else{ n=a; if(n*b >i) b=1; } }else{ n=1; } i++; } }[/code] i dont know …

Member Avatar for febrilian samo'
0
741
Member Avatar for cms271828

Hi, I have 2 applet problems. 1) I uploaded a new jar file to server to replace old one. When I load web page in browser for that applet (on this pc), I keep getting the old jar file getting loaded as the applet (even on different browsers on this …

Member Avatar for Akill10
0
227
Member Avatar for ms88

Hi there, I have some problem with accessing API using PHP. Here is the story : I use PHP as my main script on my webserver. I want to retrieve data in database server (oversea). The database server provides API and it's available to download. So I download the API …

Member Avatar for mdew_47
-1
906
Member Avatar for hao90

[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public …

Member Avatar for hao90
0
113
Member Avatar for nikita.chandra

Hi i am using a popup calendar for my project which is in dd/mm/yyyy format and mysql database has the date format as yyyy-mm-dd, my issue is that when i insert date in the database following exception occurs : Exception foundcom.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '29/12/2010' for column 'DateOfJourney' …

Member Avatar for Shanti C
0
85
Member Avatar for gedas

hey, i have been asking for help for almost a week and there is no reply what so ever. from anyone ... please help i am so so so stuck and i have been stuck for days.. i am creating web services in netbeans (ws-jax) i want to return array …

Member Avatar for gedas
0
125
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Member Avatar for daudiam
0
161
Member Avatar for harry.jhone

Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question from expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations …

Member Avatar for kvprajapati
0
92
Member Avatar for WolfShield

Hey everyone, I'm programming (obviously) and have run into a challenge. I'll cut right to the chase, if someone would tell me how to compare a variable to each item in an array I would be very grateful. Thanks for the help! -[B][I]WolfShield[/I][/B]

Member Avatar for ~s.o.s~
0
91
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Member Avatar for daudiam
0
170

The End.