32,204 Topics

Member Avatar for
Member Avatar for gedas

hey, i have got a class that extends JPanel called viewPanel and in there, there is paint method. in the paint method there is a oval point drawn on it. the coordinates x and y for the point are generated by using math.random so when the program executes the point …

Member Avatar for gedas
0
102
Member Avatar for greeshmapc
Member Avatar for diafol
0
60
Member Avatar for Enzo85

Hello everyone, I am trying to read a .rtf file, does this have to be done using the RTFeditorKit? Can a .rtf file be read line by line like a normal .txt file, as I was planning to read it line by line (as a string) to remove punctuation first …

0
111
Member Avatar for jackmaverick1

Hi, I'm very new to Java (started today, though I have 1.5 years in c++) and I've now read a little bit about Java, the thing that I can't find is how to take user input from the keyboard through a console window... How can you go about do that? …

Member Avatar for sourabh17
0
198
Member Avatar for DarkLightning7

I am trying to use the java XOM libraries but I am having trouble getting them to work the way I want them to. I want to get each element and its attributes from an xml file then use that information to create folders and files on the users computer …

Member Avatar for DarkLightning7
0
316
Member Avatar for Naqib

Hy welcom to all. I want to controll mini remote controll car from laptop. i have only experience of java desktop application. but no experience in wireless programming. what i do to complete this project thanks

Member Avatar for VernonDozier
0
201
Member Avatar for patel.ajay82

[code] import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class SendMailTLS { public static void main(String[] args) { String host = "smtp.gmail.com"; int port = 587; String username = "avdhoot.patel@gmail.com"; String password = "password"; Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); …

Member Avatar for kvprajapati
0
3K
Member Avatar for arshi9464

i made a jsp page, now i made a LAN named "ar", and connected another computer with "ar" network. Now i want that the client computer i.e. computer 2 should access my jsp page which is arsh.html , how to do this????? My approach: i set my IP as 192.16.1.44 …

Member Avatar for arshi9464
0
122
Member Avatar for bharath54321
Member Avatar for MeandJava

Hello everybody, My team and I have an idea of a product to develop. It's a kind of game we want to run in Actionscript. Unfortunately our hardware (buttons, lights, maybe sounds) works with Java can we combine those two or do we have too choose one of the languages? …

Member Avatar for peter_budo
0
146
Member Avatar for 1ML

Hi, I've started developing for Androind [ditched Symbian but that's a whole diferent styory], and I'm not what you'd call a naturall Java developer [much prefer c++]. Eclipse seems to run rediculously slowly on windows 7 (64bit), and running a dual boot system with Linux [on which it seems to …

Member Avatar for 1ML
0
585
Member Avatar for coderN

[B]I am stuck at a program, where I have to print all the subsets of a given arguments, I printed n-binary digit using recursion but i cant not use the same algorithm. ..lets say % java SubSet acd {,a,c,d } which will print {a} {c} {d} {a,c}, {a,d}, {c,d}, {a,c,d} …

Member Avatar for JamesCherrill
0
39
Member Avatar for iShrne

Hii every One i create Doubly Linked List with all methods i need , but is still one question which i really did not understand it very well it said : write a method to create linked list from double linked list using the methods available in myLinkedList(which have the …

Member Avatar for JamesCherrill
0
148
Member Avatar for bhallarahul

Can anyone tell me which website/book is best to learn RMI and JAVABEANS COMPONENT

0
43
Member Avatar for huBelial

I'm trying to connect to db2 but I keep getting errors. I have db2 installed on a windows 7 user account called "db2admin" The database I'm trying to connect to is called "db2database" The username and password for that account is: db2/db2 This is my code: [CODE]try { Class.forName("com.ibm.db2.jcc.DB2Driver"); Connection …

Member Avatar for huBelial
0
80
Member Avatar for Frengerdany

Hi I have a problem with RSA encryption/decription of txt files, I have one method to create a pair of RSA keys and save them into a file, then i made two methods, one for encryt and one for decrypt, encrypt method works fine, but when I want to decrypt …

0
143
Member Avatar for RagingRiver

I am having a problem with left alignment after adding a second JPanel. Both JPanels are using the BoxLayout with the first set to Y_AXIS and the second set to X_AXIS. If you comment out the add(twoPanel) it results in the desired left alignment. I don't understand why the alignment …

Member Avatar for Ezzaral
0
409
Member Avatar for tmcculloch
Member Avatar for steelshark
0
148
Member Avatar for stupid guy

hi all, m new to this site and m newbee to this java thing..i have a project dnloaded from somewhere ..and now i have some problem with updating the database ..following is the [CODE] cnt=cnt+Integer.parseInt(dis.getText()); System.out.println(cnt); cnt=cnt+ Integer.parseInt(ent.getText()); System.out.println (cnt); String str="update bikeinfo set stock =" + cnt + " …

Member Avatar for Ezzaral
0
130
Member Avatar for MrHardRock

Hey everyone I need to write a tic tac toe program vs the computer using an array. I have gotten almost all of it done but I am totally stuck on this error. Any help would be much appreciated, thanks in advance. My error being on line 221 and 222 …

Member Avatar for audiomatic
0
233
Member Avatar for xanawa

Hi, I am trying to use regex to validate an input from JOptionpane i want to allow the user entering ONLY digits, letters and exclametion marks. This is my line of code where i would like to put teh regex. [B]Code[/B] String message = JOptionPane.showInputDialog(null, "Enter a Message: "); Steganography.hide(message, …

Member Avatar for xanawa
0
75
Member Avatar for xanawa

hi, I would like to save a .bmp image using showSaveDialog and i cannot figure out what to use.. Below i have the code of open. [B]Code[/B] [CODE]protected void Open(JFileChooser chooser, JLabel lblPicture) { // TODO Auto-generated method stub if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { File fileChoosed = chooser.getSelectedFile(); try { …

Member Avatar for xanawa
0
110
Member Avatar for kvskchaitanya

i'm writing a small desktop application to store details entered in to a swing ui.this application saves, edits and deletes the records.every thing is working fine but when writing searching functionality when i search the records i'm able to fill the searched record in to the text fields successfully.but if …

Member Avatar for kvskchaitanya
0
168
Member Avatar for titosd

Hello, I wrote a program by RMI, when I compile it by the cmd, the client class dosn"t compiled, it"s arrive to the lookup and stop. this is part of my code: Client Class: (the lookup doesn"t succeeded, when i compile it, print demo 1 , demo 2 and demo …

Member Avatar for thekashyap
0
129
Member Avatar for 8.brahim

I want to draw an image at X Y position when the user click the mouse so I'm using an InternalFrame with layout set to NULL , inside a JFrame with Layout free - using netbeans here is the image class [CODE=java] package myPak_1; import java.awt.*; import java.awt.image.*; import java.io.*; …

Member Avatar for 8.brahim
0
223
Member Avatar for Joslup
Member Avatar for mKorbel
-1
90
Member Avatar for rayden150

So i found a code thats the Java equivalent of the bubble sort algorithm, i understand parts of it, but the thing is i dont get how it works, specifically the loops which i assume do much of the work, can somebody please explain to me, i swear if i …

Member Avatar for thekashyap
0
173
Member Avatar for gauravk_bhanot

I am working on a application for which i need to connect it to a database. I have chosen postgreSQL. But i cannot connect it to java. Can somebody help. I tried this [url]http://www.faqs.org/docs/ppbook/x20856.htm[/url] but i don't know how to set classpath.I am currently working with windows xp.

Member Avatar for gauravk_bhanot
0
173
Member Avatar for andyhunter

if items are added into an arraylist would another arraylist be required for grouping items or would a hashmap or something else be required i.e. title, firstname, last name etc saved indvidually but therefore grouped to equal person 1 and so on ? the reason for grouping is to edit …

Member Avatar for thekashyap
0
146
Member Avatar for juan92

currently i am taking a java class, and out professor is introducing it with the language processing so we get the idea of how things work. he moentioned that processing comes from java, so that's the reason i posted it here. i made a really simple game somewhat of a …

Member Avatar for juan92
0
135

The End.