32,204 Topics
| |
I'm getting errors, and I'm not sure why. Any help would be appreciated. I'm working on this program and when I put the ActionListener for the comboBox it blows up. I chose a topic from the comboBox that will pick a file to be read. When I comment out lines … | |
I have an interface built in javafx but it currently does nothing it just looks nice. How do you download files from the web in javafx or java? How do you create files on the users system in java or javafx? How do you place downloaded files in the created … | |
My question is based on class relationships. I've written code for 2 classes, one of the "public int..." bits in 1 class has a variable which holds the cost of something. In the other class a variable holds the weight of something. I want to multiply the weight with the … | |
I need a little help please,here is my question: How can I get the current index in a jComboBox? I searched it on google and i cant seem to find any answer. I need to get the index of the item that I select from a Combobox. Please help | |
Hello again everyone! I'm having a problem with this JFrame: [ATTACH]20095[/ATTACH] The JButtons "Add Entry!" and "Cancel" have an actionListener. When I press either button, nothing happens... Attached herein is the code: Forgive my code; it's rather long...as I'm still starting... And please do not mind the comment above the … | |
My code compiles successfully but doesn't run why?? What problem whatsoever is with the syntax????? [CODE]import java.util.Scanner; public class uppercase{ public static void main(String args){ Scanner in=new Scanner(System.in); System.out.println("Enter string:"); String str=in.nextLine(); for(int i=0;i<str.length();i++) {if(i!=str.length()-1&&str.charAt(i+1)>='a'&&str.charAt(i+1)<='z'&&str.charAt(i)==' ') { str = Character.toUpperCase(str.charAt(i)) + str.substring(i+1); } } if(str.charAt(0)>='a'&&str.charAt(0)<='z') str = Character.toUpperCase(str.charAt(0)) + str.substring(1); … | |
hi i am answer this question , but i didnt know what the errore with cast represent uppercase letters, lowercase letters and a considerable variety of special symbols. C++ uses small integers internally to represent each different character. The set of characters a computer uses and the corresponding integer representations … | |
Hello, I recently took up a challenge to make a full screen pong game in java. So far it is full screen, it does the basics (bouncing off floor/roof/paddles) with a minor point system. I also added support for every 20 seconds it speeds up the ball by 1pixel per … | |
Hey Im sure everyone is familiar with the game connect four right? Well I am trying to make it in Java right now but I am stuck right now. Can anyone help me with this? Here is the question straight from the book: Connect four is a two player board … | |
Hi , I am trying to get HibernateCfgXMLFile and HibernatehbmXMLFiles in new file option. So,that i can get document types automatically.. How can i do this... i added hibernate jar files also... now i am checking the hibernate option in open perspective option in the menu of eclipse... But there … | |
Hello everyone! My name is Uriel, and I'm from the Philippines. I'm currently doing our machine problem in Java. I'm using the BoxLayout for this GUI. [ATTACH]20069[/ATTACH] I can't seem to find the correct set of codes to make these buttons function. What codes do I use for these buttons … | |
i want to repeatedly replace e by o from the words Hello World to be Holle Werld [code]import java.awt.*; import java.applet.*; import java.lang.String; import javax.swing.JOptionPane; public class StringExercise1 { public static void main(String[] args) { String textString; textString = JOptionPane.showInputDialog("Enter a string:"); replaceAll(textString); System.out.println(); System.exit( 0 ); } public static … | |
hi:::: i hope very bady good? how threads are implemented in an operating system of Windows xp?how threads are implemented in the operating system?how user level threads map to kernel threads and threading models used by that operating system ? | |
I have an installer application I am building in javafx but I can't figure out how to get the operating system it is running on so I can place files in the right locations for each system and so I can customize the interface for each. If anyone has any … | |
I have developed a program applet and frame in it the program is perfect but i dont how to know run it in command prompt | |
Can someone please help me find a method to this? The following recursive method addeven (...) is supposed to add the even indexed values of an array, i.e., a[0] + a[2] + a[4] + … There are bugs in the method. Trace the method using test data, find the bugs, … | |
Okay, So this code I have is giving me an error: non-static variable this cannot be referenced from a static context. Here is the code: [code=java] package macey; /** * @author WolfShield */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class DemoConv implements ActionListener { private JLabel answerL; public static … | |
Grating everyone I've to write a program that know how two animals related to gather, the program should first read the number of cases from file , and then the size of two matrices. i did that. and then should compare the first matrix with size 4 with the second … | |
im a newbie to java programming and i wanna know how to create a java program that would let a user enter a 6 character ID number(a combination of 3letters and 3numbers) | |
I got this code sample from the internet, [url]http://richardbowles.tripod.com/java/menu.htm[/url] was able to change the deprecated code to BufferedReader to read in the file, but don't know what's wrong with the errors I'm getting. This is sample code I'm trying to get to work so I can step through with a … | |
When I selecting gridview row i am getting the error in the following line onclick="javascript:__doPostBack('grdOrderDetail','Select$0')"> The error message is Microsoft JScript runtime error: Object expected Please help me out Thanks in advance | |
Hi All, I am creating an application in JAVA EE for my company where people can upload their .xls files into the fielsystem of the server. Then an administrator can integrate all the .xls files uploaded by the people into a [B]single .xls file.[/B]I am done with the uploading part … | |
Hello, I have a project on hand. I have to build a portal. I am basically a UI person which development skills. Which technology is better for portal development? PHP vs java vs .net vs Ruby? Also if there are any developers with experience in portal development, Give me a … | |
Hi, Can someone tell me If my code is right? It compiles ok, but I am not sure if the implementation is right. I am trying to write a singly circular linked list class with insert, getfirst, getNext, delete and empty methods. Can someone help me with this? Thank you … | |
Hello, i try the tutorial Get Attachment File Name from Java2s.com. What i'm doing is to read email from the Outlook Web Access Light. If i put the url address of the Outlook Web Access Light, i have the error: [CODE]Exception in thread "main" javax.mail.NoSuchProviderException: No provider for http at … | |
I'm working on a java program in netbeans and I have it working except to run it I have to right click the main file and tell it to run instead of just clicking the run button. Any help would be appreciated. Sincerely yours; jdm [CODE] /* * To change … | |
What is absolute positioning and whis is its disadvantage? | |
Hi all. Learning Java - sorry for my stupidity if you see any. Here is the code: [CODE] private static void readFile() throws Exception { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, DAYS); String fOther = "filename.csv"; String fOtherImp = "filename_imp.csv"; LineNumberReader lineCounter = new LineNumberReader( new InputStreamReader(new FileInputStream(fOther))); String nextLine = … | |
HI! I recently joined this forum as I am about to start a degree in Computer Science and although I have an A level in Mathematics and an interest for computers, I have not studied computer science and wish to read up about it before my course begins. I'm hoping … | |
Hi, how to get the name of directory and subdirectory in a folder? example abc1/banana/(text files)? i have some codes buts its not given me the name [CODE] File dir = new File("abc1"); File[] folder = dir.listFiles(); [/CODE] i want to get the subfolder in abc1 called "banana". thanks for … |
The End.