32,199 Topics
| |
i'd like to ask how one can get rid of all the components in a JPanel (buttons, labels, comboboxes etc), so that you can add new components (at run time that is) | |
Hi guys, I have a class called [B]Gen [/B]under a package [B]diaby[/B], project name diaby. I then have my other project andy, with class [B]Anders [/B]under package [B]andy[/B]. I have built successfully project dan, gone into its dist folder and copied the jar into project kim's common jars/libraries, included the … | |
At present i have a folder lantern with files lantern/*.class or java also in lantern are graphics folders. lantern/img with files /lantern/img/image1.gif for example The folder lantern folder is in is called build and its in my class path. each file in lantern/*.java has package lantern; i type java lantern/multiframe … | |
Had an assigment making a bankaccount, and validating the account owners age, this is just a bit of the code..... [code]public boolean checkDate(String myDate) // my date should be in the format 20111224 { int year = Integer.parseInt(myDate.substring(0, 4));// convert the year 2011 to int int month = Integer.parseInt(myDate.substring(4,6)); //convert … | |
return printLCS(i-1, j-1) + index(x, i); i found this in a recursive java program, well [B]that is being done is[/B] return index(x, i) (returns a character) and same time continue recursion? | |
I'm making a simple java calculator. I'm done with the GUI part but don't know how to start on it's functions. Anyone can tell and help me how to start it's function? [CODE]import javax.swing.*; import java.awt.*; class Calculator extends JFrame { private JPanel p1,p2; private JTextField tf; private JButton b[]; … | |
hi friends iam vijju 3rd btech. i need ur help to get good javaproject. | |
currently i am developing an image processing software it loads images from disk to application for processing .As more and more images loaded to application memory used for each image is not freed so system become slow and slow.In java theory it is stated that garbage collector automatically deallocate unused … | |
I have created 3 sorting methods. My problem is I need to have the user tell the program which sorting method they would like the computer to use. This sounds simple but I am confused on how to do this. My classes are below. If someone could help me out … | |
hello all, i am using javassist to create a class during run time i actually had know how to make every thing in the class except i need to know how to write annotations before the class and fields this is my class i need to create (i am using … | |
Hello all, We have developed two independent applications on individual systems. But both are developed in NetBeans 6.9 using Visual Midlet(VMD). Now problem is to merge those applications into one. Is this possible? How can I do this? Thanking You, Hakoo Desai. | |
Hello I want to put an advanced file uploader, for uploading a few files at once, and also for big files. The support for big files is critical, so if a user wants to upload 2GB file, and it get stuck in the middle, it can continue from the same … | |
I've seen this done before. I'm pretty sure its done with JDIC, does anyone have example code of this? I'd really like to know how to do this. Thanks | |
I am new here and didn't do well on a problem in school and was wondering what i did wrong! PROBLEM: Create a Book class that stores book information. Your Book class will store the following: •book title •author’s first name •author’s last name •book ISBN-10 number •publisher •price Create … | |
Hello all, I have developed one application which import all databases into recordstore. This executes successfully, but the problem comes when I try to Filter my records. here the code is : [CODE]public void itemStateChanged(Item item) { if (item == choiceGroup_ProductCompany) { RecordFilter filter = new RecordFilter() { public boolean … | |
how to insert an array in jtable..... i want example code pls help me | |
I am trying to connect to a database through j2me app and send two strings.It gives me java.lang.SecurityException: Application not authorized to access the restricted API error. (Caught in the try catch block) [CODE] import java.io.*; import javax.microedition.io.*; import java.util.*; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class storeNumbers extends MIDlet implements … | |
Okay, so I am trying to write a program which uses the Myers-Briggs personality test to turn this: Snoopy AABAAAAAAAAAAAABAAAABAAAAAAAAAAAABAAAABAAABABABAABAAAAAABAAAAAABAAAAAA Charlie Brown AAABBAABBABBBAABAAAABABABBAAAABABBBBABBBABAABABAABABAAABABAAABBAABABBB Linus AABBAABBBBBABAABBBBABABBABAAAABABBABABBAABAABABAABABBBBBBBAAAAAAABBBBB Lucy BABBAAABBBBAAABAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Peppermint Patty BBBBAAABBBBABBBAAAAAABBBAABAAAAABBBAAABAAAAABABAAAABAABBBBAAABBAABABBB Into this: Snoopy: 6A-4B 17A-3B 18A-2B 18A-2B [40%, 15%, 10%, 10%] = ISTJ Charlie Brown: 7A-3B 11A-9B 9A-11B 10A-10B [30%, … | |
Gudam, Please help me, regarding my ascending code.I've been doubt how to compare the two loop which is the outer loop and inner loop.I cant get the the output which is ascending in form...Please guide me this time because I'm just a beginner. Thank you in advance Here is my … | |
Problem i cant get this to compile using Textpad5 any help would be nice on what i am doing wrong seems i cant get the GUI aspect of Java to work and yes i have all latest updates of JDK and JDE [CODE]import java.awt.FlowLayout; //specifies how components are arranged import … | |
I wrote this code for class. It compiles fine, but I get errors when it is ran. What could be the problem, and what is the solution? [CODE]import java.util.*; public class Lab3 { public static void main(String[] args) { // variables String name1= "Phones"; String name2 = "Laptops"; String name3 … | |
I need some help with a Netbeans GUI with 2 buttons and 1 text area. I have 2 issues, but let me explain what I'm trying to do. First button will collect data from 2 text fields (a and b) and this is stored in a 2D array. The second … | |
I am trying to build an application that finds all possible ways of arranging 8 queens on a chess board in such a way that no two of them are on either the same row, column, or diagonal. I am also trying to do this applying what I think is … | |
Hi guys, I've made a code that will search in my text file specific strings that the user will enter in a text field. My problem is that when i enter the text and search, it will display everything and disregard the user input. heres my code: [code] public void … | |
help how to create to text files in java and also concatenate text files | |
Hye I have a question: Suppose I use JDBC, JDBCTemplate in order to execute a sql query. The query is something like: query = "SELECT ... FROM ... WHERE user = ? AND password = ? AND x='valuex' AND y='valuey' ..." Where user,password - I got from the web user … | |
hello! since i am new at jxta,i search and search at the internet so i found lots information about jxta,but it's just information nothing for help me to run a jxta program,so i have this code: [CODE]import net.jxta.platform.NetworkManager ; import java.text.MessageFormat ; import net.jxta.impl.*; import net.jxta.impl.peergroup.Boot; /* * * A … | |
Hello, I have a project and I'm working on the important part now. I want to create this interface in the end and informations in DB. This my goal, this is a prototypical interface created with MockupScreens [url]http://i.imgur.com/7rt5U.png[/url] now I created this interface, I think I'm progressing slowly because I … | |
| |
I want pass some parameters (two strings) to the run() method when starting the thread through thread.start(). how can I do that? |
The End.