@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> I have lots of global shared libraries in it
<1> hello people
<2> hi
<1> SHM1L....do you know how to hide or remove that black console (or that dos based mode) when running gui?
<1> that console background when you run GUI application
<1> i want to run only that Graphical thing....not having that dos mode
<2> christine_c did you make a windowed based application ?
<1> yes.....
<2> so why dont you make an executeable jar ?
<2> instead of .cl*** ?
<1> i dont know that im still new to java
<2> i am newer ;) i use java for 5 days
<2> but i read that you can make executeable jar so you can just double click it
<2> the same as you would do with a normal app.
<1> is it possible to hide that background....only that GUI thing will appear
<1> ok



<2> google for: java + executeable jar
<2> or something
<1> ok thanks
<3> christine_c: actually you want the java tutorial; http://www.thejavatutorial.com/
<3> Just making a jarfile executable won't remove the dosbox perse since you still need to start it. But you could check for other means of deployment...
<3> christine_c: http://java.sun.com/docs/books/tutorial/deployment/index.html
<2> well i showed him a link using javaw method
<1> ok, thanks people
<2> Lion-O- i read the OOP article you provided me with yesterday if you remember
<2> I am still kind of mixed up
<3> SHM1L: then better start the tutorial right from the start again. Java, like so many other things, won't be easy if not impossible to use if you don't grasp the very basics.
<2> Lion-O, well i just dont understand some very specific part of it and i read it from more than 1 resources
<2> when do i use private
<2> and when do i use static
<3> SHM1L: thats why there are test cases and why you should experiment.
<3> why suddenly the combination private/static? Yesterday it was public/static, so if you managed to grasp public surely its not that hard to imagine that private is the opposite of public?
<3> SHM1L: but what is it that you don't understand?
<2> i mixed between them all, i just gave you 1 dilema so if i could understand one of them i might understand them all
<2> why should i use static at all ?
<2> if i want object.something i use public?
<3> SHM1L: Are you familiar with the main method?
<2> well i think so
<3> SHM1L: and what happens if you don't make that static?
<2> it is public static
<2> i never tried removing static from it
<2> i get runtime error
<2> compiled just fine, but has runtime error
<3> not a runtime
<3> Anyway, I still think you should read the tutorial and actually experiment.
<3> "Sometimes, you want to have variables that are common to all objects. This is accomplished with the static modifier."
<3> "Fields that have the static modifier in their declaration are called static fields or cl*** variables. They are ***ociated with the cl***, rather than with any object. Every instance of the cl*** shares a cl*** variable, which is in one fixed location in memory."
<2> so if i want to make an object with extention i use static than ?
<3> Not that hard to understand
<2> so for example: static gun { int bullets; }
<3> SHM1L: The only reason this could be hard to grasp which I can think of is if you're not familiar with the very essence of OO programming and as such don't fully grasp the whole issue about instances and such.. For that reason the java tutorial starts with a chapter dedicated to that as well.
<2> i can than use: gun.bullets
<2> everywhere ?
<3> gun.bullets would denote a bullets cl*** in the gun package.
<3> dude; you have some serious reading up to do.
<4> :)
<4> TIJ
<5> i get the error: "Could not find main cl***. Program will exit" when i try to run a newly created jar file.. some details about the files used at http://rafb.net/p/wwcz9j59.html
<5> what would the problem be? some1 told me im not specifying the cl*** properly in the manifest, but i cant spot the problem
<3> RPGE: what happens when you try to run this program outside the jarfile?
<5> when i run AppGUI.cl*** it works fine
<3> RPGE: how are you starting AppGui and how did you try to execute the jarfile?
<3> it would also help if you gave us the exact error message
<5> compile and run using JCreator
<5> execute teh jar file double clicking on it
<5> the is the exact error im getting
<5> a window pops up and it says "Could not find main cl***. Program will exit"
<3> RPGE: don't. Just open a dosbox and use the java command manually. Sounds like your problem is more Windows than Java related.
<3> at least it will provide you with more usefull information.
<5> Exception in thread java.lang.NoCl***DefFoundError
<5> Exception in thread java.lang.NoCl***DefFoundError: org/jdesktop/layout/GroupLayout$Group
<5> Exception in thread "main" java.lang.NoCl***DefFoundError: org/jdesktop/layout/GroupLayout$Group
<3> RPGE: well, thats the problem then. It can't find a library which it needs to be executed. You probably need to either define a cl***path in the jarfile or set one yourself when using the 'java' command.
<3> pretty odd though since I'd expect grouplayout to appear in netbeans based GUI's. But then again; code travels fast these days 8)
<5> i see... how would i define that cl***path in the jarfile?
<3> using the 'Cl***-Path' directive.
<3> you probably need to point that to the jarfile which contains the grouplayout cl***.



<5> hmmm... can u explain that more... i copied the library org-jdesktop-layout.jar into the same folder as AppGUI
<3> RPGE: it will look for cl***es in the same directory, but won't look into every jarfile it might encounter.
<5> i just copied it... im just not sure how the modify the command im using to create teh jarfile
<3> so.. "java -cp .:./org-jdesktop-layout.jar -jar <jarfile>" is likely to work.
<5> ok thanks
<5> wait... that wont create a jarfile
<3> And if you wish to automate it you just point the cl***path in the manifest file to the jdesktop-layout jarfile.
<5> so add "Cl***-Path: org-jdesktop-layout.jar" into the manifest?
<3> if thats the entire filename then yes, that should work.
<5> ok let me try
<3> naturally only if that jarfile is in the same directory as your programfile ;)
<5> hmmm... still get the same error... ill post a screenshot of everything
<3> RPGE: so, does that 'java' command actually manage to run things?
<5> no
<5> oh wait.. the new one.. let me try
<5> i get the same exception in thread "main"
<5> http://i76.photobucket.com/albums/j27/ROSilviu/untitled.jpg
<3> I meant the java command which I mentioned above.
<3> <3> so.. "java -cp .:./org-jdesktop-layout.jar -jar <jarfile>"
<5> java -cp org-jdesktop-layout.jar -jar NHLPA_Database_Beta1.jar
<5> i ran it after the screenshot
<3> no
<3> -cp .:org-jdesktop-layout.jar
<3> if you don't include the . it won't search the current directory and then won't find its stuff ;)
<5> brb
<6> I'm reading a book where it says that the bridge design pattern seperates intention from implementation, and therefore, declaring an interface with the interface keyword and implementing that interface with other cl***es is a realization of that pattern. I'm not sure that's correct. Any arguments?
<3> only argument / comment I have is that I don't do much with design patterns 8)
<7> useful Lion-O lol
<7> er SHM1L don't pm people please
<7> talk in channel
<7> especially if you have a C# question :P
<7> TechCel thats certainly what I understand of the bridge pattern
<7> at its most basic level
<7> I understand (taken from a book) that its a 'decoupling of an abstraction or interface from its implementation so that the two can vary independently'
<7> so I suspect your definition above won't cut the mustard, as a direct implementation of an interface would not be a decoupling
<7> check this site out for a working example http://www.javacamp.org/designPattern/
<7> <2> you could of tell me it in personal without making everyone knows how "a good boy you are"... but i guess you like to make a big thing out of nothing. i wanted to ask you something in personal which has nothing to do with C/java question. but what the heck.. get a life
<7> boring.
<0> How to add '1' to the leftmost part of JMenuBar ?
<3> Deano|Wrk: and so the guy reveals itself :/
<7> indeed :-/
<8> can you do a handler a s method instead of a cl***?
<7> huh?
<8> I want to save contents of an editable JtextField and you need an action listener right?
<3> it would help, yes.
<8> so you can do it without listeners?
<8> String p = JTextFiel1 ? can this be done?
<3> that made no sense what so ever.
<3> check the API docs for JTextField.
<8> ok
<9> when u talk about a vector and synchronization does it mean when applying concurrent manipulations on it they are applied one at a time ?
<9> for example traversing the vector and adding an item to the vector is there a possibility of a race case ?
<10> FA|R_MUT3X: Vector is synchronized, so you should be able to do concurrent manipulation of it safely
<9> thanks :)
<10> FA|R_MUT3X: You may want to look at Collections.synchronizedList instead though, to avoid legacy APIs
<10> (and also note that threading is one of my major weakspots)
<8> The text inside a JTextField is of type what?
<3> It depends on what method you'd use to retrieve the contents.
<8> yes but it is telling me incompatible types
<8> I dont know how to retrieve the contents in fact
<3> Check the API docs for this cl***, as I told you before. Probably something like getText() or such.
<8> I checked there is only a paramString() but it is protected and cannot be refernced
<3> rofl
<3> then you didn't check
<3> http://java.sun.com/javase/6/docs/api/index.html
<3> this is the one: http://java.sun.com/javase/6/docs/api/javax/swing/JTextField.html
<3> well, if you're using se6 ofcourse. otherwise we'd need se5. Still..
<3> "Methods inherited from cl*** javax.swing.text". Its all there. From getText to getSelectedText to....
<8> ah ok
<8> tnx for that
<8> String.valueOf(d);
<8> d = jTextField4.getText();
<8> this doesnt work?
<11> that doesn't work?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

edward_jake
#AllNiteCafe
pagina con 4 frames
lady tesa
#AllNiteCafe
sws-6.1sp5 linux
classic fillies race run over the derby course
how to manstrubate
#AllNiteCafe
Nittiena



Home  |  disclaimer  |  contact  |  submit quotes