32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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! … | |
Can anyone help me out i want to learn to become a software developer, i need to know how to get started. | |
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 … | |
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 … | |
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. | |
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. | |
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 … | |
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 … | |
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? | |
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? | |
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> … | |
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; } } | |
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 … | |
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 … | |
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: … | |
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 … | |
i just to know how can we implement the feature of live streaming in my blackberry aplication.. thanks in advance. | |
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 [] … | |
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. … | |
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 | |
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 … | |
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 | |
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 … | |
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 … | |
i have a button and when it is clicked i want it to open a new form in netbeans. how do i do this...??? | |
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 … |
The End.