32,204 Topics
| |
I'm working on a project on my own and wanted to create an JComponent or JFrame that looks like the following screenshot. ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-left") ![8557bdcb155e0af7b29ae22b32d6f984](/attachments/small/4/8557bdcb155e0af7b29ae22b32d6f984.JPG "align-right") Here is its layout. ![e687f5cd32e6536ff8d0e3406b83b9e2](/attachments/small/4/e687f5cd32e6536ff8d0e3406b83b9e2.png "align-left") ![e687f5cd32e6536ff8d0e3406b83b9e2](/attachments/small/4/e687f5cd32e6536ff8d0e3406b83b9e2.png "align-left") I would appreciate it if you showed me by an … | |
I have done most of the topics in core java.But i feel for web development u have to do advanced java.Then struts then hibernate.I have heard that c# is almost same as core java(j2se)so shall i proceed with .net because i have heard its not that lengthy and u have … | |
private static Scanner scanner; import java.util.Scanner; public class Dfs { public static void dfs(int a[][],int m[],int i,int n) { int j; m[i]=1; for ( j = 0; j < n && i<n ; j++ ) { if ( a[i][j] == 1 && m[j]==0) { dfs(a,m,j,n); } } } public static … | |
HI please can you run the code as attachement..i m trying to test the guess number ..if it is greater than the random number or smaller but when it is equal the function will return -1 i have error that i cannot understand as i m new in java the … | |
So my server sends information and receives information. I know this because i tested it on the local host. The problem is that the portion it receives comes out with little squares after the user input. Here is a picture of the problem. [url]http://img706.imageshack.us/img706/3342/outputc.jpg[/url] [url]http://yfrog.com/jmoutputcj[/url] Thank You Server Code: [code]import … | |
For inputs A and B (integers) find number of possible integers X such that S(x^2)=S(X)^2 where S(x) is the sum of digits of X.......A<X<B | |
I'm trying to create a JTextPane that has the following properties: 1. Vowel letters are colored in green 2. Consonants are colored in blue 3. Numbers are colored in red 4. And the maximum number of characters is 26 and all characters are in Upper Case To achieve this I … | |
I have a text file transa.txt .I want the contents of the file to be filled in the array cell by cell.example the file reads: 1 1 1 1 0 0 1 0 1 1 1 1 so i want arr[0][0]=1,arr[0][1]=1,arr[0][2]=1...... Can someone please help me with this..I am stuck … | |
Hi All, I have come across Read and write method from InputStream and outputstream but im finding it hard to understand the logic behind it. Below is a simple example which reads a jar file from input stream and writes it to output stream. Please explain the logic on how … | |
Here i have this code which read from a text file and fills the 2d array.Then calculates the sum of each column.I want all those column names whose sum is greater than 5 to be written in output file. /* * To change this template, choose Tools | Templates * … | |
I have this array Array myArray = {1,2,3}; I want to print the output of the array as follwoing 1,2,3 but when I do this for(int i=0 ; i < myArray.length ; i++){ System.out.print(myArray[i]+","); } however I get this output 1,2,3, how can I get rid of the last comma | |
A parking garage charges a $2.00 minimum fee to park for up to three hours. After three hours, the garage charges an additional $0.50 per hour. However, the maximum fee will be $10.00. No one can park over 24 hours. This is what I have: public double calculate(double hours){ if(hours … | |
one of my goals for this year is to learn java, and I found an excuse to get started lately. So over hte last couple of hours I have been reading tutorials and the likes, and started following the advice from this post http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq As such I am up to … | |
Hello everyone I have created a java program using jsch0.1.50.jar to remove the directories in the sftp server. But I could not remove the folder "03-03-2014" as it contains a subfolder named "1837hrs" when I try to run the program I am getting the following error: > 4: The directory … | |
Write a Java application that prompts and reads a value representing the radius, of a circle, then prints the circle's circumference and area. I do not know where to start | |
Hello, I have a Client/Server program where the Server sends a string with a time delay using a Timer object to the Client. The Client has a JFrame with a JTextArea for display. When I test the Client program, I ran into two issues: a) Nothing ever shows up on … | |
Hi, Im just new to this language and I would like to know what does this groovy regular expression match too. I was not able to figure it by online articles.if some would would give an explanation i would greatly appreciate. the 3 regular expressions are : static propertyPattern = … | |
I am trying to write a code that asks the user to input a string, then displays the string with vowels removed. Ex: Godzilla returns in 2014, the output will be 'Gdzll rtrns n 2014' However, I am having massive difficutly in writing this for assembly. However, I was able … | |
I am trying to write a code that asks the user to input a string, then displays the string with vowels removed. Ex: Godzilla returns in 2014, the output will be 'Gdzll rtrns n 2014' However, I am having massive difficutly in writing this for assembly. However, I was able … | |
I created a button but I don't know the line of code to change the position of the button. | |
Hello i am not able to print the arabic language in java. I have converted the arabic in unicode . But when i read thos unicode as string in java and try to print out .I am getting ????? . Please help soon | |
I have JList and the JList contain names of fields of table in the db this is my code. I'm stuck in writing the query I understand that the sql query should be like this "SELECT column_name1,column_name2..etc FROM" however now I got the column formated this `// System.out.print(aa + bb);' … | |
I am doing a project which requires to find the majority color in a given image. I tried to wirte the code but could not. Lot of errors. Can anyone help me and provide me the code??? As the deadlines are in the next month You can mail me the … | |
Hello, I have to write a program which reads in a text file and sees the parsing symbols brackets, parentheses, and braces, and use stack implementation to have a balance symbol checker. My code compiles fine, but the output is strange, I know it has to do something with my … | |
| Ok, here's the situation. I've got a package filled with 4 .java files. Mainpackage: Console.java ReadTextFile.java WriteTextFile.java Main.java In Main.java, I'm trying to call a method within AQAReadTextFile2013.java, which also happens to be called "AQAReadTextFile2013". I've tried calling it using the line: * AQAReadTextFile2013.AQAReadTextFile2013("filepatharguement") * AQAReadTextFIle2013("filepatharguement") Within 'main', but they … |
the code for get two polynomials then multiplicate them | |
My program should use `print` and `println` statements to draw a building on my console window. The building will have a variable number of stories and windows on each story. The windows also will be of varied heights and widths. Everything works fine, but I am having trouble with the … | |
i'm testing a metdhod that is filled with how the window is going to be like.I use assertequals but i don't know what to type in the expected. | |
hi friends, have nice time I am using Eclipse kepler 32 bit i am using windows 7 32 bit jdk, jre 1.7 32 bit versions previously its working fine now its not opening i cant rectify this problem can you people help me to fix this problem | |
Hi all, I am having two different jsp files which having different applet embedded it. I want to run both jsp files in different jre in the client machine. kindly help Thanks in advance |
The End.