32,199 Topics

Member Avatar for
Member Avatar for Renzokouken_22

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 …

Member Avatar for iamthwee
0
220
Member Avatar for mallim

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 …

Member Avatar for jwenting
0
82
Member Avatar for vladdy19

I'm getting errors for my switch statement stating that all of my cases are orphan cases does any one know why that is?

Member Avatar for jwenting
0
61
Member Avatar for KimJack

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 …

Member Avatar for KimJack
0
83
Member Avatar for claudiu_is
Member Avatar for Ezzaral
0
124
Member Avatar for DeadJustice

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 …

Member Avatar for DeadJustice
0
102
Member Avatar for glowkazaf

help!!!anyone who know about containers in data structures in java???for example mutable containers and inspectable containers....

Member Avatar for Ezzaral
0
54
Member Avatar for Kevin008

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 …

Member Avatar for masijade
0
180
Member Avatar for bluebird

[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"

Member Avatar for bluebird
0
69
Member Avatar for bryantpurdin

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 …

Member Avatar for bryantpurdin
0
93
Member Avatar for jtechie

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 …

Member Avatar for jwenting
0
71
Member Avatar for bryantpurdin

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. …

Member Avatar for bryantpurdin
0
224
Member Avatar for Penguin Warlord

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 …

Member Avatar for hbk619
0
139
Member Avatar for subbu.vemparala

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 …

Member Avatar for eranga262154
0
84
Member Avatar for katharnakh

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] …

Member Avatar for ~s.o.s~
0
93
Member Avatar for bumassjp

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 …

Member Avatar for lookof2day
0
141
Member Avatar for darkagn

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... :$

Member Avatar for jwenting
0
87
Member Avatar for iCez

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 …

Member Avatar for iCez
0
91
Member Avatar for chef.boyardy

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() …

Member Avatar for chef.boyardy
0
104
Member Avatar for mat111

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 …

Member Avatar for mat111
0
85
Member Avatar for jjt

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; …

Member Avatar for Ezzaral
0
109
Member Avatar for new_2_java

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.

Member Avatar for Ezzaral
0
88
Member Avatar for simoneffe

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

Member Avatar for peter_budo
0
35
Member Avatar for wasee

I have to do aproject in java so please guide me what kind of project can be done in java ? thanks

Member Avatar for masijade
0
163
Member Avatar for osirus0830

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?

Member Avatar for peter_budo
0
153
Member Avatar for hbk619

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 …

Member Avatar for hbk619
0
2K
Member Avatar for sarath.koiloth

[B]What is a nested beans?i want to create a nested bean for my application?Please help Thanks[/B]

Member Avatar for lookof2day
0
92
Member Avatar for upstream

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, …

Member Avatar for upstream
0
158
Member Avatar for anil1219

Hi All... Plz solve my problem. String temp="Vendor number modified from 12345 to 00056789" How to separate these two numbers ? Plz reply soon.

Member Avatar for anil1219
0
103
Member Avatar for Dio1080

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. …

Member Avatar for Dio1080
0
136

The End.