473,738 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

about layout manager

12 New Member
which layout manager honours the preferd component size ? i am confuing it is border or flow layout ?
Jul 31 '07 #1
3 1722
JosAH
11,448 Recognized Expert MVP
which layout manager honours the preferd component size ? i am confuing it is border or flow layout ?
What do the API documents have to say about it?

kind regards,

Jos
Jul 31 '07 #2
praveen2gupta
201 New Member
which layout manager honours the preferd component size ? i am confuing it is border or flow layout ?
Hi

Flow lay out manager will display components from left to right in the given sequence. All components will resize with the rwsizing of applet window.
Answer of your question isd FlowLayout manager
Jul 31 '07 #3
blazedaces
284 Contributor
which layout manager honours the preferd component size ? i am confuing it is border or flow layout ?
Simply take a look at this page: http://java.sun.com/docs/books/tutorial/uiswing/layout/howLayoutWorks. html

It talks specifically about component's sizes in layout managers and talks about specific ones and how they handle the preferred size. Flow layout is probably what you're looking for though. Still, look at the demo to see how it works...

good luck,
-blazed
Jul 31 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1972
by: Merlin_1102 | last post by:
I have read previous posts on the gridbaglayout and none seem to answer my questions (sorry if any of these have been aske dI really did search and found one large thread which took me an hour to read.. Anyway my problem is as such i need to make something like a simcity game (not quite though). Bassically I need a grid in which labels (using the image icon command) can be disbladed. This grid needs to be resizable ie it could go from...
2
9309
by: Fabio Terrosi | last post by:
Hello to everyone I am using SQL Server Enterprise Manager and I would like to print the structure of each table of a database, with the purpose to see the whole record layout. (In Access there is Analyzer which does that) but apparently I acnnot find anything similar in EM. Who Could help me? Thank you to everyone! Regards
8
8913
by: T. Bjarne | last post by:
I'm writing a form with a grid layout (similar to the ones in phpMyAdmin). The form will contain X number of columns and Y rows - all cells containg INPUT elements. As long as the data isn't tabular I want to avoid tables. Is there a smart way (DIVs and CSS) to do this form without a table? Could I consider a form like this as tabular data, and forget making it tableless? Thanks,
13
6507
by: Bruno Panetta | last post by:
Suppose I have a table with the following columns: Year, SalesInEurope, SalesInAmerica, TotalSales. I want to add a new column called SalesInAsia, say, but I want it to appear before TotalSales. How can this be achieved? Thanks, Bruno
0
2639
by: Andrew Fedoniouk | last post by:
Announce: Lightweight HTML forms layout manager and browser component. http://HtmLayout.com Latest version of HtmLayoutSDK contains sources of wrapper for .NET (C#) Andrew Fedoniouk. http://terra-informatica.org
4
6391
by: Kerry Sanders | last post by:
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first panel and set its Dock property to Top. I then dropped the second panel on the form and set its Dock property to Fill. Holy disappearing panels, Batman. The second panel filled the entire form hiding the first panel. So, when I dropped my grid...
14
4856
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
2
1957
by: amitpathak | last post by:
HI Can anybody Explain me the GridBagLayout() manager in detail.I mean How to use it.What are the differents constraints like gridx,gridy etc and how to implement them in program.
2
2298
by: Francesco | last post by:
Hi there! I'm trying to organize my sources into a webroot tree like this, webroot index.htm - only contains index.php into a frame index.php - require_once('inc/layout.php') home page1.php - require_once('../inc/layout.php') page2.php - require_once('../inc/layout.php')
0
8968
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8787
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9473
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9259
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4569
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.