35,618 Topics

Member Avatar for
Member Avatar for ceyesuma

Hello. I going to write fames.xml with my app. I need to know the best way to handle adding a block of XML but not at the end because I need to have the root element at the end. Any ideas. 1.never end it but when I use it add …

Member Avatar for ceyesuma
0
105
Member Avatar for Andrew Davis 64

I have no idea how C++ works, but I'd like to learn... Is it possible to create java files/programs using C++?

Member Avatar for geojia
0
209
Member Avatar for MellyMel1984

Hey guys I have a method that is calculating a time based two JComboBox selections. I am returning the time as a Date object but it prints the date and time, when I say 'cal.getTime()'. The date is always the same, the format is Thu Jan 01 (time i calculated) …

Member Avatar for jon.kiparsky
0
978
Member Avatar for LianaN

Hi! My code worked correctly, but now it produces the error message. It seems that the command [ICODE]treeModel.reload();[/ICODE] doesn't work anymore. Please explain me what happens? [CODE] private void addOrgFolder() { String[] data = new String[2]; data[0] = text2.getText(); data[1] = text1.getText(); DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)SystClasses.TreeEditTest.tree1.getLastSelectedPathComponent(); tableModel.setQueryDontChangeTable("insert ..."); DefaultMutableTreeNode nNode …

Member Avatar for LianaN
0
336
Member Avatar for Roy1287

Hey. I've been working on this for a while and am having a lot of trouble with it. What I have to do is: Some processing requirements: - all data entry will be in the main method - must use a sentinel loop to stop processing salespersons - must test …

0
82
Member Avatar for haxtor21

Hello people. I am writing a program that helps users see if they can afoord monthly costs (tuition and rent). here is the main method: [CODE]import java.io.*; public class UserClass { /** * @param args */ public static void main(String[] args) throws IOException{ Finance fin=new Finance(); fin.liveWithParents(); fin.amountRent(); fin.collegeTuition(); fin.getMonthlyCost(); …

Member Avatar for haxtor21
0
117
Member Avatar for minimi

Here is my code: [url]http://pastebin.com/KTR86nzD[/url] This is input.csv: name,age Fred,88 Stella,11 Nellie,99 George,22 Violet,33 Rose,77 Bob,66 Lena,55 Billy,44 It should print the above in this format - Fred is 88 years old Stella is 11 years old Nellie is 99 years old ... Billy is 44 years old. Afterwards, it …

Member Avatar for apines
0
240
Member Avatar for Peach2010

[CODE]public class ReverseArray { //declare an array variable //do not call new yet! int[] array = new int[100]; int a; int[] getCopy = new int[array.length]; /** * Constructor * * Reads in int values and stores them in an array. * The first int in the input is the number …

Member Avatar for apines
0
213
Member Avatar for LianaN

Hi! If I run the code shown below from my local machine, where the FTP server is installed, then everything works correctly. However, if I try to run it from some other machine, then the message "Cannot connect to the FTP server!" appears. Settings of my FTP Server are shown …

Member Avatar for LianaN
0
123
Member Avatar for trivax

Hi I am creating a Media recorder/player using JMF. I have created a frame which is GUI based with buttons. Can anyone help me by writing the code of the function to increase/decrease volume and develop a playlist for playing different media files?

0
109
Member Avatar for susieq69

Hello I am quite new to GWT and Java. I am doing an assigment which helps students select courses. The application starts and the user clicks on a department. When they click on the department the courses offered by that department are shown with check boxes next to each course. …

0
47
Member Avatar for hanaa5h5

hello everyone hope all ok i'm facing a problem in Netbeans in that when compiling no error exist but when running nothing happen or displayed, can anyone help me in it plz

Member Avatar for hanvyj
0
131
Member Avatar for Lxyslckr

ok so I have to make that toggleCircusStatus() gives me the opposite of fromCircus [QUOTE]Write a public method called toggleCircusStatus that negates the value of the circusStatus variable.[/QUOTE]] [CODE] public class Elephant extends Mammal { private boolean fromCircus; public Elephant() { super(); fromCircus = false; } public Elephant ( String …

Member Avatar for deviliq
0
125
Member Avatar for coding101

How can I check if an input is a String of alphabet characters..not int double etc etc...

Member Avatar for Dhruv Gairola
0
186
Member Avatar for anupam.j2ee

Hello Everybody, I am a beginner, I am got stuck with following error at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) …

0
100
Member Avatar for McCurry0x77

I keep getting these errors in the program below. Here is the assignment: http://www.people.vcu.edu/~dprimeau/cmsc255/fall10/fifthprogram.html C:\Users\FerretFool0x77>javac Person.java Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: illegal start of expression public void recordpersonsinhousehold(int x){ //created 11/16/10, modified 11/19/10 ^ Person.java:43: ';' expected public void recordpersonsinhousehold(int …

Member Avatar for jon.kiparsky
0
164
Member Avatar for magesh kumar

HI.... I wanna create runtime graphical nodes using jsp...could anyone send me code for this one...pleassssssss

0
90
Member Avatar for kchadek

Wrote this program to find if 2 phrases are Anagrams of one another. Works except that I need to make it ignore any other character than letters(including spaces) As is now I get 4 errors, all in that last boolean 1&2: cannot find symbols for phrase1/2.length (tried anag.phrase and didnt …

Member Avatar for kchadek
0
170
Member Avatar for adanaz

Hi guys I'm trying to take a user input (name) and replicate the input in other methods. Can anybody help? Here is the code: [CODE]import javax.swing.JOptionPane; public class example { public static void main (String[]args) { entername(); } public static void entername() { String a=""; a = JOptionPane.showInputDialog("Welcome. Enter name …

Member Avatar for adanaz
0
962
Member Avatar for rowley4

I do not want to have my box this wide. I would like the text to wrap but I do not know how. Can I do this? I'd like my box to be 400,400 rather than 1250,200, but it is the only way I can get my text to fit. …

Member Avatar for quuba
0
626
Member Avatar for lse123

How in Java SE and EE(Web), I may program in a form, a drop down menu and same time itself be a textbox user can type in?

Member Avatar for kramerd
0
70
Member Avatar for speedkreature

This is my second day with Java. So far, I'm enjoying it quite a bit. It has the structure of C++ that I like, and with so much more utility (lots of type conversion built in)! I've written a console program that allows a user to input text. That text …

Member Avatar for Ezzaral
0
337
Member Avatar for LianaN

Hi! How could I create/delete a directory on the remote machine using FTPClient of org.apache.commons.net.ftp.*; ? The code used to save a file on the remote machine is shown below. But I would like to update it for creating/deleting directories. Thanks! [CODE] private void saveAttachedFileToRemoteMachine(String pathToFile, DefaultMutableTreeNode selectedNode) { FTPClient …

Member Avatar for LianaN
0
939
Member Avatar for LianaN

Hi! I would like to get an advise about the following question. There is a set of text fields. The task is to generate a new JFrame and align text fields based on the information given, i.e. a row and column of each text field. Let's say there is a …

Member Avatar for LianaN
0
187
Member Avatar for spring_patel

hello, i'm vasant...recently visited an online tutorial for creating java desktop database application here is the URL [url]http://www.netbeans.org/kb/docs/java/gui-db.html#running-outside-IDE[/url] ... everything works fine...when building and executing the application from within the NetBeans IDE..6.7 but as instructed in that tutorial...when I tried to run the .jar file after exiting the netbeans IDE, …

Member Avatar for Ezzaral
0
162
Member Avatar for lse123

in JSP mail scripts may rather email a html code, email a file JSP, I mean NOT as attachment but itself embedded in message and show, eg pictures etc text from this file?

0
73
Member Avatar for StaticX

Hello, I am having some trouble with getting my menu to respond to a mouse click.I have 2 items on my menu, "New" and "Exit", and they are using the actionlistner like so [CODE] newFromMenu = new JMenuItem("New Screen"); newFromMenu.addActionListener(this); [/CODE] and then my action event [CODE] public void actionPerformed(ActionEvent …

Member Avatar for StaticX
0
68
Member Avatar for mani_1991

hai, friends i have problem in inserting image into mysql database using a small java program.... here is my code for inserting image into database............ [CODE] import java.io.*; import java.sql.*; class ImageUpload { public static void connection() { Connection con=null; Statement st=null; PreparedStatement pst=null; try { Class.forName("com.mysql.jdbc.Driver"); System.out.println("driver is loaded"); …

Member Avatar for SasseMan
0
244
Member Avatar for deniseblue

I am doing a inventory assignment, I think I have completed the code, but when I try to run it I get <no main classes found> I am using NetBean IDE 6.9.1 It also tells me: Created dir: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist Not copying the libraries. Building jar: C:\Users\marilyn\Documents\NetBeansProjects\ClassPublicPayroll\InventoryPart1\dist\InventoryPart1.jar To run this application …

Member Avatar for apines
0
231
Member Avatar for fahadyousaf

program is working fine on YES option but on NO option it does not return ? any one give me hint ?? this.addWindowListener(new WinAdapter(){ public void windowClosing(WindowEvent e){ String cnic1 = (String)cnic.getValue(); String name1 = name.getText(); String fname1 = fname.getText(); String age1 = (String)age.getValue(); String add1 = add.getText(); String pro1 …

Member Avatar for JamesCherrill
0
129

The End.