35,618 Topics

Member Avatar for
Member Avatar for paul ince

Hello, I am quite new to swing, and I was trying the JFrame component, when this exception occurred , just when I tried to instantiate the JFrame object. It says the following: [code=java] Exception in thread "main" java.lang.NullPointerException at JFrameDemo.main(JFrameDemo.java:8) [/code] and line 8 is the following [code=java] JFrame frame …

Member Avatar for Stefano Mtangoo
0
948
Member Avatar for ttboy04

How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new …

Member Avatar for ttboy04
0
105
Member Avatar for chinee

i am trying to get the input the info so when the choices are chosen and submit is clicked the info is seen for the flower order but getting errors. if you read it you would probably get what i am trying to say but how to get it without …

Member Avatar for NormR1
0
314
Member Avatar for Victor C.

Good evening, I am having a little trouble with the outcome of my bucket list assignment. Everything seems to be working just fine, but the final outcome isn't up to par. When you enter numbers from 1-30 or 61-99 it goes into its proper place, however numbers enter in the …

Member Avatar for NormR1
0
176
Member Avatar for hypernova

Hi ! I want to get a jdbc DataSource through JNDI. I am rather new to JNDI, and I dont know servlets,etc. Whatever tutorials I find on the internet show how to do this using some server like tomcat, etc. I want to make a simple jdbc program in which …

Member Avatar for parry_kulk
0
122
Member Avatar for Teethous

Hey everyone I want to create a Map app of my community for mobile phones. Where should I start/

Member Avatar for peter_budo
0
75
Member Avatar for gunbuster363

I know the password. I want to crawl all the post of my gf's xanga down to my comp, for better reading. But my gf have set "require friend login" to see her post. So I need to login my id of xanga before reading her post. What I want …

Member Avatar for masijade
0
107
Member Avatar for theprogrammer19

Hi ALL =) hope all of u will be right I have been visiting this site constantly and I learned a lot from him, this is the first production in the Java language to me I hope that you like. this is my First Program in java language i hope …

Member Avatar for ~s.o.s~
0
208
Member Avatar for imag1ne

Hiya, I need to make a game for my cs class. My game is the word find game and it plays like this: You are given a long word like "antidisestablishmentarianism" and your goal is to find as many words in to word given as possible. My program will save …

Member Avatar for Taywin
0
187
Member Avatar for imag1ne

My objective is make a game program for my cs class. So my game is like this: You input a word and then input another word which starts from the last letter of the first word. The program check if the word has been used before and if the last …

Member Avatar for Taywin
0
148
Member Avatar for WargRider

Hey, well I have this problem, I am making a game in Java and it is getting really far. If anyone saw my last problem, that is resolved and I finished my networking code. Here is the problem, to start a new game window in my code, one would write …

Member Avatar for NormR1
0
103
Member Avatar for Swetham5236

I am trying to view the log file in netbeans, but when I click on View -> IDE log its not displaying anything. Please help

0
53
Member Avatar for seemant gupta
Member Avatar for theprogrammer19
0
126
Member Avatar for sadhawan

Hi guys i have java scripts as follows His acquaintance with Elizabeth was very trifling.&quot;</p>\n<P class=&quot;Sx0x1&quot;>&quot;To be sure, Lizzy,&quot; said her aunt, &quot;he is not so handsome as Wickham; or, rather, he has not Wickham's countenance, for his features are perfectly good. But how came you to tell me that …

Member Avatar for sadhawan
0
152
Member Avatar for soumya_mjmder

Hi guys..i have a XML: <?xml version="1.0" ?> <EmployeeDetails> <Employee EmployeeName="Johnny" EmployeeId="209007" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnnyDepp" EmployeeId="78452" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnnyStechhino" EmployeeId="45678" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="JohnDoe" EmployeeId="45981" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> <Employee EmployeeName="Soumyadeep" EmployeeId="12345" CompanyName="ABC Inc." CompanyAddress="Bangalore" ContactNo="0000000" /> </EmployeeDetails> …

Member Avatar for NormR1
0
4K
Member Avatar for joe_ojah

Hi everyone I am making a system where i have to refresh the database after updating it. I am using a JTable and a mysql database, but i have to close down the application so that the updates can be implemented.Is there a way of refreshing the connection session, or …

Member Avatar for JoshuaKissoon
0
328
Member Avatar for ErlendHL
Member Avatar for sureshjohnviani

hi everyone, i name is suresh john viani. i am a final year student in computer science. i need some [U]unsolved problems or some topics in networking and image processing[/U] to carry out as my project. thank u all

0
23
Member Avatar for DoEds

Arg... Guys can you correct my code? 'coz it gives me a wrong output if i input "3 , 1, 2 or 1, 3, 2 or 3, 2 ,1" [CODE]import javax.swing.*; public class OutputGreatest { public static void main(String[] args) { int uInput1,uInput2,uInput3; int maxValue; uInput1 = Integer.parseInt(JOptionPane.showInputDialog(null,"<1>Input a number …

Member Avatar for DoEds
0
125
Member Avatar for shirup

i have difficulties in this area and am kindly requesting for your help.i need to submit an assignment by the end of today.please help

Member Avatar for NormR1
0
103
Member Avatar for ryathegr8

slaamz guls and guys! can any body tell ,how to validate input to check whether it in Integer only?? it shouldnot be in Double, Long and float in type..... i am writting simple code for simple calculator.... plz reply me fast if any body knows... regards m0m0

Member Avatar for javaAddict
0
83
Member Avatar for Chaster

Hi all, I've been searching for some time without any success. Here's the problem: I have an SWT GUI, which contains some UI elements placed onto a Composite. I would like to dynamically add a new Composite to the old one, when a certain event is triggered. Fine everything works …

Member Avatar for mostafaelshafei
0
460
Member Avatar for sunil_skmd

Hi, I am new to java. i want to use a switch statement on operators that are in read as strings. Like "==","!=",">=","<=". Please help me to do this as i cannot use even their ascii value of these operators to switch the cases.

Member Avatar for javaAddict
0
212
Member Avatar for Mr.UNOwen

Hello, Just recently I learned how to make a game with java using an applet and I was wondering how I’d go about making a java game for cell phones?

Member Avatar for johnfl
0
87
Member Avatar for evangelyngulip

hi.will you please help me in making a Payroll System that using a Java?Thank you.

Member Avatar for rboffers
0
44
Member Avatar for pi_lord12

I'm making a JPanel for a game. I want the background to be an imported image, so I set up a ClassLoader to import the image and converted that to a URL. However, that URL appears to be null, as when I try to put the panel into a JFrame, …

Member Avatar for pi_lord12
0
156
Member Avatar for darling332001

Friends, I'm taking a Java programming class online and it seems that the lecture nor the book explains in detail the finer points needed for my programs to work. Thus far, I've gotten by with what I know of prior languages and trial and error. However, I'm having problems with …

Member Avatar for tong1
0
268
Member Avatar for smoothe19

How do i create such a thing like a txt file where i can save usernames and passwords? but is protected that only certain users can access and edit the usernames and passwords? Please help I tried using a txtfile but i realized anyone can access it...is there anyway of …

Member Avatar for NormR1
0
89
Member Avatar for jiraiya

Hi everyone, I'm having a problem with a JUnit test I've written. I think there should be a simple solution but I can't work out what's wrong. I'm new to using JUnit so any advice would be a big help. Here's the test class below. At the moment I'm just …

Member Avatar for Taywin
0
99
Member Avatar for ttboy04

hello, I have called getFruits method from another class (another class is called vegetables). I can't seem to add the names of the fruits in myTable TreeSet in class Test. The error I am getting is "cannot find symbol - variable length". Can anyone help me. Thanks [CODE]public class Test …

Member Avatar for ttboy04
0
136

The End.