@# Quotes DB     useful, funny, interesting





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



Comments:

<0> the visual index demonstrates that.
<1> ay
<1> http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html
<1> i tried inserting that code
<1> but it returned error u know why?
<0> try to work on your communication. that question is pointless without context, most notably error messages, code, etc. pp.
<1> =)
<0> think your requests to others through a little and you may see people being more willing to help with really relevant problems, not these tiny "oh god, it doesn't compile, what now!" issues that you'll fix yourself in the next few minutes anyway.
<1> heh =)
<1> ay.. i used the example in that page u refered me too..
<0> no offense meant, just my experience on irc.
<1> ill try to be more exact when i ask questions later =)
<0> you are still not communicating your problem according to the above rules.
<1> naah none taken, im thankful for all comments :)
<1> no i ment, i used that example and it worked..
<0> raki: split off, last from you: <1> no i ment, i used that example and it worked..



<1> didnt write anything more :)
<0> ok
<1> im busy trying to get my readFile to work
<1> in my GUI cl***..
<1> but it keeps whining.. ill be back in a few if i cant fix it
<0> there is a semi broken "readfile" functionality in the faq if i recall correclty, its flaw being that it uses the platform's default encoding.
<1> my readFile works.. but i need to add it temporarely
<1> in to Cl*** GUI
<1> later on it will be sent in to it..
<2> How come if I declare an enum in my cl***, a seperate cl*** file which is named [Cl***Name]$[EnumName].cl*** in addition to [Cl***Name].cl*** ?
<2> is generated
<2> when compiled
<1> how do i create static variables? :O
<3> benkillin: its treated as an inner cl***
<3> you could, if you wished had the enum as EnumName.java
<2> but when you declare a private cl*** in the same file as the single public cl***, a similar thing does not happen?
<3> an enum is just a cl***, with enum magic
<2> I know that, but why the separate file if it doesnt do the same for regular cl***es?
<2> declared in the same file
<3> benkillin: mmm, not sure on that one - I guess the compiler is doing things differently as it knows that nothing external will ever need to see that cl***
<2> I wonder if it does it if I declare the enum as private...
<3> benkillin: nfi, "newbie coder at sun" maybe...
<2> Fascinating, if I declare an enum outside the cl*** def, I get an error like if I made a mistake in matching the cl*** to the filename...
<2> but if I declare it inside the cl*** with a private scope modifier, it still generates a separate cl*** file
<3> outside the cl***? well you can only have one (outer) cl*** per file in java anyway so thats expected
<3> or at least understandable
<2> It does the same for public and private cl***es within the cl*** just like the enums too
<2> generating a second cl*** file with the $subcl***.cl*** that is
<3> each cl*** gets a .cl*** file yes
<3> even anonymous inner cl***es will get Outter$1.cl*** and Outter$2.cl*** files
<1> ok, it works just fine now Clackwell, thanks alot really :)
<2> I know that now for a fact because I just tested it
<2> that's strange behavior to me
<2> because Im used to VB and C#
<2> and PHP
<3> from memory .net compiles to an ***embly, which is a file containing multiple cl***es, in java you just get the .cl*** files, which you'd normally jar up into .jar "***emblies"
<2> cool
<2> Do you know of a free win32 java bytecode compiler (java bytecode is the .cl*** file; a bytecode compiler goes from the java bytecode to machine code specific to the platform)
<3> theres gcj - but I just woudn't bother with any of them - they're all just fooling you really (in most cases), and you don't get any speed improvements anyway
<3> theres are article on the faq about them thou (see topic)
<3> http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html has set of articles/examples about nested cl***es, doesnt go into the bytecode compilation details thou
<2> but my book said that they exist and they make performance better
<2> maybe its only for specific platforms where a good implementation was made
<2> anyway, thanks!
<3> they may have made performance better on old ancient jvms (thou they often made 50mb exe files as well). but with JDK5 and 6 most of those performance issues dont exist
<2> whats new in jdk5&6 that makes it faster?
<3> much better code improvements inside the vm, lots of performance optimizations in the gui layer - making use of native controls, open gl, graphics hardware
<2> is it possible to control the hardware like I can do with C in Java WRT the parallel port?
<2> WRT=with regard to
<1> I used to have a TextArea area, and then i had ActionMap m = area.getActionMap();
<1> now i changed to a JTable table
<1> is there a way to do the ActionMap thingie on that?
<3> benkillin: yep - we do that in one of our apps - theres a javacomm's api/librarie
<2> is it free?
<3> benkillin: mm the one we used is, but if not - pay for me. google for it
<1> can anyone help me with that?
<3> raki: have you looked at the javadoc for JTable?
<1> yes
<1> i guess u use editorComp some how..
<1> but im clueless really..
<1> anyone who knows the answer for it?



<4> ?
<4> to what?
<1> I used to have a TextArea area, and then i had ActionMap m = area.getActionMap(); now i changed to a JTable table, is there a way to do the ActionMap thingie on that?
<4> never used action map, so I don't know
<3> 'lo calchas
<4> a JTable is a grid of other components so it may well behave differently
<4> hi talios
<1> another wierd bug that i get when using JTable is that the window
<1> is twice as high
<1> as the Table itself..
<1> which to me makes zero sense :)
<4> to do with the way the containers are set
<4> you need to learn to use the layouts better
<1> calchas,
<4> and it can be a pain
<1> i just add menubar
<1> and table
<1> when adding textarea instead of table
<1> its minsize
<1> but when i add table boom, it goes double height.
<3> mmm, nope - no use of actionMap in this code
<4> a table is a very different sort of component, you just made my point
<1> =)
<1> true =)
<1> bah
<1> no one has any idea
<1> on how i can make the layout correct
<1> it keeps adding a space at the end, which is the same size as the table itself..
<3> 'lo LLyric
<5> morning all
<1> how can i make Cl*** a2 in file a2.java access a method in Cl*** a1 in file a1.java?
<1> :|
<6> yes
<6> you have to...
<6> oh it's you again
<1> always me ;)
<6> geez
<6> do you even know what a cl*** is
<1> my gui works my array thing works..
<1> but now i have to link them
<1> and yes i know what a cl*** is..
<6> ok
<6> when you type "a2 my_a2_object = new a2();"
<6> do you know what it does?
<1> yes it creates an instance of a2
<6> ok
<6> that's how you access the method in cl*** a1
<1> ay.. ok
<1> i have to leave for cl*** now
<1> ill work on it later..
<7> Zarathushtra - you get shot for using a lowercase leading character in your cl***name ;)
<6> like i'm the one naming cl***es a[1-9]
<7> heh
<8> Java Persistence with Hibernate book
<9> ohhk..
<10> heh
<11> int [] x = new int []{1,3,5,7} how i should do it right ?
<10> there's nothing wrong with your line qweqwe.
<10> although standard practice dictates there is no space between the 'int' and '[]'
<10> but that won't stop it working
<11> tell it to my eclips
<11> int [] x = {1,3,5,7}; that how it works now
<12> stupid eclipse
<11> stupid programmer
<10> you mean you didn't include the semi-colon?
<10> I just presumed you had...
<10> what version of Java are u using, 1.4?
<11> i did
<11> 1.5
<10> then your original sentence should work fine too.
<1> hi
<1> if i want to reverse Arrays.sort()


Name:

Comments:

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






Return to #java
or
Go to some related logs:

terbiyessiz
+linux +nst0a +dds
#chatzone
#AllNiteCafe
iridium24
#AllNiteCafe
#linux
javascript opera innerHTML offsetWidth
#AllNiteCafe
i hate chealsea



Home  |  disclaimer  |  contact  |  submit quotes