A better FlowLayout layout manager... with linebreaks
I go frustrated enough with the lack of a useful layout manager that I ended up writing my own. It's basically a FlowLayout layout manager, but allowing "new line" and "new block" commands so that it can actually do what most people asking about FlowLayout want.
The post for it is on http://pomax.nihongoresources.com/index.php?entry=1242306034 with a link to the jarchive for it (javadoc linked in same entry).
Hopefully this is of use to people other than myself.
- Mike "Pomax" Kamermans
nihongoresources.com
Hi,
A JInternal frames insisde a JDesktopPane without any LayoutManager
Bye
Similar Messages
-
Problems with integrating YUI Layout Manager with APEX
Hello,
I have a problem about the YUI Layout Manager and APEX.
This is the link to the Layout Manager, which I want to integrate:
http://developer.yahoo.com/yui/layout/
I tried to integrate it and in Firefox everything is fine!
But with Internet Explorer the page is damaged.
Look at the sample on apex.oracle.com:
http://apex.oracle.com/pls/otn/f?p=53179:1
Can anybody help me with this issue?
I think this couldn`t be a big problem, becaus in FF it works correctly, but I don`t get the point to run that in IE7.
Thank you,
TimHello,
now I put some color in it, but it does not help me pointing out the problem.
The Login for my Account is:
My Workspace is: EHRIC02
Username: [email protected]
Password: ehric02
Is there anybody who have implementet the YUI Layout Manager with APEX? Perhaps that isn`t possible with APEX?
I know that John Scott played with YUI a few times, has he tried out the Layout Manager?
Thank you,
Tim -
Does anyone know how to win a fight with layout manager?
I am using the form designer in netBeans to design my page, which has a jPanel on the left and a number of controls on the right.
My problem is that when I eventually get it to look half right at design time, it looks different at run time. The fonts are different, the combo boxes are a different height and some of my text boxes are 4 times as wide. http://RPSeaman.googlepages.com/layout.GIF shows both the design-time view and the run-time view. How can I win my fight with layout manager?I'd like to do an experiment where you take say 20 pairs of students of java, with each pair matched in terms of prior programming and java experience, general knowledge, etc... and set one of each pair to learn Swing using netbeans and its layout generator with the other pair learning to code Swing by hand. Then 6 months later compare their abilities. I'll bet that the code by hand group will blow the other group out of the water in terms of understanding and ability.
Just my 2 Sheckel's worth. -
Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
change in sharepoint scripts not require compilation but anything else?Yes, PowerShell is great, since you can quick change your code without compilation.
SP admin can write ps scripts without specific tools like Visual Studio.
With powershell you can use cmdlets,
which could remove a lot of code, for example restarting a service.
[custom.development] -
Manage layout variants with no data in system
Working on a new production system with no work orders created yet. Is there a way to create (or transport in from another system) the layout variants? Running the list edit transaction gives a 'No objects were selected' and never displays the results screen.
Hi,
Create the required layouts in either Quality or Development clients. Then execute the particular report. In the report view, Go to Menu Settings => Layouts => Administration.
It will open Layout Management. Select the layouts to be transported & go to Menu Layout => Transport.
It will ask for Request ID. Save that request & transport that to required client.
I have not tried this. Please check in other clients before doing in Production.
Regards,
Maheswaran. -
Combine absolute pos. with layout manager?
Hi there,
ist it possible to make a panel with two buttons, where the buttons are absolutely positioned and the panel is in a BorderLayout?
Or how else can I have buttons in my gui with same size and position even if the surounding frame is resized?
Regards,
PhilipI don't want to let the buttons disappear. But when resizing the gui, the space between the buttons is getting bigger, what dosn't look very good.
Okay, I tried this:
selectionButtonPanel.setLayout(null);
selectionButtonPanel.setSize(100,60);
//first button
selectionButtonPanel.add(selAll);
selAll.setBounds(0,0,20,10);
//second button
selectionButtonPanel.add(deselAll);
deselAll.setBounds(0,25,20,10);
c.add(selectionButtonPanel,BorderLayout.EAST);
Unfortunately the button panel isn't visible anymore. I only see a thin line at the right gui side (east), so it seems that the setBounds call is ignored.
How can I force buttons to have a exact position even if I use a layout manager?
Thanks,
Philip -
A better way to deal with lost hyperlinks when converting Robohelp to Printed doc?
I have inherited a 750-page manual that is
"single-sourced" in RoboHelp X5. When I generate printed
documentation, all of my hyperlinks and converted to plain text.
Everytime we release a new version of the manual with any changes,
we have to re-generate, and then manually go into the MS-Word
converted document and re-create some 350 hyperlinks and page
number references. Somebody please tell me that there is a better
way to do this, or a better tool to manage single-source
documentation.Another post has been raised relating to this problem. See
http://tinyurl.com/yvpaut
I am replying here is this is where most of the relevant
information is.
You found that using the Style Mapping template solved the
images problem but the document stopped generating at 450 pages.
That was sort of what I hoped for. Rather than go to the step I
will suggest in a moment, I suggested you try something else but
you never came back to the forum to indicate you had tried it, so
the assumption is you did and it worked. Patently it did not so
let's try what I would have suggested next.
On my website there is a topic on Print Issues and one of the
them covers Malformed Topics. Try looking for <p
style="mso-bookmark: as suggested in my earlier reply in this
thread. You can try RH's Multi file find and replace but FAR from
http://www.helpware.net/FAR
may get better results. I think with this error you usually get a
message. Do you have the Output pane opened and have you read right
through it for clues? View | Output on the menu. Whether or not the
Output pane mentions this error, I would search for it anyway.
Other Points:
A] It could still be a resource problem. The document is very
large so, as Harvey mentioned, resources come into it. I know the
PCs that won't play nicely have good resources but whilst I am no
expert in this area, don't foget XP is using more of them leaving
less available to you. It could be an issue but I am inclined
towards it being something else.
B] I also suggested a hunt for a rogue topic.
"What I would try is copying your layout so that you have
three versions of it. Then delete two thirds from each one. If all
three work fine, it sort of confirms that size is a problem. If one
fails, your on the track of the rogue topic."
Did you try that? Like I said, if all three work fine, then
we are back with the resource problem but we will have ruled out
other issues. It should take less than fifteen minutes to set that
up. Longer to run it but you can be doing something else at that
point.
C] On FrameMaker, no real answer but you will soon see
evidence that Adobe are continuing to better integrate all the
products we are using. I don't think you will see what you want in
the upcoming version though.
NEXT:
1] Please search for <p style="mso-bookmark:
2] If that fails, try creating the three layouts.
3] Then post back how it went. If unsuccessful, tell us if
the Output pane gave any information about things the process did
not like.
Let us know either way as if one succeeds and you post that,
it helps the next person with the same problem. -
Need suggestion regarding Layout Manager using Swing in Java
I have developed a swing application where i am having problem with selecting the right layout manager.
I am attaching the file where it contains the method for addingComponents to the Content Pane. But, the code that i have written
contains lot of spaces between first panel and second panel and so forth.
Please suggest.
<<Code>>
public void addComponentsToPane(Container contentPane) {
this.contentPane = contentPane;
// File Panel
JPanel jfile1panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
JPanel jfile2panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
JPanel jfile3panel = new JPanel(new FlowLayout(FlowLayout.CENTER));
JLabel jfile1 = new JLabel("Select File:");
jtfile1 = new JTextField(50);
jbfile1 = new JButton("Button1");
jfile1panel.add(jfile1);
jfile1panel.add(jtfile1);
jfile1panel.add(jbfile1);
jbfile1.addActionListener(this);
JLabel jfile2 = new JLabel("Select File:");
jtfile2 = new JTextField(50);
jbfile2 = new JButton("Button2");
jfile2panel.add(jfile2);
jfile2panel.add(jtfile2);
jfile2panel.add(jbfile2);
jbfile2.addActionListener(this);
JLabel jfile3 = new JLabel("Select File:");
jtfile3 = new JTextField(50);
jbfile3 = new JButton("Button3");
jfile3panel.add(jfile3);
jfile3panel.add(jtfile3);
jfile3panel.add(jbfile3);
jbfile3.addActionListener(this);
//Button Panel
JPanel jbuttonpanel = new JPanel();
jbuttonpanel.setLayout(new FlowLayout(FlowLayout.CENTER));
JButton jbcmd1 = new JButton("Submit");
JButton jbcmd2 = new JButton("Cancel");
jbuttonpanel.add(jbcmd1);
jbuttonpanel.add(jbcmd2);
jbcmd1.addActionListener(this);
jbcmd2.addActionListener(this);
//Content Pane
contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));
contentPane.add(jfile1panel);
contentPane.add(jfile2panel);
contentPane.add(jfile3panel);
contentPane.add(jbuttonpanel);
}But, the code that i have written contains lot of spaces between first panel and second panel and so forth.use pack(), see if it makes a difference
as you're using FlowLayout, make the frame not resizable -
The most precise layout manager
It's time to decide on a layout. My java game screen is a fairly complex jumble of info in little boxes here and there. Everywhere.
I'm not a java pro yet, but am I correct in thinking that there is -no- pixel grid layout manager? Meaning, I could define the coords for each element? I don't think there is one like that.
All that being said, what java layout manager gives you the most precise control over element placement? It looks like the Box or GridBag, but I'm not certain.
Thank you in advance for your expert oppinion :-)
Mark DeibertFrom my experience I've found that using a combination
of layout managers works best for fine tuning things.
For example you can create a panel for your buttons
implementing a flow layout then a panel for your
checkboxes using a gridbag layout etc.
The code might not be as neat as using a single
manager but it does give you more control on where
things go by breaking the GUI up into more manageable
pieces.I agree with that - I really never use absolute postioning. Think in an object oriented way when you choose LayoutManagers - arrange all components, that are displayable by the same LayoutManager in a separate JPanel with this LayoutManager - add only those components, which are in the same context to that, what this JPanel should do.
For example - when you want some buttons to show up in the center of JPanel, use two JPanels, one with FlowLayout, where you add the buttons, and add this JPanel to a second one with BorderLayout to its center. If you now want to place these buttons to the bottom of another panel, you easily add it to a JPanel with BorderLayout to its bottom - the hole JPanel, not the buttons. That is also quite fine if you want to repostion those functional units later on - components, that are in a relation to each other will stay together this way and must not be repositioned component by component.
greetings Marsian -
JAVAFX have FANTASTIC LAYOUT MANAGER!
NEW version 2.2!!! is new from 2.1
I find a fantastic layout for javafx, it is static and dynamc with Scene. You can create special indipendent rows and set all cols and rows size. Is better than java layout. You can create span cols. You can set grow in vertical and horizontal. You can set alignment and other. It is user friendly and simple to use for all. Is easy create form and panel with this layout.
He's name is DigLayout. For tutorial and samples:
See articles in jfxstudio web site: http://jfxstudio.wordpress.com/2009/03/05/new-advanced-javafx-layout-manager-diglayout-from-jdlayout-library/
See official project webpage: http://code.google.com/p/diglayout/
simple to use:
import Window.JDLayout.;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.effect.;
/ @author Diego Benna [email protected]
var panel = DigLayout?{
// All setting
// Rows and Items
digrows:[
Row{
items:[
Item{
valign:"middle"
halign:"center"
item:
javafx.ext.swing.SwingLabel? {
text: "Item 1"
Item{
valign:"middle"
halign:"center"
item:
javafx.ext.swing.SwingLabel? {
text: "Item 2"
Row{
items:[
Item{
valign:"middle"
halign:"center"
item:
javafx.ext.swing.SwingLabel? {
text: "Item 3"
Item{
valign:"middle"
halign:"center"
item:
javafx.ext.swing.SwingLabel? {
text: "Item 4"
Stage{
title : "UnitTest? Simple Panel"
scene : Scene{
width: 540
height: 370
content: [
panel
What do you think??DiegoBenna wrote:
NEW version 2.2!!! is new from 2.1
I find a fantastic layout for javafx
What do you think??I think you are doing a bit too much advertisements for your product, and pretending to "find" it when you made it is on the limit of honesty.
I think I dislike CRYING OUT loud with capitals in forums and mailing lists.
I think you are right to present your product, and you probably made a good product, but such marketing ploys don't make me feeling like trying it.
Just my opinion, perhaps too arrogant, and certainly more looking upset than I am actually, but I felt I had to let you know, in case you wonder why you have so little reactions to your messages... :-) I don't mean to be offensive, somehow I try to help (otherwise I would just shut up and go my way).
Have a good day and I sincerely wish your product will become as popular as it deserves. -
Which layout manager can do this?
Heya folks.
I've been developing a piece of software and laid out the UI by hand (not using any NetBeans or whatever).
What i have issue with now is setting 3x JTextFields to 33% of the frame's width. Im using GridBagLayout with constraints and cannot achieve that effect.
Here is the example of what im trying to achieve (and yes its photoshoped, well....actually "MSpaint"ed :P )
http://i51.tinypic.com/2u7osvb.png
I want to have a JLabel over each JTextField too.Kleopatra wrote:
Darryl Burke wrote:
I would nest panels with different layouts to achieve the same result more easily.nesting is for nerds <g> Or slaves, being bound to core LayoutManagers. Or people that post to these forums and expect answers that start with anything other than "Go ask the 3rd party developer..".
As a side note. Not that I am doubting the power of the LMs you outlined. To read Karsten's* (JGoodies) posts on public forums indicates he has a far better grasp of easy & fluid layout management than is incorporated in many of the core layouts.
* Disclaimer: I was granted a free license to use JGoodies PLAFs and layouts - though I have been very slack in not using it to full advantage. -
Suitable layout manager for adding JToolbar?
Hi there,
I'm new to Java Swing. I'm looking to add a toolbar to the top of a JFrame. I've created a Grid layout with 3 rows and no columns. I've placed the JToolbar in the first row. Unfortunately, each row in the grid is of equal size so the toolbar is stretched to 1/3rd the size of the JFrame. I want to the toolbar to be standard size but I don't know how to resize the grid rows. I don't want to have to add more rows to reduce the size.
Can anyone help me here? Or if you have a better layout manager suggestion.
Thanks,
SeanYou can use the default BorderLayout of JFrame and add your JToolBar to the North.
-
Kill Layout Manager; Placement of JButtons and JComponets
Hello Everyone:
Can anybody tell me how I can place a JButton or JComponet at location (x,y), with a width and height, on a JPanel and not have it move? Everything I try doesn't seem to work. Some default layout manager just puts things where it wants to. Any Ideas??
Thanks,
AndrewHi,
please start here to learn about it
http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
in this trail it is explained too, how to layout a container without a layout manager, but I bet, if you have read all that about LayoutManagers and have understood, how they work, you will no longer want to use absolute positioning.
greetings Marsian -
A better way to manage Notes?
We are a small team in collaboration on a book-length manuscript.My editors are inserting hundred of Notes into the document that I must cycle through and resolve each one. But I find the Note icon soooo tiny. When I'm at full page I can barely see those little guys. Is there any way to make the Note indicators bigger or something? In general. I don't see this Notes tool as very robust compared to change tracking type features found in word processors.
I just want a better way to manage the Notes flow.Eugene Tyson wrote:
I find using Notes in Story Editor to be way better.
CTRL Y or CMD Y
Then you can Expand/Collapse notes in Story Editor.
Far easier to read and implement there, or if you need to switch back to layout just hit the shortcut again.
It's also useful to tile a Story Editor window and the corresponding document's window, to have both views of the content.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices -
Hi,
I have created User defined form. Now i have to display report when click on Preview button (Same as Standard document).
Can we use report & layout manager to display report.
Regards,
PravinHello
possible with development, and it is pending from the B1 version.
Easy solutions are:
- 8.81 you can use Crystal Reports and PLD
- 2007 you can use PLD only or CR integration addon
in Crystal:
- You can create your layout and you can import into the system as report (not layout) into a specific folder
- When you press the print or print preview button (eg menu action is indicated, menu id "520", "519"), then you can find the crystal report in the OCMN table with the following query
select MenuUID from OCMN where Name = N'YOUR_REPORT_NAME'
- next step is call the report with ActivateMenuItem and fill the parameters.
Complete code for crystal
Dim oRs As SAPbobsCOM.Recordset = oCompany.GetBusinessObject(BoObjectTypes.BoRecordset)
Dim sQuery As String
Dim sMenuID As String
sQuery = "select MenuUID from OCMN where Name = N'YOUR_REPORT_NAME"
oRs.DoQuery(sQuery)
If oRs.Fields.Count > 0 Then
sMenuID = oRs.Fields.Item("MenuUID").Value.ToString
m_SBO_Application.ActivateMenuItem(sMenuID)
Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
oForm.Items.Item("1000003").Specific.String = docentry
m_CrystalCriteriaFormID = oForm.UniqueID
oForm.Items.Item("1").Click(BoCellClickType.ct_Regular)
Else : m_SBO_Application.MessageBox("NO PRINTING LAYOUT EXISTS!")
End If
In PLD, the logic is the same, but you must activate the User Queries print layout, and locate the report in the matrix.
Regards
János
Maybe you are looking for
-
Need help with a copy of an old document Using Adobe PSE 8.0
I have a copy of a document (Will) written in ink, in 1782. The problem is, about half of the ink has faded over time, so that only the bottom portion of the Will is still readable. I wish to be able to alter the image so that somehow someway I wil
-
Is it possible to resize a mac partition from windows?
Here's what's going on. I originally wanted to use Disk Utility to do this, which is clearly the easy way to do things, but my computer is so slow that Disk Utility immediately becomes unresponsive upon wanting to resize -any- partition. The windows
-
Modify ACH file format in F110
Hi everyone I have to modify the ACH file format using PMW How do i proceed? Do I copy the function module FI_PAYMEDIUM_ACH_30 and add the necessary codes then assign it to event 30 in FBZP or there is a BTE to enhance the event modules? thanks a lot
-
Where can i get weblogic server 6.1 sp4 11/08/2002 21:50:43 #221641
Hi everybody, from where can I download weblogic server 6.1 sp4 11/08/2002 21:50:43 #221641software? cheers
-
How to add a ipv6 prefix boundary in sccm for Direct Access
Does anyone know how to add a ipv6 prefix for a sccm 2012 boundary? For one, I'm not sure which prefix I should add. I tried adding a couple prefix ipv6 addresses I seen on the DirectAccess gpo that is autocreated but sccm says invalid. For some