32,199 Topics

Member Avatar for
Member Avatar for Clawsy

I develop a chat (server and client) using [I]Sockets[/I]. It's working on [B]LAN[/B] but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. My address is public - a friend pinged my address successfully. You find …

Member Avatar for Aviras
0
333
Member Avatar for Vaspar

Please Download This [url]http://www.mediafire.com/file/xikt4zotccrkrv4/GPA_Arid.jar[/url] I am facing Reset Problem. It Reset but when I Change Credit Hours it restore previous entered Value. Reset Button [CODE]private void Reset(java.awt.event.ActionEvent evt) { _M1.setEditable(false); _M2.setEditable(false); _M3.setEditable(false); _M4.setEditable(false); _M5.setEditable(false); _M6.setEditable(false); _M1.setText(""); _M2.setText(""); _M3.setText(""); _M4.setText(""); _M5.setText(""); _M6.setText(""); _C1.setSelectedIndex(0); _C2.setSelectedIndex(0); _C3.setSelectedIndex(0); _C4.setSelectedIndex(0); _C5.setSelectedIndex(0); _C6.setSelectedIndex(0); Master.setSelectedIndex(0); _C1.requestFocus(); } …

Member Avatar for Vaspar
0
242
Member Avatar for arka.sharma

I have written this following code to check the garbage collection and expecting that garbage collection will not occur since I'm maintaining the reference of objects. [code]import java.util.ArrayList; public class HeapConsumer { public static void main(String args[]) { ArrayList<Integer> list = new ArrayList<Integer>(); int i = 0; while(true) { list.add(new …

Member Avatar for JamesCherrill
0
122
Member Avatar for Muralidharan.E

Hi friends If we will override nonstatic methods or if we will overload non static methods means shall we say it is the run time polymorphism? If i will override static method means, friends are saying it is not compile time polymorphism, It is method hiding. I need some examples …

Member Avatar for Fbody
0
593
Member Avatar for nyaxinya

Write down all the shapes you can think of–both two-dimensional and three-dimensional– and form those shapes into a shape hierarchy. Your hierarchy should have superclass Shape, from which class TwoDimensionalShape and class ThreeDimensionalShape are derived. Once you have developed the hierarchy, define each of the classes in the hierarchy. We …

Member Avatar for Aviras
0
133
Member Avatar for xoid

using a free memory spac available in a machine create 4 memory segments of 1/4K each and create storage units containing (Name,age,sex address) for each segment and then link them! HELP NEEDED!

Member Avatar for xoid
0
85
Member Avatar for dayghost

I don't exactly know how to explain this, but I'm trying to get 6 sentences from a webpage, to my java control panel thing. I've tried to use a snippet I found for twitter updates, and it works, except for the fact that I can't seperate them into new lines. …

Member Avatar for peter_budo
0
163
Member Avatar for ssai

i need to search for a pattern match in an array of strings, where each string is a list of symbols and a given string in the array may match to only one symbol in the pattern. So suppose we have a pattern as A+B*C and we have the string …

Member Avatar for ssai
0
198
Member Avatar for Inquisit0r

I am getting this error that I can't quite wrap my head around. The code segment calls a mysql stored function that basically assigns an available id number. This is the code: [CODE]try { CallableStatement call_proc = conn.prepareCall( "{ ? = call getAvailableId(?, ?) }" ); call_proc.registerOutParameter(1, Types.INTEGER); call_proc.setString(2, tableName); …

Member Avatar for Inquisit0r
0
897
Member Avatar for NeoKunal

i wrote a code to create a csv file in java and it works fine for english characters but not for chinese characters. How can i Solve this. i tried modifying it but then it does not show comma separated values when opened in text file. please reply. [CODE] package …

Member Avatar for mKorbel
0
2K
Member Avatar for julylee06

Hi - I am a newbie - so I hate to ask for help, but your site has been so useful even before I joined, so I hope you will have pity on me. I am doing a java program using 2D arrays. It covers 4 quarters of sales across …

Member Avatar for julylee06
0
643
Member Avatar for ithelp

Hi, Has anyone ported CLIPS rules engine (which is written in C) to java ? Is there any better alternative available than that of porting CLIPS to java ? How big is the CLIPS source code base ?

Member Avatar for JeffGrigg
0
125
Member Avatar for stokotten

Hi. I get an (identifier) expected error when I try to write my code. The error message is: "PathFinder.java:25: (identifier) expected TList.setSelectionMode(ListSelectionModel.SINGLE.SELECTION); "PathFinder.java:25: (identifier) expected TList.setSelectionMode(ListSelectionModel.SINGLE.SELECTION); My code looks like this: [CODE]import... class PathFinder extends JFrame { Karta karta; JFileChooser jfc = new JFileChooser("."); int RitNR; JButton NP; ListGraph g …

Member Avatar for Aviras
0
476
Member Avatar for ayas

I'm trying to create my own JTable, with every row containing 5 check boxes meaning that I have 5 columns and I want them all to have check boxes When I try that the table goes blank and nothing appears at all, so I can only put 1 per row. …

Member Avatar for mKorbel
0
119
Member Avatar for Haridha
Member Avatar for Majestics
0
55
Member Avatar for sear899

In anyone's opinion, what would be the best way to learn Java from a book. ( Any book recommendations)

Member Avatar for peter_budo
-1
130
Member Avatar for abhinavM

I have this servlet code for retrieving contents from database and displaying it on the browser.But when I am running this code it is giving "ClassNotFound Exception" at Class.forname().I have built the path with db2jcc.jar and db2jcc_license.jar file but still this exception is thrown.Please help me [CODE] import java.io.IOException; import …

0
112
Member Avatar for phoenx

Like a slot machine how can I see the movement of numbers and will stop 1 by 1..anyone know how to do it? [CODE] import java.awt.*; import java.applet.*; import java.lang.*; public class Lotto1 extends Applet { public int n1,n2,n3,n4,n5,n6; void button1_Clicked(Event event) { n1=(int)(53*Math.random()+1); n2=(int)(53*Math.random()+1); n3=(int)(53*Math.random()+1); n4=(int)(53*Math.random()+1); n5=(int)(53*Math.random()+1); n6=(int)(53*Math.random()+1); textField1.setText(Integer.toString(n1)); …

Member Avatar for phoenx
0
208
Member Avatar for Xrrak

I am over my head in my current class and could use help or pointers changing the program I have written. It is a mortgage calculator and I have to modify it. My class texts seem over my head and I have to drive 20 minutes and use public internet …

Member Avatar for quuba
0
123
Member Avatar for Haridha
Member Avatar for ranu jain

i have to impliment a chained hash table. in this prog i am using java.util.LinkedList. in one node of linklise i have to store two object-- 1)key value 2)value but java.util.LinkedList. provide add(object) method. that means i can not add two elements in one node of linked list. then how …

Member Avatar for JeffGrigg
0
180
Member Avatar for ba.accounts

Hi, Just wondering if anyone has any example of reading data from a file and storing it into an uneven 2D array. For example: the file contains [a,b,c] [a,b,c,d] [a,b,] etc I am able to do this with a complete "square" or matrix but when the columns aren't even I'm …

Member Avatar for ba.accounts
0
2K
Member Avatar for anuj_sharma

Hi Guys, I was going through a [URL="http://www.daniweb.com/software-development/java/threads/374765"]thread[/URL] in this forum and there is one very good reply to this thread. In the past Ive never used such techniques to idetntify how many classes would I create in my program, thus my programs used to be complex. Can you suggest …

Member Avatar for JamesCherrill
0
167
Member Avatar for ZER09

hi, to all i was thinking how i can create a class that the connection string will be stored there. now i have 4 files the teamSystem.java, login.java, and main.java, and connect.java. the connection string should be written on the connection.java, now i want that other 3 files should communicate …

Member Avatar for ZER09
0
187
Member Avatar for cmaheshwari16

Hi All, I am little bit new to struts framework though I have used tiles in struts application. Now I want to display charts in my application. After searching I found jFreechart library to create charts. (Though it doesn't generate all the charts, like box in web application). Now I …

0
132
Member Avatar for J-Dub

Sometimes when I run a program that I am writing in NetBeans, it runs old code or something. It want do what I just put in. Instead it will run past code. I will get a bug in the program I am writing and when I fix it. It still …

Member Avatar for lashbandi
0
126
Member Avatar for sirlink99

I am trying to export a project using eclipse, and the Images that I have in a separate folder do not export. I have tried to use [icode]image = new ImageIcon (Toolkit.getDefauleToolkit ().getImage("Image/image.png"));[/icode] and [icode]image = new ImageIcon (ImageIO.read (new File ("Image/image.png")));[/icode] and neither of them worked. It works when …

Member Avatar for sirlink99
0
1K
Member Avatar for PROgamer

Hi, i do have problem with event handling im done with layouting but the only thing i dont know is what methods of event handling should i use in my program [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import javax.swing.ButtonGroup; public class Pizza extends Frame implements ActionListener,ItemListener { JFrame …

Member Avatar for hfx642
0
172
Member Avatar for gyno

I am having serious trouble with my NetBeans and the GlassFish server, initially as of two days ago i was able to run few examples of web applications i have on my netbeans, but i don't know how it works cos initially i was made to believe that the GlassFish …

Member Avatar for peter_budo
0
118
Member Avatar for carloskire

Hi. I'm programming this Java app on NetBeans 7 to deploy it via Web Start and is all going well. I'm developing on Windows but the jnlp, jar etc. are to reside on a unix box. It runs well on unix too. At the moment my app reads a text …

Member Avatar for carloskire
0
501

The End.