32,199 Topics

Member Avatar for
Member Avatar for DDirectJ

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)

Member Avatar for DDirectJ
0
165
Member Avatar for dangari

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 …

Member Avatar for dangari
0
138
Member Avatar for adams161

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 …

Member Avatar for adams161
0
142
Member Avatar for Saint OTB

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 …

Member Avatar for peter_budo
0
2K
Member Avatar for lse123

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?

Member Avatar for JamesCherrill
0
182
Member Avatar for imKEN

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[]; …

Member Avatar for imKEN
0
307
Member Avatar for vijjuexalter
Member Avatar for happygeek
0
171
Member Avatar for premtpt

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 …

0
61
Member Avatar for sc0field1

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 …

Member Avatar for peter_budo
0
136
Member Avatar for Abdel_eid

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 …

0
76
Member Avatar for Hakoo

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.

Member Avatar for peter_budo
0
135
Member Avatar for liran

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 …

0
99
Member Avatar for oldezwe

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

Member Avatar for masijade
0
230
Member Avatar for Acklox

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 …

Member Avatar for JamesCherrill
0
192
Member Avatar for Hakoo

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 …

Member Avatar for Hakoo
0
148
Member Avatar for bharath54321

how to insert an array in jtable..... i want example code pls help me

Member Avatar for mKorbel
0
61
Member Avatar for jrosh

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 …

Member Avatar for jrosh
0
264
Member Avatar for Oddone

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%, …

Member Avatar for Oddone
0
303
Member Avatar for carmzy

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 …

Member Avatar for carmzy
0
117
Member Avatar for Acklox

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 …

Member Avatar for Acklox
0
440
Member Avatar for cjjm0202

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 …

Member Avatar for cjjm0202
0
241
Member Avatar for JSTBO

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 …

Member Avatar for mKorbel
0
145
Member Avatar for bibiki

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 …

Member Avatar for bibiki
0
126
Member Avatar for CMAUK

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 …

Member Avatar for CMAUK
0
129
Member Avatar for code07
Member Avatar for liran

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 …

Member Avatar for liran
0
303
Member Avatar for cocoll

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 …

0
43
Member Avatar for alibm

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 …

Member Avatar for mKorbel
0
369
Member Avatar for shruti_lively24
Member Avatar for masijade
0
58
Member Avatar for jrosh

I want pass some parameters (two strings) to the run() method when starting the thread through thread.start(). how can I do that?

Member Avatar for ~s.o.s~
0
134

The End.