The NULL manager gives you the most flexibility but at the cost of having to lay everything out yourself. GridBag is complicated and gives you strange things when resized.
I have used something called TableLayout that is easy to use and can be resized easily. Another idea is to write your own layout manager. If you have lots of components and dialogs, spend the time creating your own layout manager so you have full control over every layout decision. You would not need to make it generic since you're the only one who would be making use of it. Robert Casto InsightETE Corporation Tel (513) 755-2221 Cell (513) 349-5282 [EMAIL PROTECTED] http://www.insightete.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 19, 2002 6:00 AM To: [EMAIL PROTECTED] Subject: Swing digest, Vol 1 #373 - 2 msgs Send Swing mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://eos.dk/mailman/listinfo/swing or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Swing digest..." Today's Topics: 1. Re: Swing based WYSIWYG HTML Editor (Steve Barrett) 2. RE: Designing Swing Applications for different resolutions with null layouts (Gs) --__--__-- Message: 1 Date: Wed, 18 Dec 2002 10:40:54 -0800 (PST) From: Steve Barrett <[EMAIL PROTECTED]> Subject: Re: Swing based WYSIWYG HTML Editor To: Ramana TSV <[EMAIL PROTECTED]>, Gs <[EMAIL PROTECTED]>, [EMAIL PROTECTED] --0-922517616-1040236854=:87623 Content-Type: text/plain; charset=us-ascii While I can no longer maintain this, it might get you 90% there. http://www.geocities.com/Area51/Crater/3143/ Ramana TSV <[EMAIL PROTECTED]> wrote: > We need a Swing based WYSIWYG HTML Editor with the following features: > 1.The TAB functionality as in MS-WORD. (TAB KEY) for text editing. This is a huge project by itself, and am not sure if there is one available freely. (Will be very glad to know if there are any!) I always wanted to built WYSIWYG support into my IDE which i am working on currently (Pramati Studio for J2EE www.pramati.com ) My idea is not limited to HTML, but go a step further and provide JSP GUI editing, which I don't think exists in the market. I did not get enough free time to start the work, but have few ideas to get you started. There is a HTML renderer package with Java HTML's kit, you could use as a base to get started. By doing this you need not bother about rendering the HTML elements again. But will have to write custom actions for inserting Tables, Form Elements etc. > 2.COPY PASTE formatted text from other tools like, WordPad, MS-WORD etc, > The COPY/PASTE should like, in MS-WORD the text will be in RTF format, but > when copied it should be in HTML format. You will have to understand the DataFlavor and Clipboard concepts, the below link will be very useful http://www.javaworld.com/javatips/jw-javatip61_p.html regards Ramana _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --0-922517616-1040236854=:87623 Content-Type: text/html; charset=us-ascii <P>While I can no longer maintain this, it might get you 90% there. <P><A href="http://www.geocities.com/Area51/Crater/3143/">http://www.geocities .com/Area51/Crater/3143/</A> <P> <P> <B><I>Ramana TSV <[EMAIL PROTECTED]></I></B> wrote: <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>> We need a Swing based WYSIWYG HTML Editor with the following features:<BR>> 1.The TAB functionality as in MS-WORD. (TAB KEY) for text editing.<BR><BR>This is a huge project by itself, and am not sure if there is one available<BR>freely.<BR>(Will be very glad to know if there are any!)<BR>I always wanted to built WYSIWYG support into my IDE which i am working on<BR>currently<BR>(Pramati Studio for J2EE www.pramati.com )<BR>My idea is not limited to HTML, but go a step further and provide JSP GUI<BR>editing,<BR>which I don't think exists in the market.<BR>I did not get enough free time to start the work, but have few ideas to get<BR>you started.<BR><BR>There is a HTML renderer package with Java HTML's kit, you could use as a<BR>base to<BR>get started. By doing this you need not bother about rendering the HTML<BR>elements again.<BR>But will have to write custom actions for inserting Tables, Form Elements<BR>etc.<BR><BR><BR><BR>> 2.COPY PASTE formatted text from other tools like, WordPad, MS-WORD etc,<BR>> The COPY/PASTE should like, in MS-WORD the text will be in RTF format, but<BR>> when copied it should be in HTML format.<BR><BR>You will have to understand the DataFlavor and Clipboard concepts,<BR>the below link will be very useful<BR>http://www.javaworld.com/javatips/jw-javatip61_p.html<BR><BR>r egards<BR>Ramana<BR><BR><BR>____________________________________________ ___<BR>Swing mailing list<BR>[EMAIL PROTECTED]<BR>http://eos.dk/mailman/listinfo/swing</BLOCKQUOTE ><p><br><hr size=1>Do you Yahoo!?<br> <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo ! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a> --0-922517616-1040236854=:87623-- --__--__-- Message: 2 From: "Gs" <[EMAIL PROTECTED]> To: "Ramana TSV" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Subject: RE: Designing Swing Applications for different resolutions with null layouts Date: Thu, 19 Dec 2002 14:53:42 +0530 Hi, Thanks very much for your help.I have given some reasons for using null layout. Reasons for not using Layout Managers: Actually our application is GUI intensive with media rich with numerous components used. Exact placing of components is very important, i.e every pixel counts, hence we found it very complicated going for the gridbag layout, So we started with null layout and it continues. Our application contains huge amount of text and its all HTML font. So the probelm with designing the applciation for different resolutions is the font size and another important problem is TAB size setting I don't see any Layout managers taking care of the font sizes for different resolutions and so its another reason for not going for NULL Layout. Actually we use a font size of 15 in 1024x768 resolution and font size of 11 in 800x600 resolution.The main problem we face is the TAB setting, We couldn't match the TAB size for both the font sizes. I have attached a sample code,run it in both the resoltuions. you can see the difference. Thanks once again, Gs -----Original Message----- From: Ramana TSV [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 3:12 PM To: Gs; [EMAIL PROTECTED] Subject: Re: Designing Swing Applications for different resolutions with null layouts Could you give your reasons for not using a LayoutManager ? I personally know a lot of people who shun away from GridBagLayout but believe me, once you understand the basic concepts, its pretty simple & powerful to design very complex UIs tool. ----- Original Message ----- From: "Gs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 18, 2002 10:49 AM Subject: Designing Swing Applications for different resolutions with null layouts > Hi, > We are developing a swing application which should support 1024x768 and > 800x600 resolutions. > We are using lot of Rastor images (PNG), the text is HTML TEXT, > We notrmally don't use Layout Managers, we use NULL Layout. > We face lot of problems in this regard, Need some suggestions regarding > this. > Thanks, > Gs > > > > _______________________________________________ > Swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/swing --__--__-- _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing End of Swing Digest _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing
