Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 44 results for
springlayout
- Page 1
Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by Doogledude123
… 5,
SpringLayout
.WEST, contentPane);
springLayout
.putConstraint(
SpringLayout
.NORTH, entryList, 5,
SpringLayout
.NORTH, contentPane); //
springLayout
.putConstraint(
SpringLayout
.SOUTH, entryList, 35,
SpringLayout
.SOUTH, contentPane);
springLayout
.putConstraint(
SpringLayout
.NORTH, addButton, 5,
SpringLayout
.SOUTH…
JFrame & SpringLayout problem.
Programming
Software Development
15 Years Ago
by new_2_java
…, this); sp.putConstraint(
SpringLayout
.WEST, txtUserName, 5,
SpringLayout
.EAST, lblUserName); sp.putConstraint(
SpringLayout
.NORTH, txtUserName, 20,
SpringLayout
.NORTH, this); sp.putConstraint(
SpringLayout
.WEST, lblPassword, 70…
Re: A question on an error in a SpringLayout example program
Programming
Software Development
18 Years Ago
by johnroach1985
…Constraints getConstraintsForCell( int row, int col, Container parent, int cols) {
SpringLayout
layout = (
SpringLayout
) parent.getLayout(); Component c = parent.getComponent(row * cols + col…
A question on an error in a SpringLayout example program
Programming
Software Development
18 Years Ago
by johnroach1985
… symbol variable springutilities [CODE] /* * A 1.4 application that uses
SpringLayout
to create a forms-type layout. * Other files required: SpringUtilities…; //Create and populate the panel. JPanel p = new JPanel(new
SpringLayout
()); for (int i = 0; i < numPairs; i++) { JLabel l…
The method addActionListener(SpringSample) is undefined for the type Compon
Programming
Software Development
10 Years Ago
by chdboy
…); Container contentPane = frame.getContentPane(); JPanel p = new JPanel(new
SpringLayout
());
SpringLayout
layout = (new
SpringLayout
()); contentPane.setLayout(layout); JPanel p1=new JPanel(); Component F_namelbl…
"Yes or No" .. please DeBug it..
Programming
Software Development
14 Years Ago
by MonicaClare
… getConstraintsForCell( int row, int col, Container parent, int cols) {
SpringLayout
layout = (
SpringLayout
) parent.getLayout(); Component c = parent.getComponent(row * cols + col…
Re: "Yes or No" .. please DeBug it..
Programming
Software Development
14 Years Ago
by oliver_lundag
… getConstraintsForCell( int row, int col, Container parent, int cols) {
SpringLayout
layout = (
SpringLayout
) parent.getLayout(); Component c = parent.getComponent(row * cols + col…
Help with rectangle
Programming
Software Development
10 Years Ago
by ronnel09_2
…;dominobg.jpg")); JTextArea instArea = new JTextArea(5,22);
SpringLayout
layout = new
SpringLayout
(); public void startMenu() { mainFrame.setLocationRelativeTo(null); mainFrame.setSize(screenSize…
GUI Layout Manager
Programming
Software Development
6 Years Ago
by John_165
…javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.
SpringLayout
; import javax.swing.SwingUtilities; public class OrderPage extends JPanel … Create and populate the panel. JPanel p = new JPanel(new
SpringLayout
()); JPanel p1 = new JPanel(new BorderLayout()); JButton button = new…
Re: GUI Layout Manager
Programming
Software Development
6 Years Ago
by JamesCherrill
… for anything but the simplest of requirements *except* GridBagLayout and
SpringLayout
.
SpringLayout
was designed specifically to support drag'n'drop GUI builders…
JSpinner mouse event
Programming
Software Development
16 Years Ago
by 71monaro
…; private JSpinner spinner; public NewSpinner(final boolean cycleObjects) { super(new
SpringLayout
()); final String[]label = {"Variable1: "};//, "Variable2: "}; final…
Re: Java Applet
Programming
Software Development
14 Years Ago
by kinger29
…(ActionEvent e) { process_eucl(); } }); eucl_layout.putConstraint(
SpringLayout
.WEST, eucl_submit, 5,
SpringLayout
.NORTH, content); eucl_layout.putConstraint(
SpringLayout
.NORTH, eucl_submit, 105,
SpringLayout
.NORTH, content); euclPanel.add(eucl_submit…
Re: How to get date stored in database and display it in jdatepicker
Programming
Software Development
8 Years Ago
by Sandeep_13
…;MODIFY");
springLayout
.putConstraint(
SpringLayout
.NORTH, btnAdd, 0,
SpringLayout
.NORTH, btnModify);
springLayout
.putConstraint(
SpringLayout
.EAST, btnAdd, -23,
SpringLayout
.WEST, btnModify);
springLayout
.putConstraint(
SpringLayout
.WEST, btnModify, 202,
SpringLayout
.WEST, frame…
Re: layout manager, which one?
Programming
Software Development
10 Years Ago
by JamesCherrill
… go to one of the heavy-duty managers - GridBagLayout or
SpringLayout
.
SpringLayout
was designed for use by visual form editors, so GridBagLayout…
Re: Java IDE(s)
Programming
Software Development
16 Years Ago
by Ezzaral
… read than any other complex layout code. GridBagLayout, GroupLayout, and
SpringLayout
do involve quite a bit of code and the GUI…
Re: Need Help
Programming
Software Development
12 Years Ago
by StephNicolaou
… the below layouts: BorderLayout BoxLayout CardLayout FlowLayout GridBagLayout GridLayout GroupLayout
SpringLayout
[url]http://docs.oracle.com/javase/tutorial/uiswing/layout/visual…
Re: Java GUI menu problem
Programming
Software Development
12 Years Ago
by StephNicolaou
… below GUI layouts: BorderLayout BoxLayout CardLayout FlowLayout GridBagLayout GridLayout GroupLayout
SpringLayout
[url]http://docs.oracle.com/javase/tutori...ut/visual.html…
Re: Trying to create FlowLayout, unknown error.
Programming
Software Development
11 Years Ago
by mKorbel
….com/javase/tutorial/uiswing/concurrency/initial.html) - change FlowLayout to [
SpringLayout
](http://docs.oracle.com/javase/tutorial/uiswing/layout/spring.html…
Re: Trying to create FlowLayout, unknown error.
Programming
Software Development
11 Years Ago
by abders
…, thanks for that tip. I don't know what the
Springlayout
would do, since I couldn't implement it correctly, but…
Re: Creating a Table in a Table
Programming
Software Development
10 Years Ago
by mKorbel
… about used LayoutManager for posts to forums, have to use
SpringLayout
, resp, GBC for input data)
Re: a JTextArea question
Programming
Software Development
10 Years Ago
by mKorbel
… childs, with some isn't possible (FLowLayout), or settable (GridLayout,
SpringLayout
, MigLayout) - most of LayoutManagers accepts only PreferredSize, relayout (runtime) is…
Re: How to get date stored in database and display it in jdatepicker
Programming
Software Development
8 Years Ago
by mKorbel
…), - every good JDatePickers/JCalendar has own FAQs with code examples -
SpringLayout
isn't good LayoutManager for newbee - (major issue) don't…
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by Doogledude123
Is there another Layout that I can use that would work? I'm not great with Layouts. I did try a GridBagLayout but it's not ideal.
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by JamesCherrill
I've always used GridBagLayout and it's never let me down. What's "not ideal" about it for your application?
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by Doogledude123
I wanted something like the picture of the "Name Chooser" GUI only with a Vertical JList from [List Tutorial from Oracle](https://docs.oracle.com/javase/tutorial/uiswing/components/list.html). Not sure how to accomplish the layout of that using GridBagLayout. Also, when I use GridBagLayout, it always displays the components in the middle…
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by JamesCherrill
For things to be scaled/filled properly you need to specify the weights, otherwize it assumes 0 and groups them all at minimum size in the center.
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by Doogledude123
Alright, I fixed that. However, still not sure what to do about the "pushing" the buttons over to the right.
Re: Apparently this isn't how to use a SpringLayout
Programming
Software Development
8 Years Ago
by JamesCherrill
Anchor RIGHT
Re: JFrame & SpringLayout problem.
Programming
Software Development
15 Years Ago
by bionicseraph
Try using bigger numbers in set size. 10x20 pixels will give you a really small window.
Re: JFrame & SpringLayout problem.
Programming
Software Development
15 Years Ago
by new_2_java
That's what I thaught. But, no matter which number I try, I get the same size. I tried with setSize(200, 300); still the same size. So, I am thinking, I may be doing something wrong. Please advise...
1
2
Next
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC