32,199 Topics
| |
import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DisplayQueryResults extends JFrame { private Connection connection; private Statement statement; private ResultSet resultSet; private ResultSetMetaData rsMetaData; private JTable table; private JTextArea inputQuery; private JButton submitQuery; public DisplayQueryResults() { super( "Enter Query.Click Submit to See Results." ); String url … | |
Hey guys! I only just discovered this website about an hour or 2 ago aaaaaand well, I was wondering what y'all can tell me about possibly creating some kind of text-based game in Java? I don't know much about any of this programming stuff but I would really like to … | |
I'm getting errors for my switch statement stating that all of my cases are orphan cases does any one know why that is? | |
I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to … | |
is it possible to find the available logical drives? if so...how? | |
Hello everyone. This if my first post on the forum, and hopefully my last asking for help on an assignment. I've picked and picked at this, and now I'm going insane. I've edited this one too many times, so now I figure its one of three things. My entire approach … | |
help!!!anyone who know about containers in data structures in java???for example mutable containers and inspectable containers.... | |
I am just starting out at JAVA and trying to write a program that counts all characters in a string, counts all characters minus trailing and leading blanks and also counts all non-blank characters. Here is what I have so far. I am stuck on the non-blank character counts. Can … | |
[code] String query="SELECT *FROM addresses"+ "WHERE lastname='"+ fields.last.getText()+"'"; [/code] What is wrong with the above SQL statement? I got the error message as "Syntax error in FROM clause" | |
I've got a JTree that's a file browser. At startup, the selection path is set to the user's home directory. This tree is in a JScrollpane. What I'd like to do is to set the vertical scroll bar position to have this cell (the user's home dir.) on top of … | |
Hi, I am a J2EE developer. I need to learn the Weblogic application server and I am currently in delhi. Can anyone in delhi volunteer me to teach for which i am ready to pay. Also if possible can anyone direct me to the right links and the right reference … | |
I could use some help. I've got a JTree, it's a file browser. I'm trying to programatically select a cell in the tree. I'm making the following calls: [code] File home = new File(System.getProperty(HOME_DIR)); setTree(home, newFile); TreePath path = this.pathFromFile(home); tree.setSelectionPath(path); [/code] But, that doesn't seem to highlight the cell. … | |
Hey I'm taking course on coding with Java and am just starting out trying to make my first program. I am using Ready to Program to help me out but was wondering if there is a command in Java to make the console windows fullscreen. I know how to adjust … | |
Hi Experts, I want a simple java function tht takes 17 digits including '.' and i want output of 15 digits ( if . is in last place , exclude that also. Condtions : If input for the java function is <=15 digits --> output from java function is same … | |
I need help on this, im not getting how to go about this... ok, let me explain where im stuck, i have a class, and its structure goes like this(i will show a some kind of replica of original class, so that you guys can easily follow my question), [code=Java] … | |
Currently I am running a program that receives data from an outside device and displays it to the console. I need to be able to take the information received and save it to a log file of some sort. I then need to be able to parse each line for … | |
What is actually meant by the term "web-based development/solutions/applications"? In particular in relation to java? I hear this terminology all the time but I don't really understand what it means... :$ | |
Hello guys, just wanna ask help from you again. I just reviewed my notes and tried to run the code, I successfully debugged it but when I ran the code it says [I]java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. [/I] I just don't know what to do. =/ here's … | |
Please help!! I am creating this midlet (non vital coding excluded) but I feel like a noob! here is the code: [code] import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.lang.*; public class MainMenu extends MIDlet implements CommandListener { public Display mDisplay; private List mlstMainMenu; private Calculator mobjCalculator; private Command mcmdOK; public MainMenu() … | |
Hello all, Am new here, so please bear with me - if i dont get some things right! Okie Dokie. Lets get started. I was working with Tomcat/Servlet/ODBC. I created a table in MS Access. Created the Connection, Statement, query and everything. I want to retrieve the information from the … | |
Hi I try execute this code it compile without error but i couldnt execute, Where lies the problem need help import java.awt.*; import java.applet.Applet; import java.util.StringTokenizer; public class Kaleido extends Applet implements Runnable { Thread tumbler; boolean suspended; int timeout; Color background = Color.lightGray; Color lens = Color.black; int kaleidoSides,kaleidoSidesBy2; … | |
Hi all, I want to create a function that adds certain amount of days for a given date. e.g. Say today's date is 21/9/2007. and I would like to add 95 days to this date. How do I accomplish that. Any help will be real appreciate it. Regards. | |
Hi, I must save the content of my JTextArea in a file .XML, how? I read a post in this forum on this argument [url]http://www.daniweb.com/forums/thread18383.html[/url] , but there isn't the solution. Can you Help me? Thanks | |
I have to do aproject in java so please guide me what kind of project can be done in java ? thanks | |
If one has no formal programming training how would you suggest going about learning java? Would it be necessary to learn another language first such as C++ or could one just grab an intro to Java book and dive right in? | |
I want a line of buttons down the side of a swing window. I got this code so far: [code=java]import javax.swing.*; import java.awt.*; class basic extends JFrame // implements ActionListener { public basic() { super("Till"); setSize(600,500); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); Container contentArea = getContentPane(); contentArea.setBackground(Color.white); BorderLayout flowManager = new BorderLayout(); contentArea.setLayout(flowManager); JPanel … | |
[B]What is a nested beans?i want to create a nested bean for my application?Please help Thanks[/B] | |
Hey, i am practicing in this book sample, it says i can rewrite my code for determining the highest value in my 3 input. the commented part is working perfectly (Line 19, 26), it can return the highest value... but when i try to rewrite it using the Math.max method, … | |
Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon. | |
I'm working on a code on compatibility and it seems that after I ask and answer the first question, the program just stops, I have no clue why it doesn't go on to ask the next question, can somebody help my figure this out, thanks, oh here is my code. … |
The End.