5,031 Posted Topics
Re: [QUOTE=cms271828;311106] If so, why not use an IDE? [/QUOTE] Not everybody want to use IDE's and why.... Applet have be viewed in web browser or in AppletViewer, plus applet don't have main method | |
Can somebody please help me to little customize the view of the phpMyAdmin? Curently this is what I [URL="http://www.peterbudo.f2s.com/extra/myAdminC.jpg"]see [/URL] but I would like to have as [URL="http://www.peterbudo.f2s.com/extra/myAdminW.jpg"]this[/URL]. Simple, I don't like options to be displayed as list of links but as tabs. What shall I change in config? | |
Re: you can search this site for other suggestions made not so long ago | |
Re: I did few small changes to your files [B]CARDS[/B] change in card constructor [code] public Card(int f, int s) { // initialise instance variables face = f; suit = s; [COLOR="Red"]//you had suit = SPADE[/COLOR] } [/code] [B]DECK[/B] change your constructor public Deck() (with 2 for loops) to a method … | |
Re: There is plenty of examples for sorting on internet. Did you looked at them? Please do so, just quick google search brought [URL="http://www.google.co.uk/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=java+bubble+sort&spell=1"]this[/URL] Why I'm telling this to you? Because right now we can only recomend that you follow theory in order to create some code. Then, if you have … | |
Re: [QUOTE=rpjanaka;307934]hi all, i am using the tomcat server.. can i show the java out puts(System.out.println) on the browser that is issude from java classes, not from the jsp pages. i think there may be a way to change the configuration in the tomcat server.. thanks..[/QUOTE] I think you looking to … | |
Re: [QUOTE=scy;308003]pls any one hv project using jsp and sql pls post the projects.........[/QUOTE] Sorry my friend we help to sort problems with code you are developing not developing code for you. You are in wrong place. Do your coding and if you get errors you can't solve it, we will … | |
Re: [QUOTE=Katrin;307250] p.s. I took a C++course and me and my friends wasnt good at c++ , we didnt get any benifits from that course beacuse of our bad teacher !!![/QUOTE] There is kind of chinees saying "there are no bad student only bad teachers" but sometimes I would disagree when … | |
Re: Bracklets is what you missing in your calculation in first place as your line of code [B]double Payment = Loan * InterestRate / 1 - (InterestRate + 1) - 12 * Term;[/B] Java's rules of operator precedence are[LIST=1] [*]Multiplication, division and reminder operations are applied first. If an expression contains … | |
Re: I give to 2 information 1. Don't use Calendar class but GregorianCalendar as calendar was depricated and is returning sometimes wrong values 2. If you have instalation of Tomcat, in jsp-examples is simple example how does it works or use google there plenty more | |
Re: There is no add method for JScrollPane so you can't use it but there is JScrollPane constructor [B]JScrollPane(Component view)[/B], which "Creates a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view." (taken fro JAVA … ![]() | |
Re: Start from database. Remember everything coming out of database will be String and you have to to transfer it to appropriate format. So in what type/form is your date stored? What do you have to do, get your database date format to be comparable with data which you get from … | |
Re: First instalation is the one which you need as you only wish to practice on your home pc/laptop. The second option is to setup hosting service I believe. There is plenty of good tutorials on net, I personaly like this one [URL="http://mpcon.org/apacheguide/jsp.php"]http://mpcon.org/apacheguide/jsp.php[/URL] which shows you how to set also Apache … | |
Re: well good think about html is if browser doesn't recognice a tag it will ignore it, or in worst it will display this tag as part of website. The second thing I seen only with very bad "web developers" which made they own tags, didn't close or close them in … | |
Re: Dear friend next time when posting please use tag code which is under symbol [B]#[/B], its make it easier to read the code. Thank you. To your code. I took time to check it after initiatial 3 errors which I sorted come another [B][COLOR="Red"]38[/COLOR][/B]. All this errors are related to … | |
Re: what is purpose of this program??? anyway here you go, you need to initialize variables Dot1 and Dot2, as program will try to increase value of Dot2 just few line down and then compare to Dot1 [code] [COLOR="Red"]int Dots1 = 0; // missing initialization int Dots2 = 0; // missing … | |
Re: I expect you have constractor for your book class something like this [CODE] public void Book1(String str1, String str2, String str3, int num) { author = srt1; title = str2; status = str3; isbn = num; } [/CODE] some get methods [code] public String getAuthor() { return author;} public String … | |
Re: Use actionListener on checkbox to see if any changes happends, if yes than change status from non-editable to editable and oposite | |
Re: no-argument constructor is your one [code] public Circle() { diameter = 30; xPosition = 20; yPosition = 60; color = "blue"; isVisible = false; } [/code] constructor with argument is something like this dude [CODE] public Circle( int d, int x, int y, String str, boolean b) { diameter = … | |
Re: [QUOTE=aansoo;298577][B][I][U]hi alll [/U][/I][/B] [B][I][U](1):- i have make site thus this [URL="http://www.lia-ali0.tripod.com"]www.lia-ali0.tripod.com[/URL] [/U][/I][/B] [B][I][U] i want to added background musc at this but i have not know the code of html:lol: any one tell me .[/U][/I][/B][/quote] [url]www.w3schools.com[/url] is good source of basic information for webdesign [URL="http://www.w3schools.com/media/media_browsersounds.asp"]here[/URL] is direct link to topic … | |
Re: ahh this is already 3rd post with same topic from you abexander. Final year project, hmm? What is dificult about it? Me in my final year, working on my final project for last 2 months think you are little late about it now. There are so many things you can … | |
Re: 1. there is good example of vending machine in this(JAVA) section 2. if you have problem you don't post what shall I do, you provide code or problematic part of code with error message and we will try to help you | |
Re: I use Deitel edition, JAVA How to program, 6th edition, from basic application, to complex, components for basic graphic, work with MySQL, JAVA web base services and threads on the end, include also CD with all th ecodes and additional stuff | |
Just have small program to practice with Calendar. However I come accross something unusual. Once you set date for 1st April 2007 or 1st June 2008 for example you get wrong number of the week. example bellow show code set to date 1st June 2008 [code] import java.util.*; import java.text.DateFormat; … | |
I'm working on calendar application, similar to one provided with instalation of Tomcat. There you have class1 with methods which provide data for class 2. I have no problem to compile class1, but getting errors while compiling class2. This apply also to Tomcat examples if you try to recompile them. … | |
Re: You can do proper dice game, such as Yum or similar, not just simple dice roling till same numbers occure. That is too simple and pointless. Do a game where you have towo players, and based on program output decide which one is winner | |
Re: if you can post it what exactly you looking for we can help you, but com libraries is huge subject other think to do is type library name in google and search for it, don't be lazy m8 | |
Re: I have Deitel &Deitel book JAVA How to Program 6th edition happy with it. Also cover threads and I got more out of it then from my teach at university(he just love to complain about java) | |
Re: you can run it without main method, but then it have to be Applet Am'I correct jwenting? | |
I have class which extends JTextArea which I want to attach to JFrame. here is constructor for for JTextArea [code] public MoveSelectedFiles() { area = new JTextArea(10, 40); setVisible(true); } [/code] and here is JTextArea is added to JFrame [code] MovedSelectedFiles movedTextArea = new MoveSelectedFiles(); JPanel panelTextArea = new JPanel(); … | |
Re: and how do you call this [URL="http://itextdocs.lowagie.com/tutorial/"]http://itextdocs.lowagie.com/tutorial/[/URL] MIRACLE ? ? ? :lol: | |
Re: [CODE] if(string1.compareTo(string2) == 0) STRING EQUALS else STRINGS DO NOT MATCH [/CODE] be aware this method can return three values less then zero, zero, or greater then zero. Only equal to zero is string are same more info on [URL="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#compareTo(java.lang.String)"]string[/URL] | |
Re: here you go, as you read whole line you also get return character and you need to get rid of it, there are various way how to do it but as you already use charAt() I used again to just get first (zero position) character in string. this is not … | |
Re: Secondly what you provided is not JavaScript only onClick action which take place on press of submit button. So put one and one together you are trying to steal somebody's work and have no idea what JavaScript is | |
Re: that code is absolutly fine only think you need to change is give it location of existing image [CODE]my_gif = getImage(base,"[COLOR="Red"]NAME_AND LOCATION _OF_MY IMAGE.gif[/COLOR]"); [/CODE] plus create simple html file somethink like this where width and height should be at least size of image which you try to display [HTML]<html> … | |
Re: ever heard of Pythagoras' Theorem " [B]a[/B] on power of two plus [B]b[/B] on power of two equals to [B]c[/B] on power of two"? just example [CODE] (x1 - x2 ) = x // your [COLOR="Red"]a[/COLOR] (y1 - y2) = y // your [COLOR="Red"]b[/COLOR] if ( x < 0) then … | |
Re: I had problem with JAR sometime ago, bellow you find link to my original question and solution to it [URL="http://www.daniweb.com/techtalkforums/thread39854.html"]LINK [/URL] | |
Re: what did you done so far??? | |
Re: check that you have semicolom after java home directory in path variable [code]c:\program files\java\jdk1.5.0_0.6\bin[COLOR="Red"];[/COLOR][/code] I had problem with that once, on some pc's will run it whitout this semicolom , but other refuse ps: not [code] publ[COLOR="Red"]l[/COLOR]ic static void main(String [COLOR="Red"]a[/COLOR][])[/code] but [code] public static void main(String args[])[/code] | |
Re: mate, the url which you provided doesn't work by the look seems to me like it is your local tomcat = running on your desktop/laptop and not proper server, so we will not be able to run it. You better post here your code and state what do you use … | |
I'm customizing JFileChooser for application atwork. One of the thinks I want it to do is open it as default directory [B]My Computer[/B] with list of all hard drives, optical drives or nay other storage which you get once you open it. Why I want to do it? Every b***y … ![]() | |
Re: if take out +1 this will generate numbers in the interval between 0-5 inclusive | |
Re: you looking for topic on your final year project or want to get place in some project development? | |
Re: to be fair you got more then 1 error and you will hate me for this :sad: [CODE] import java.util.Multiplesof5;[COLOR="Red"]there is no class Multiplesoft5 in java official package[/COLOR] /** This program tests the Multiplesof5. */ public class Multiplesof5 { public static void main([COLOR="Red"]s[/COLOR]tring[]args) { ArrayList<multipesof5> multiples = new ArrayList<multiplesof5>(); [COLOR="Red"]where … | |
![]() | Re: nice job you nearly there here is your missing peace :cheesy: [code] //Calculate the change String command = event.getActionCommand(); if(command == "Coca-Cola 1,15 Û") { change = (cents + euros) - 115; } else { change = (cents + euros) - 85; } [/code] KEEP UP YOUR WORK :p ![]() |
Re: [QUOTE]>getScannerInput.anInt[/QUOTE] yes there is nothing like this in Java classes. You better check what options you best to use in JAVA [URL="http://java.sun.com/j2se/1.5.0/docs/api/"]API[/URL]documenation I usauly do it like this [CODE]Scanner input = new Scanner(System.in); int num1 = input.nextInt(); int num2 = input.nextInt();[/CODE] dont forget [CODE]import java.util.*; or import java.util.Scanner;[/CODE] | |
Re: I did some adjustment to your code(red colouring plus removed some tab characters and extra spaces) but [B]you have to still finish it[/B]. Now it is working trough loop, but then when you press ctrl+z it prints labels but can't get over your calculations. It will be much faster for … | |
Re: There is no setDay() method in the Date Class, this mean your book must be old and you will get more similar problems... Follow the link which David give it to you, in packages find java.util, then bellow find Date and read trough I use now Deitel&Deitel JAVA How to … | |
Re: In my personal opinion you have long way of learning ahead of you. It is not just dreamweaver which you have to learn you need get into PHP. The functionality which dreamweaver provide is not 100% bullet prove, if you change to many things in your document this may casue … |
The End.