36,051 Topics
![]() | |
Hello everyone, I am new to Java programming as well as to these most excellent forums and I have a problem with some sample code from a book that is teaching me Java. The code is supposed to demonstrate packages, access control, interfaces, and encapsulation. My problem is that when … | |
![]() | Hi there, I am trying to parse a CSV file, I have a program which will read in the contents of the file and display them to the console and i need to parse some of the fields, which I have no idea how to do [IMG]http://saloon.javaranch.com/ubb/frown.gif[/IMG] I am trying … |
import java.util.Scanner; /** Demonstrates the use of Scanner class @author Nikhil Joshi */ public class asciicode { public static void main(String[] args) { //create a scanner object Scanner console = new Scanner(System.in); /*get full name using nextLine nextLine gets the next line - up til user hits enter */ System.out.print("Enter … | |
This is my first time ever scanning my computer with hijackthis, so can somebody tell me what i need to delete? Here's the log... Logfile of HijackThis v1.99.1 Scan saved at 9:12:51 PM, on 8/10/2006 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe … | |
Hello, I'm new to HTML parsing and I need some help.I want to parse a HTML file , and I have the Java classes in place but I need an advise on how to code a piece of logic in my callback function. I need to parse through the file … | |
hai friends hai friends I am begginer to java, i want know how to read a html header.... plz any one give me a possible solution....:rolleyes: thanks for helping.... | |
Greetings all. I have a question about if java can be made to do the following. As a player of card games and online games, i find that i often need to make a database of information. And it would be great if i could distribute those databases to friends … | |
Hi, I wondered if its possible to create a java application that works in the background and does not create a window, Thanks, Ishwar | |
Hi experts, Here there is a requirement like autoloading a jsp file, once a day without any human intervention. A JSP file should be executed daily at a particular time automatically. I'm using Web Server:Tomcat 5 If there is any logic or idea regarding the same is appriciated. Regards, | |
Hi frnds i m facing a new problem while embedding 2 java applets in a PHP file. in that php file i gave alerts for refreshing the page, but all the times i m getting 2 alerts for those 2 applets , but when i m viewing the java console … | |
I am new to javascript. How do I load a text file into my web page? I want to be able to change the file when wanted and then load it into the web page. I thank you all in advance! Thanks | |
I have come across an unusual problem, one I have never seen in all 6 or 7 years of using PC's, and ONLY on my laptop! Every time I try to access a webpage that uses Java, for example chat applets among a few others, the browser closes without warning. … | |
I need help on java's objectstream object in my program i have created [FileOutputStream o; ObjectOutputStream obj; FileInputStream f; ObjectInputStream in;] and i have player object it has name and score properties i have written the object in a file appending at the time of creation but when i want … | |
Hello friends i am working on an image loader in java which allow user to drag and drop folder of images into JTable and showing the thumbnails but drag and drop of folder takes too much time to load thumbnails in table cell .. package org.tempuri.eyestudio.swg; /* * FileAndTextTransferHandler.java is … | |
![]() | Hi there, I am trying to parse a .txt file and don't know where to start. I am trying to get the file information from within the text file and output it to a SWT table. The file I'm trying to parse looks like the following with useless information before … ![]() |
Hello, I am new in Java and learning. I am looking for a sample java program which will display systeminfo (cpu, memory, etc) and software installed on a local machine. | |
Hi friends I am designing a questionnaire where at one particular page i need to ask the user "Number of projects" Based on the number provided and when he clicks next, he should get the table with rows equal to the number provided. The columns will be fixed . Can … | |
I have a problem here. Eg, do { method1(); method2(); method3(); while(repeat() ); how do i write the repeat() ?? It's needs to take in user inputs (eg, yes,no,y,n) and convert them into boolean. If input is yes/y, then it will repeat everything again. If input is no/n,then it will … | |
hi, can anybody write a simple java program for the following pleasee.. coz i have loads of projects in my skool and i have to submit this within 2 days..coz i have to design an interface for this too "there are 20 houses 15 small houses and 5 big houses.if … | |
hi all this is my first post. i want to make an im program that runs in an applet in java. I was wondering if there were any tutorials that can help me do this | |
Greetings, I am new to this chat forum. If you happend to know java, would you mind taking a look at my post for java help in the forum. [URL="http://www.daniweb.com/techtalkforums/thread51500.html"]http://www.daniweb.com/techtalkforums/thread51500.html[/URL] Thanks a lot:!: | |
I need to create a Java program that uses a 3x3 neural network to accept tic-tac-toe moves and output what the next move would be. How would you even begin to write something like this? I need to do this by Friday!!! Example code would be very helpful. | |
i am wrking on a project which is supposed to count packets that are sent and recieved in a LAN environment........i want help ragarding this....can anyone give ma a java code for counting packets in a network... | |
Hi! I am writing a tool, that uses a HSQLDB database. The databases can get pretty big (the test DB is 21MB). I am using a standalone DB, so my application also acts as the DB-Server! Here's the problem: I want to show a message like "Loading database... Please wait!" … | |
[COLOR=#0000ff][B]Hello, I am new at this forum. I am trying to figure out how, if possible at all, to transfer data from an asp .net page into a javascript script in an HTML page. [/B][/COLOR] | |
hi i have this site: [url]http://sosco.port5.com[/url] i have some java script in it like: no scroll, no right click, no select is a posibility, when loading the page, to hide that statusbar message? or to disable the stausbar? because i'm to tired to purge the code for testing! thx ![]() | |
I am having some trouble trying to get a JApplet to display in a Browser. The [applet](http://javafaq.nu/images/smiles/icon_sad.gif) does compile and does come up (displays) in a Microsoft Windows window frame, but does not display in a browser. I have several components that I place in JPanels and successfully place those … | |
Hi everyone, I do not actually have web page i can test this with but would really appreciate anyone with experience on this topic. You see i am trying to upload a html page called wt.html from my disk to a website called [url]http://www.rt.com/rf/wt.html[/url] using the HttpUrlConnection by first authenticating … | |
hi every one .... thanks for comming to this thread ... Dose any one know how to separate mantissa and exponent of a double and store them in two integers? :?: | |
i was trying out some java gui's and when I tried the Panel nothing seems to come out. The frame does! but no panel. i was wondering it could be the JDK was old my version out home is jdk1.0.5 something like that. or my code was old school. The … | |
Just wondering if it is possible to register an Access database as a date source using code in a java program rather than going to Windows to register the data source with the database manager. How would this be done? If anyone could point me in the right direction I … | |
I have some code that I need help with. The code compiles but I get a runtime error. Here is the error and the code: ERROR: Exception in thread "main" java.lang.Error: Do not use MessageLog.setLayout() us e MessageLog.getContentPane().setLayout() instead at javax.swing.JFrame.createRootPaneException(JFrame.java:465) at javax.swing.JFrame.setLayout(JFrame.java:531) at MessageLog.<init>(MessageLog.java:23) at MessageLog.main(MessageLog.java:90) Press any key … | |
Hi everyone, I have a rather confusing question but please bear with me for a while. You see i am trying to upload a file to a certain website called [url]http://www.doubleZ.com[/url]. I am using java's HttpUrlConnection class. Connecting to the website is okay and i am also getting its outputstream … | |
I've installed Apache Tomcat/5.5.16 with the windows installer. I've installed it to port 80. when i write to my browser localhost:80 there is no problem it goes to main tomcat page, but when i click on the jsp-examples link it gives this error [B]HTTP Status 404 -/jsp-examples/ type Status report … | |
I am looking for someone that can help me online for an hour or so maybe a few times for the next few weeks that can help me understand what I am supposed to do for my class programs. I am not looking for someone to do them for me … | |
I'm trying to list some data gathered from files into a JTable - here's the code I'm using: [code] /* Packages listed in a JTable */ Object[] columnNames = {"Package", "Version", "Installed"}; int packageCount = getPackageCount(); Object[][] data = new Object[packageCount][2]; Scanner dbIndex = new Scanner(new File("/opt/npkg/dbindex.npkg")); int row = … | |
How to populate data from a database table into JList? I can retrieve the data from the database table ok. No Problem but now want to populate those data into the JList. What are the code for this? I need to know the class and methods for this. Thanks!!!! | |
[LEFT]Hi, I am not new to ASP and c# but fairly new to Javascript. I have a Datagrid with a button column and a text column. The button is linked to a Javascript which when pressed prompts the user to enter a number. Upon entering a number and clicking 'OK', … | |
Hello, I am novice programmer and I am experimenting with swing. I created a scrollabe text area that seems to scroll great when I hold down a key for a long time. But, when I select a different tabbed pane and then come back to the pane containing the text … | |
i m trying to connect jsp page to mysql. i have insatlled jsp-mysql connector. but still not able to connect to mysql. pla anybody help me. thanks | |
what kind of java do they use in those yahoo games. im a senior computer science student and its time for my classmate to make a special project. we a re planning to make a game of checker with the same interface as the yahoo games. I would like to … | |
my system is really acting up. It is sluggish and contrary. Can someone read my logs and tell me if I have issues? Logfile of HijackThis v1.99.1 Scan saved at 12:46:01 AM, on 7/20/2006 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.5346.0005) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe … | |
I am new to this forum. Thnx for accepting my registration . | |
I have a question about creating my own custom classes. I want my own class - NButton. The idea of this class was to quickly make JButtons, by adding my own custom argument sets. Here's my prototype for this: [code] import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; /** * NButton - … | |
I am having trouble getting my timer class working with my scoreboard frame and application. Any constructive help is appreciated. [code] public class ScoreboardTimer extends Thread { private int counter; // the number of seconds remaining on the timer private boolean isRunning; // toggle variable that controls whether the counter … | |
This post is asking ALOT, but I'm not expecting one person to leave me a hefty response, so any bits of widsom and knowledge are MUCHLY appreciated. Could someone(s) please explain to me (in detail) how to use: - Data Models (for JTree's and JTable's) - Pattern matching (java.regex.Pattern) and … | |
Hi there , I need a calculator that is flexible enough to perform +,-,/,%,^and *. can you help plz:?: | |
hi, I did what it said in the following web site([url]http://www.onjava.com/pub/a/onjava/2005/05/11/sqlexplorer.html[/url] ) but cant get the sqlexplorer to show up in the other menue. has anyone else tried this in LINUX(suse), or if anyone has tried different way let me know please. thank you | |
[B]Just want to confirm if it is possible to set in this case (Example 1) class Two's pumpId variable by sending it as a parameter to class One's setPumpId method without using the usual return method assignment like : [code]pumpId = o.getPumpNum()[/code] I think in C++ we can do that, … |
The End.