36,051 Topics
![]() | |
hello im trying to get down a model that conceptually represents the data transfers that my application uses. I basically got this: [End User] <- command line interface -> [My Program] <-> { Java Virtual Machine <-> Java Interpreter <-> Operating System/Windows } <-> Computer The program uses Java's I/O … | |
Ok, just need some guidance on this, I have an array and a few text fields but am unsure about how to actually insert the text from the fields into an array when the ok button is pressed . I thought I would have to use "getInputValue()" and create a … | |
Hey! Does anyone know how to print out several pages? I have no problem printing out first page but the rest of the pages is a problem for me. All pages look the same just with different text so I don't think I need the book class for that. The … | |
after building the GUI using the java swing and awt ,how do i make the response of my mouse click pass the mesage accross from the client;s machine to the server machine?and where can i reaD more about it and also how do i get it to control and update … | |
I am trying to implement the calculations, and I am getting totally wrong answers. This program is to calculate the distance of a projectile based on launch angles as well as (of course) launch velocities(speeds). The formula is as follows: [URL="http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf"]http://learn.flvs.net/webdav/educator_apcsa_v8/module09/rtfmod09/09_04_VirtualLectureNotes.pdf[/URL] Here is the code that I have for doing … | |
This is my first post: Ok, there's GPL'ed programs, and GPL'ed Java. Is my java program, which uses no other GPL'ed programs all my own? Simple question, simple answer... don | |
I am very much a beginner in programming, so this maybe nothin but this error keeps popping up and i'm unsure why. cannot find symbol - constructor Track this is my source code and its a work in progress. public class Track { private String name; private String creator; private … | |
Hi Im trying to write simple miles per gallon program, I have gotten every part so far, but I cannot figure out how to "calculate and display the miles per gallon obtained for each tankful and print the combined miles per gallon obtained for all tankfuls up to this point." … | |
Hi, Im trying to write a program of a salary from a textbook problem, but am having a hard time. Hopefully you can get the gist of the program, I want it to keep asking for items of what the "salesperson" has sold, until an invalid item is entered, where … | |
I am writing a jsp page where a set of rows has been created dynamically according to the number of rows in particular database table.Each row consist of 5 read only values, one text box, one checkbox and a set of 4 radiobuttons. The radio buttons and checkbox are named … | |
I got an string with values of lat long and i want to get the content of each first the desccription and then the values the string Autopista Caracas-ValenciaCaraboboCalles, carreteras, caminos, o ferrocarril10.2166667-67.3333333Autopista Valencia Puerto CabelloCaraboboCalles, carreteras, caminos, o ferrocarril10.3272222-68.0961111 i want o get Autopista Caracas-ValenciaCaraboboCalles, carreteras, caminos, o ferrocarril@10.2166667 … | |
i have designed a website using JSP and mysql, there is an enquiry form in that website ,when one fills the form the details automaticaly go into databse as the logic goes..but my problem is on localhost(tomcat) when i fill the form and submit, a retrieved form is displayed which … | |
Could potentially have the longest error message EVER and have no idea how to solve it .... Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems: The import java.sql cannot be resolved The import javax cannot be resolved Connection cannot be resolved to a type Statement cannot be resolved to a … | |
please help me to resolve the databasbase connectivity problem in java for mysql .i am using jdk 1.5 ,if there is need to put a file then please mention where it should be copied ,and i am writing the code and error occuring that code. code: import java.sql.ResultSet; import java.sql.SQLException; … | |
Could someone please help I am getting an illegal start of expression [code] import java.util.Scanner; public class 9a { // The main method public static void main( String args[] ) { Scanner input = new Scanner(System.in); // declares and initializes the variables used to store user input. int n1; double … | |
I am almost done with my program. And for some reason i cannot get my boolean to become true. here is the code [CODE]//This program allows the user to order a pizza import java.util.Scanner; import java.text.*; public class PizzaOrder { public static void main(String [] args) { //create a Scanner … | |
This is my code: package hello; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author User */ public class TBexample extends MIDlet { Display display; public static String txt; TextBox sample; public TBexample() { txt = "enter your text here"; } public void startApp() { // String localtext ="hi"; display = Display.getDisplay(this); … | |
I'm working on this polynomial program but I have stuck at some points which still don't know what's wrong exactly. So anyway, I have to add 2 polynomials, subtracts, and multiply. So could anyone please correct this code below. Thank you very much!! [code=syntax] public class Polynomial implements Cloneable { … | |
Hi, I formatted my pc and restored everything back and now I forgot how to install jdk and set the path. I am using windows vista..... I created a CLASSPATH in system variables as follows .;C:\Program Files\Java\jre1.6.0_02\bin and path in system variables as %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_12\bin and again a new path … | |
Hi, I am trying write a program to input and output data from a microsoft access file with java.sql class and the swing class. basically i am on the first stage, trying to figure out different parts. the first thing i would like to know is: (assume it is already … | |
[i] Topic The topic of this question is: Creating a MySQL table and Entity from Database. [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] This is another attempt to render data in a visual web javaserver faces table. The purpose … | |
i am using an else if to call a method from another class but it says a ')' is expected can anyone help please :D else if (source == tol.jbTakeOut) { bookname = tol.jtfBookName.getText(); authorf = tol.jtfAuthorFName.getText(); authors = tol.jtfAuthorSName.getText(); [I]Store.changeLoanStatus(String bookname, String authorf, String authors);[/I] //the line which the … | |
Hi Everyone I am new and just found this site yesturday I am looking forward to visiting here often. I have been working on this project (yes for school the awful Inventory Program.) I had it working and did a couple of quick changes walked away for a nap and … | |
Hi all, I'm kind of new in Java MIDlet, and i'm having some troubles. Let say i got a MIDlet project, named APP.java, and the MIDlet project runs smooth without any problem. And i have another java application, named testing.java, and the java code runs smooth as well. But when … | |
Hi, I have to display a JCombobox which contains JCheckBox(containing a single character) as its elements. Combobox has to allow multiple checkbox selection. When the selection is over, combobox has to display the selected checkbox values. Thanks in advance, Sagar | |
HELP!! i can't install programs that need activex control and java. my information bar doesn't display. :sad: | |
can anyone help me with this school project? they want me to create something like this : using Net income = Revenue - costs - salary net income percentage is by multiplying (Net income)/(Revenue Ratio) with 100% Handphone net income computation ----------------------------------- 1. Press A to enter Revenue and Costs … | |
Hello people .. I have a problem with my program ,, it is designed to count the number of digits and if its 5 it will test if its a palindrome number.. my problem is with the while loop... please help public class Palindrome { // checks if a 5-digit … | |
[CODE]/* * PartOfSpeechView.java */ package partofspeech; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.IOException; /** * The application's main frame. */ public class PartOfSpeechView … | |
i don't know if this is the place to ask this but is there a way to write a program that will increase the mobile phone's bluetooth's range for one second??? if not in java then is there something else... thank you in advance :) | |
Hey guys, I had to determine the output of given code that uses a 2D array. The 2D array given looks like this: data.txt: 5 8 4 3 9 5 6 4 9 5 3 2 2 2 0 9 7 3 7 4 5 6 9 5 8 8 … | |
Hi All! This forum looks refreshing. This will be my first post and I am a new software guy working on a Java Gui issue. I recently built a java graph class and the graph works nice. The Graph class was lineonly, and it extends JPanel. In the main function … | |
Hello everyone, I am having a problem, I want to transfer the data from a text field which is found in the class "ServerInterface" to a method in another class "Server". I wanted to transfer data to the method "sendData()" in the class Server when the user enter data in … | |
I work for a company that does not allow us to have access to the internet but I need to create graphs using HTML. What I want is this file to be able to read from a file and create a graph that tracks four values; A,B,C,D. The graph needs … | |
Hi ALL we are doing a prject on VPN or virtual private networks.. for this we have created the front end.. and in many pages there are operations performed such as file uploading, create users and so on.. so when these submit or upload buttons are clicked the server needs … | |
hi im a new memeber .iv started learning java recently. i was wondering could anyone help with this problem because i just cant seem to work out where i'm going wrong. its my method call thats giving me the proplem...i think. if anybody has any solutions i would be grateful … | |
I have recently encoutered an error that I have failed to figure out while trying to implement something in MVC. I have used a similar code on another program which seems to work but I cant figure out why this one is not working. I get the error code "cannot … | |
i require to submit a crime reporting system as my major project in engg. can anyone provide me with a similiar code in [B]java[/[B][/B]B] is there any way to store images and videos in a database...and then retrieving them from a java application.. plz five some example.. thank u in … | |
i am trying to add a bmp image file to a panel but i dont no how. i have been trying a few different code but nothing seems to be working for me. [code] ImageCanvas imageCanvas = new ImageCanvas(this,bi); visibleArea.add(imageCanvas, BorderLayout.CENTER); [/code] this code makes the area where th image … | |
In netbeans I added a scroll pane + bar inside one of my JPanels. When I drag enough items into the JPanel, the size of the JPanel increases in netbeans. How do I get it so that it stays at a fixed size, so I can use the scroll bar? | |
i want to replace a word in string by other word how do this simply ? | |
How to print Tokenizer and Split out put in Text Area? Normally is use System.out.print() to print them. I wan it print in Text Area or something like text area, anyone can help me out? Thanks. | |
Hello everyone, I am in big trouble, actually, I am developing a chat in Java. I am still on the server part, but the problem is that when i am clicking on a button to instantiates a class, the whole program freeze, please help me to figure out this problem. … | |
In JSP, request.getParameter(x) returns a null value if x is integer.So what to use to get integer value of x? | |
Hi guys, I have a J2ME application that I'm developing in NetBeans. It's ok. I however added one jar reference, let's call it x.jar, which is being seen by Netbeans. Upon compiling however, netbeans calls Preverify.exe with classpath references. It is not including this x.jar. It's causing preverify to return … | |
hi is it possible to poen some ports in java. give code for this. thank u. | |
hi i am having a bit of trouble displaying the mouse position in JTextField. i have currently done this code. i need to display the x and y positions inside the textfield. [code] private JTextField xTextField, yTextField; private int mouseX, mouseY; JPanel mousePanel = new JPanel(); xTextField = new JTextField … | |
Not sure how to call the methods in this program. [CODE]import javax.swing.JOptionPane; public class Main_Class { private static final char Y = 0; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub /** * @param args */ // declare variables int input1, input2, … | |
So I have been messing around with Swing and am starting to grasp general functions with buttons and text boxes etc.. But what I want to do is have a main page (JFrame Form) with 3 buttons and when I click whichever button I want it to open another JFrame … | |
Hi all! I have several tables in an MsAccess db and I would like to read all data of a certain column to a Hashmap. With 3 tables and using static array, it' working but i have about 300 tables. With the static array, I used sg like this: [code=java] … |
The End.