| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> where the heck are you! <1> "In October 2005, exGNAA member Grog received "staff" status on the Freenode IRC network from Rob Levin (lilo) by posing as Greg Lehey" <2> That sounds ominous. <3> Hi, I want to know how to declare a Panel that the layout = gridlayout in java swing where the cl*** extends JPanel <3> is this correct?? Panel north; north = new Panel(); north.setLyout(new GridLayout(3,1,0,0)); add(x); add(y); add(z); <4> number 1: dont mix awt and swing.. <4> JPanel or Panel, dont mix. <1> You don't need to extend JPanel. Why don't you ask the compiler whether it's right? And the runtime. <4> wb Rob_Uknow <5> wolfey <6> hi Rob_Uknow <1> Rob_Uknow: If I say hi to you like these guys do I get to become an op? <6> in your nick, is UK for UK? <4> rickety: im not doing that for @ <5> nope
<0> Rob_Uknow: what's your access level for #java? <5> 100 i think <5> yep <4> have you heard of OLPC? the famous $100 notebook project <0> hrm, I need to find anthem or someone <0> I have X access again, but no access to #java <3> wolfey: I just did the corrections, it compiles and runs but it dont displays the buttons and labels as I want <4> north.add (...); then add(north); <4> you did add north to parent panel? <1> jottinger: I know, you're trying to kick me from as many channels as you can, at once.. <0> rickety: no <3> sorry, disco. <3> yes I did. But I have 3 panels like that, North, East and South, then I add those 3 panels. I did this: setLayout(new GridLayout(0,3)); add(north,BorderLayout.NORTH); add(east,BorderLayout.EAST); add(west,BorderLayout.WEST); <3> *SOUTH not EAST <1> And what happens? <4> mmm <7> Whats your preference 1. Collections with Jakarta commons or 2. memory resident database? <4> dbn: i dont understand you <4> dbn: you setLayout GridLayout, then use BorderLayout constraints for adding <4> DONT DO THAT <1> TovAre: 3. Java Collections. <3> may PM u to explain? <4> dbn: if you setLayout(new GridLayout).. then just add(west), no borderlayout.west <7> rickety, why not the jakarta stuff? <1> wolfey: Hopefully GridLayout will throw exceptions at that, but probably not. <1> TovAre: Why the Jakarta stuff? <4> if you want borderlayout, setLayout (new BorderLayout()) <4> rickety: probably it just doesnt add <4> i've seen that <1> Ugh. <1> silent failure-- <7> rickety, to get some type of framework to put all the queries. <4> SQL is safe choice <3> look wolfey the window has to look like this <3> Label: <textfield> <1> I think the layout APIs could have used so much more static typing.. <3> Label: <textfield> <4> dbn: do yourself a favour and use GridBagLayout. <1> dbn: http://cime.net/~ricky/netsim/pi/layout.html <4> and GridBagConstraints <4> dbn: http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html <3> i do understand that... if u dont use java swing it works, if i add them using swing it wont work. <4> use swing and this layout. <1> dbn: That's codswallop. <1> I'd never suggest GBL to a newbie. <3> ive got 3 panels, 1 with labels the other one with textboxes and the 3th one with buttons. The labels should be on the left then the textfield on the right and the buttons on the bottom. The textfield should correspond to the label like Name: then the textfield. <4> rickety: GBL is fairly easy:) <0> wolfey: indeed <4> at least for simple grid <1> I don't use it, it doesn't make sense to me. <4> rickety: it does cute spaces with insets <4> without much work <4> boxlayout and i guess gridlayout just strecth components <4> which is ugly in many cases <1> That can be worked around with nested panels. <4> sure sure <1> I didn't think BoxLayout stretched components. <0> erm <4> rickety: but you are rigth... placing panel with flowlayout solves it too <4> panel is stretched, components are not <3> arggg is not working
<5> Clackwell <8> anyone ever try to use arial-15 on a JTextPane and notice that it renders down wrong if your pane is larger than the text it needs to display? <4> no. <4> ::) <8> well why not!? ;-) <9> sounds kinda odd <8> well.. the problem is I'm overriding paint-component and everything is dependant upon a correct representation of the fontmetrics for the font <9> well just use a different font <9> i never ran into such a problem <8> and "Arial-15" doesn't draw correctly. unless the text is being almost covered, or covered by the JTextPane.. <8> here.. ill paste it to the website.. (my sample program that contains the error) <9> the redering should not depends on the size of the textpane <8> i've tested it on 4 different computers..so hopefully it will continue to fall apart.. <8> heh i KNOW! <8> thats whats weirding me out <9> alternative just render directly into a jpanel <1> Hmm, I don't know why you would override paintComponent on JTextPane. <8> you don't? <9> indeed <1> I render stuff to images, then make a JLabel showing that image. <8> even if you want to add lines?? <1> The JLabel can be told when the image changes. <8> like right underneath the text? <8> for a page-break? <8> you would do that with a JLabel? <1> Page break? What's the point of a page break on a component? <1> Maybe you're looking for JEditorPane, which is a good place to put loads of HTML. <8> um. heh... for this program.. the user must know .. for legal purposes.. where the page break is.. <8> its legal software.. they are sticklers for correct displays.. <9> haha <1> How do you represent a page break in the document? <1> I mean, what text format is this? <8> same way word does. A nice fat line across the screen <9> html in jeditorpane doesn't work well unfortunately <1> kmh: It works for me. <9> even easy html may screw it up already <1> Even with CSS it works for me. <1> Maybe your HTML is bad. <9> rickety : well i just had a few really easy cases already rendered incorrectly <1> kmh: Easy can still be bad. <9> rickety : not it is verified/strict even <8> well.. i can show you that the arial-15 is screwed.. want me to private you the tiny tiny example? <9> rickety : which annoyed me even more <1> jsnake: If you're trying to work out where the text is rendered, to the pixel, you're probably writing fragile code. <9> rickety : it could be a 4.0 issue, but i was nothing than doing a table with pictures and it totally screw the size information <1> 4.0? <1> jsnake: Better to do something intelligent, e.g., make the text into HTML, and replace the page break with <hr> <9> maybe it is a 4.0 tag attribute not available in 3.3 didn't check that <1> 4.0 of what? <9> rickety : html version <1> I don't use tables in HTML. <9> well you're lucky then :) <9> <br> ? <8> can't render down HTML in real-time.. there are a lot of real-time features on my JTextPane.. which can't be reproduced If you switch to HTML <9> jsnake : just use another font <8> heh.. yes. other fonts.. other sizes work. problem is.. the user really should be able to choose his font. and size. regardless if its 14,15,16 <9> hmmm <8> im ***uming this problem happens with other fonts/sizes as well <8> and i really dont want to go through them. <9> you can't have it all <8> heh.. this im finding out. <9> well it appears rather odd as general bug <8> yeah.. i've already bugged it to sun <1> URL? <8> but i have a nice 3 week waiting time till its posted <9> though either you're doing something wrong <8> wanna see the code? see if it happens on your system? <8> its 56 lines of code <8> tiny <9> post a testcase/url/applet <1> I have a habit of ridiculing Swing code. <9> nasty <9> actually swing kinda makes it easy to produce faulty code <1> Yes, too little encapsulation.
Return to
#java or Go to some related
logs:
#linux #linuxhelp preeteen lol ghamorin #php #linux spamassassin installions #apache upsmon91a man #c++
|
|