32,204 Topics
| |
Hi guys. I have some questions about very long diagram that I have to make. In short lines the task is this: airplanes and airports. The airports have these characteristics: One runway and multiple hangars. Some of the airports are only military. The airplanes have these characteristics: Capacity. Speed. Max … | |
hello everyone, I am doing a program for a class which is suppose to say the amount of pages one needs to read and then say if any of the homeworks have the same amount of pages. My teacher wants me to override the compareTo() method and then test it … | |
Ok, 2 questions. 1. I have an applet, but it is IN the page, like, part of the HTML I think, how do I get it to like "pop up" and be its own window. It will eventually become a game tool, so it would be easier to use if … | |
the output is supposed to be like this: [B]1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1[/B] what I have is this: [B]1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1[/B] [CODE]import java.util.*; class Array{ public … | |
Hello everyone...I'm trying to create a journey planner for an underground system...but the first thing Is to create the skeleton of the underground system... my problem is I don't know how to add more links to a single node when the station has an intersection with other lines... [CODE]public class … | |
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 |
The End.