32,204 Topics

Member Avatar for
Member Avatar for martosio

hi there, I'm currently creating my first mobile app, a drinking game (I know, alcohol and technology don't mix. But alcohol and manual calculations are even worse!). All my data is stored in an 2-dimensional array. the number of users may vary from game to game (=number of rows) but …

Member Avatar for Hakoo
0
145
Member Avatar for sandyho

Number of pages =========== rate per page (cents) First 100 ============ 3.0 Next 100 ============= 2.5 Above 200 ============ 2.0 Example : Printing cost for 200 pages is $5.5 Printing cost for 301 pages is $7.5 write a java(application) program to do the following: - prompt the user for the …

Member Avatar for mKorbel
0
308
Member Avatar for syeda amna

hi I am a beginner. I am building java application which is like a form. First the user fill the whole form and the click OK. I want to do that as the user clicks OK all the items entered in the JTextField will save in the variables that I …

Member Avatar for mKorbel
0
217
Member Avatar for sciprog1

Hello, I have a JPanel (inside of a JFrame). I have a picture(.jpg), a JTextArea (with scroller) and a JTextField. On the JPanel, I want the picture left justified , the JTextArea right justified and the JTextField just below the JTextArea. What kind of layout would be appropriate? Thank you! …

Member Avatar for sciprog1
0
79
Member Avatar for kasraluckblack
Member Avatar for quuba
0
98
Member Avatar for aguele

Can anyone help me out i want to learn to become a software developer, i need to know how to get started.

Member Avatar for sirlink99
0
119
Member Avatar for juan92

so i am trying to learn java on my own as a hobby, because well i didn't see my self doing this for a living, and i did terrible in the class, so i am going over the text book again, and starting from scratch. i am not sure if …

Member Avatar for juan92
0
95
Member Avatar for hemaaaa

Hi there, I have this long Q and I must solve it to get bouns or i will fail :( Develop a statistical program to compute the famous statistics. First, create a text file, data.txt, contains several observations. Then write a java program that displays the following menu: Main Menu …

Member Avatar for NormR1
0
181
Member Avatar for winecoding

I have a java project, which runs fine on eclipse. Right now, I need to run it from command prompt, like java classpath ... How to setup this classpath based on the stored ones using in Eclipse.

Member Avatar for jon.kiparsky
0
261
Member Avatar for n3red

Hi, I am using eclipse and Netbeans 7 whit Java JDK 1.6 i am wondering how do i add java extensions. I want to add Appache libary : org.commons.apache.2.4.jar to my java because their libary offers a lot of good extensions such as coutnMatches method.

Member Avatar for JamesCherrill
0
75
Member Avatar for JSS540

Hi, I have a jFrame with a couple of jLabels, designed in Netbeans so most of the code is generated. If I want to change the text of the label, I use .setText() inside my jFrame and it works great. Now here's the problem. If I just make a String …

Member Avatar for JamesCherrill
0
1K
Member Avatar for C:\>

I need to run a javascript page from my app and receive the page that results from the script on a String. This is my code: [code=java] try { URL testurl = new URL("http://www.site.com/page.html"); try { String s=testurl.getContent().toString(); System.out.println(s); } catch (IOException ex) { Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex); } } catch …

Member Avatar for NormR1
0
138
Member Avatar for C:\>

I have URL like this: [code]http://www.site.com/app/index.html#secret_code=gagh362%%23atg._f46&other=5449[/code] I need to pass gagh362%%23atg._f46 part to a string. All the examples i find are for simple PHP parameter parsing and i'm having difficulties to adapt them to this case. Can someone help?

Member Avatar for C:\>
0
131
Member Avatar for tirambad

i am developing a BE final year project on Video Conferencing from Java with both unicasting and multicasting. I found there are some protocols such as SIP to implement it. are there any better and efficient way to implement it?

Member Avatar for JamesCherrill
0
127
Member Avatar for solomon_13000

The result for the code below is "ex [6, 7, b, d] [6, 7, b]". Therefore I am wondering how did the exception take place and why is the value 3 missing? [CODE] import java.util.*; public class Exam6 { public static void main(String[] args){ TreeSet<String> t1 = new TreeSet<String>(); TreeSet<String> …

Member Avatar for JamesCherrill
0
122
Member Avatar for Crono

Could someone explain to me what it returns? int result2 = negative(-3); System.out.println("The final answer is " + result2); [B]public[/B] [B]int[/B] negative(int num){ [B]if[/B](num >= 20){ [B]return[/B] -5; }[B]else[/B]{ [B]return[/B] negative(num + 4) + 2 * num; } }

Member Avatar for mKorbel
0
110
Member Avatar for WolfShield

Hello guys, I am pretty new at (good) programming, so I had some pretty bad code I was using until I ran across some code and decided to model my code after it. I have the code so it has no errors, but when I run it (NetBeans) it doesn't …

Member Avatar for WolfShield
0
146
Member Avatar for WolfShield

Hello all, I have a window with a JList inside it. I would like each line in the JList to show up in a certain font. But when I try the 'setFont(font)' method where 'font' has already been defined it say that it cannot find the symbol 'setFont(java.awt.Font)'. Here is …

Member Avatar for WolfShield
0
135
Member Avatar for lynnajoe

Hi, Can anyone tell me why this program is skipping line 63? Thank you, lynnajoe [CODE]import java.util.Scanner; //Imported Scanner for input import java.util.Locale; //Imported Locale and NumberFormat import java.text.NumberFormat; /**Simple Payroll Program titled PayrollPartI & modified for PayrollPart II * * @author Lynn Ortiz *///May 22, 2011 //Description of program: …

Member Avatar for JamesCherrill
0
129
Member Avatar for bibiki

I have this file that contains an instance of some Machine object. When I compile the file I have, it says that the class uses a deprecated API, meaning the Machine object. I tried looking for it in [URL="http://download.oracle.com/javase/6/docs/api/"]this[/URL] link, but I find nothing. I was wondering if anyone who …

Member Avatar for bibiki
0
147
Member Avatar for sam023

i just to know how can we implement the feature of live streaming in my blackberry aplication.. thanks in advance.

Member Avatar for peter_budo
0
133
Member Avatar for lovelyrose26

i need help please i cant input the name of pet in 2nd to the 5th it wont me input the name and skip into age. i dont get any error i just dont get it why it skp the name. public class PetRecordTESTER { public static void main(String [] …

Member Avatar for NormR1
0
90
Member Avatar for Kprosser1029

I need to create a gui application.. When the user clicks the start button use a JFileChooser to allow them to pick a directory from the system and then run the recursive search of the file system from that directory and display the directory and each file in the JTextArea. …

Member Avatar for JamesCherrill
0
99
Member Avatar for dywlkr365

I've tried searching my problem with no success...Can anyone help me fetch a password from the jpasswordField, encrypt it , store it to the database then decrypt back for login validation

Member Avatar for jwenting
0
216
Member Avatar for Japus

Hello I'm wondering when it is best to use reflection to call a method instead of defining and using an interface. I guess using the interface will be faster but what are the advantages of using reflection? The program I'm creating is a GUI which should support mutliple views ([URL="http://en.wikipedia.org/wiki/Model–view–controller"]Model …

Member Avatar for jwenting
0
620
Member Avatar for manish250

hi all I am new to web services.I want to know how to extract the java file from the given WSDL in which i have https based URI. please suggest

0
153
Member Avatar for monsterbb1

I WAS WONDERING IF SOMEONE COULD HELP ME MOVE THE JTextField above all my buttons like a normal calculator. Also, after this I don't know how to connect the basic calculations to operation buttons. When the user clicks a button the text appears in the textfield but I don't know …

Member Avatar for NormR1
0
257
Member Avatar for cannadawoot

Got some problem... This code populates an 2d array and then adds it to an arraylist (all) It runs 3 times and each time the array place gets different values. But if you look in arraylist all, the arrays got same value because they point to each other. If I …

Member Avatar for cannadawoot
0
190
Member Avatar for tasu

i have a button and when it is clicked i want it to open a new form in netbeans. how do i do this...???

Member Avatar for StormHawk
0
78
Member Avatar for becool007

Hey guys, I am making a Java program where it runs on a library. This library classifies my program as a script. So basically, I am scripting. Now I want to make various scripts, but I want them all to have the same layout so that I can have the …

Member Avatar for NormR1
0
107

The End.