4,084 Posted Topics

Member Avatar for ExtraKanin

define "doesn't run". does it give you a stacktrace, or does it just not run? I tried your code here. you get NullPointerExceptions, because you don't instantiate your 'internal JFrames' which are actually just JFrames, not internal jframes. start with instantiating those.

Member Avatar for JamesCherrill
0
135
Member Avatar for Priti_P

have you checked something like [this](http://www.dzone.com/articles/struts-hello-world-tutorial)?

Member Avatar for stultuske
0
311
Member Avatar for murali2489

quite some "ugly" code. just a suggestion. replace this: if(col==0) return index; else if(col==1) return ticket; else if(col==2) return date; else if(col==3) return description; else if(col==4) return priority; else if(col==5) return state; else if(col==6) return followup; else return status; with a switch statement. easier to read and overall better performance.

Member Avatar for stultuske
0
324
Member Avatar for durgesh1

and what exactly is your question? how to do this in Java? how to do this in sql? ... ? are you using foreign keys?

Member Avatar for 1stDAN
0
173
Member Avatar for game06

a function.. no, Java has methods. not sure if there's a method for this anywhere, but that doesn't mean you can't write one. EDIT: I'm curious, though ... how do you get to that 'output'? afaik: the output for the first would be somwhere around 2.18, and for the second …

Member Avatar for JamesCherrill
0
241
Member Avatar for dgrblr

[QUOTE=JSupport;1760340]Hopefully the following thread will help you to create JDBC connection to Access Database [URL="http://javasrilankansupport.blogspot.com/2012/02/connect-to-access-database-using-java.html"]Connect to Access Database Using Java[/URL] [URL="http://javasrilankansupport.blogspot.com/2012/02/connect-to-access-database-using-java.html"]http://javasrilankansupport.blogspot.com/2012/02/connect-to-access-database-using-java.html[/URL][/QUOTE] hopefully they didn't need 6 years to figure that one out :-|

Member Avatar for peter_budo
0
427
Member Avatar for nitin1

you can ask them all that pops up. it can work out right, it can work out bad: if you ask more technical stuff, chances are you're talking to a recruiter that doesn't know anything about that. you can ask about flex-time, about the working environment (is it strictly business, …

Member Avatar for jwenting
0
351
Member Avatar for james.lu.75491856

I guess they wanted a 'Dude', but using [this one](http://3guys1movie.com/wp-content/uploads/2012/12/Lebowskilimo.jpg) would have cost too much :)

Member Avatar for mike_2000_17
0
267
Member Avatar for mikewyatt

well ... if this code is Java, I would suggest to drop this for now, and go over the basics once more. can you find the obvious mistake you've made here: int Selection = Main.Select_Use_Move_Items(Col); if Selection = 1 {Perform function A} if Selection = 2 {Perform function B} if …

Member Avatar for mikewyatt
0
361
Member Avatar for game06

you are mixing up arrays and single Strings. also, you should initialize your array once, not each time you access it.

Member Avatar for stultuske
0
231
Member Avatar for durgesh1

create a combobox untill value come? a combobox for each value? that makes no sense. a combobox that contains all those values, now that I understand.

Member Avatar for stultuske
0
215
Member Avatar for cleve23

there are two ways to end a for loop (not only for a for loop, btw, the same applies for if statements, .... 1. by using brackets. you can clearly tell the JVM where the scope lies: for ( int x = 0; x < 5; x++){ // no matter …

Member Avatar for cleve23
0
138
Member Avatar for DeadH34d

try it like this: System.out.printf("The tip amount is $" + "%5.2f", tipAmount); System.out.printf("The Total ticket price is $" + "%5.2f", total); the printf statement follows a certain structure: basically: String - format - value to format. you can't just add a String at the end and expect it to work …

Member Avatar for DeadH34d
0
258
Member Avatar for Fatima_110

most likely you've imported a wrong Date class. also, don't know whether it is an error in copy paste, but there seems to be no opening bracket in your Date class.

Member Avatar for JamesCherrill
0
227
Member Avatar for cleve23

you must either declare that method as static, or call it through an instance of NumberCheck.

Member Avatar for cleve23
0
300
Member Avatar for skp03

also, check your contract. also the fine prints. if it says that the customer has the right to do so, you don't really have much to go on. do check online whether the customer is going to use your site. if he does, it's clearly he broke the contract under …

Member Avatar for <M/>
0
224
Member Avatar for mayback230

Thokozani_1: welcome to DaniWeb. sharing your knowledge and solving problems is a good asset, but this problem was solved a year ago, the OP even stated how he solved his problem. there's no need to revive old threads, especially not those that are already solved.

Member Avatar for jwenting
0
343
Member Avatar for somjit{}

I don't see anything wrong there, but since we don't have the entire code, we can't actually test it, I guess.

Member Avatar for somjit{}
0
291
Member Avatar for Tinku_1

1. I don't see any question in your post 2. this is the Java forum. Java (unlike it's name might suggest) is not related to JavaScript. this post might be more for [this forum](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) 3. there is no big mistery in performing several actions on a single button click. what …

Member Avatar for stultuske
0
900
Member Avatar for CoilFyzx

either don't allow the JFrame to be resizable, or, every time it is resized, re-calculate the size/position of the image and re-paint it.

Member Avatar for CoilFyzx
0
419
Member Avatar for TonyG_cyprus
Member Avatar for benjo.s.lucas

so .. at the end of each (outer-) for loop, add a print statement, printing the current order. what exactly is your question?

Member Avatar for somjit{}
0
304
Member Avatar for yudop

not sure what exactly you are trying to do, but wouldn't it be better to use your OS 's login system for this?

Member Avatar for JamesCherrill
0
269
Member Avatar for warren13

Deprecated basically means: this is out of date. there's a newer (read: better) way to do this. especially when writing new software, it is not wise to use deprecated calls in your code. in order to allow older software still to work they won't remove them from the api's, but …

Member Avatar for JamesCherrill
0
197
Member Avatar for laguardian

sirlink: no, not really. `String a;` just creates a reference, it doesn't initializes it, so, String a; => a is not ""; if a would be an instance variable, it would get the default value for an object, which is null. not something you would want to pass, but better. …

Member Avatar for JamesCherrill
0
150
Member Avatar for maggoteer
Member Avatar for stultuske
-1
253
Member Avatar for evan.winstead.7

why would videos help you learn better? most likely, all ( or most of ) what you need, can be found [here](http://www.lwjgl.org/)

Member Avatar for evan.winstead.7
0
230
Member Avatar for lena1990

you can also use a webservice, which you call. then you just use the url, and let that webservice do the communication with the db.

Member Avatar for lena1990
0
236
Member Avatar for cool_zephyr

cool zephyr: do you even know what a Singleton is? just by adding 'this is a singleton' in a comment doesn't make it one. so. were you planning on making it a singleton or not?

Member Avatar for cool_zephyr
0
194
Member Avatar for murali2489

and change this: public static void main(String[] args) throws ClassNotFoundException into a way that you actually handle the exception should it occur. if you keep it like this, you'll never be able to prevent the application from crashing. having code that might crash is a bad thing, but having that …

Member Avatar for murali2489
0
289
Member Avatar for Ancient Dragon
Member Avatar for diafol
0
269
Member Avatar for murali2489

Below is my program which DID NOT connect , do you see why "which DID NOT connect" doesn't help us? are you getting an error message? [this](http://docs.oracle.com/javase/tutorial/jdbc/) would be the best place for you to start, but have you considered the possibility that you're DB is not running?

Member Avatar for murali2489
0
524
Member Avatar for amrita111

... that's about the same as asking: 'why having applications while we have classes, interfaces, ....' a service can be seen as a group of classes/interfaces/... bundled together to perform certain tasks and provide certain functionalities that can be used by an unlimited amount of applications. for instance: google's gmail …

Member Avatar for jwenting
-1
148
Member Avatar for mydreamgirl

why don't you want to use a form? that is exactly designed to communicate the values of the fields to servlets.

Member Avatar for stultuske
0
2K
Member Avatar for DarrelMan

might be in the initialization of that Scanner instance. without seeing more of the code, or the error message, don't think we can do much to help.

Member Avatar for JamesCherrill
0
304
Member Avatar for Azad Omer

also: if you want to keep the actionPerformed in the class itself, always use this, not an instance of the class. you risk getting in something like this: public class MyFrame extends JFrame implements ActionListener{ MyFrame sFrame = new MyFrame("other Screen"); private JTextField field = new JTextField(); private JButton but …

Member Avatar for stultuske
0
292
Member Avatar for mikewyatt

and by that description you think we can help? you don't show any code, you don't show any of the logs, you don't mention which framework(s) you use, or how the configuration is implemented ... tons of possible reasons, I'm afraid.

Member Avatar for mikewyatt
0
253
Member Avatar for cisumma
Member Avatar for TokamakFusion

also: is there a question in there, or are you just trying to bash your student?

Member Avatar for bibiki
-2
465
Member Avatar for KellzDD
Member Avatar for mikewyatt

`if (test == "false")` either test is a boolean, or it is a String ... either way, it is badly coded. in case it's a boolean, you'll want one of the next options: `if ( test == false )` `if ( test != true )` or, the simplest of all: …

Member Avatar for ageshyaw
0
2K
Member Avatar for weblord

those I use for myself: - Chrome. user friendly, fast, and, let's face it, when you look at the resources it uses, it's clearly not one of Microsoft's CPU/Memory draining black holes. - FireFox: those plug-ins do come in handy, not just for development, but, well... is there anything (except …

Member Avatar for stultuske
0
204
Member Avatar for JoeD1

your first error is in that loop: `for (int b = 0; b < grades.length; b++) { .. }` remove that, you don't need it. also: don't set the values in the array, extract them instead. at this point, you are overwriting the values in your array. your second error: …

Member Avatar for stultuske
0
282
Member Avatar for yusking

can't proceed from here ... what does it do? what is your next step? why can't you proceed. also: do you understand why it is bad design to allow your main method to throw Exceptions? did you write that code yourself?

Member Avatar for stultuske
-2
2K
Member Avatar for lena1990

step one: press that shift lock key again. it'll make your posts seem less aggressive. step two: show what you have done. what do you need help with? we can't look into your computer to see what code you're running, you know.

Member Avatar for TokamakFusion
0
163
Member Avatar for murali2489

do you understand why this: reference = new FullTimeEmp(firstName,lastName); reference = new FullTimeEmp(baseSalary,hoursWorked); is pointless coding?

Member Avatar for murali2489
0
206
Member Avatar for vizz

do understand that most 'certifications' don't come with mandatory courses, so when asking for a certification, people might get the wrong idea :) well, there are several, but it also depends on where you are. it's possible that the institution you got your degree offers one, have you checked there?

Member Avatar for stultuske
0
199
Member Avatar for corliss

you'll need a reference through which you can access it. my advice: re-work your code, start by the analysis, check the IS-A, HAS-A relationships and see whether it 'll work. another thing you might think about: reduce the number of lines in your main method to the absolute minimum. it …

Member Avatar for corliss
0
380
Member Avatar for hackoman96

ggamble: that's still not hacking into anything. also, there are tons of webapplications 'out there' that won't allow you to see the source code, so the "anything is possible" might be a bit exaggerated :)

Member Avatar for BMXDad
-1
290
Member Avatar for sushants
Re: HTML

a tool to easily manage and create your html / css code can be helpfull, but only if your knowledge of html/css is at such a level that you can create most of it without using it. lots of people who don't, either use fixed templates which can be found …

Member Avatar for diafol
-6
415

The End.