Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 367 results for
layoutmanager
- Page 1
reading collection
Programming
Software Development
12 Years Ago
by loserspearl
…public void srchGUI() { //building of the the frame
LayoutManager
lo; lo = new FlowLayout(); this.setLayout(lo); this…, updtBtn; JList fileList, statusList; public void fileGUI() {
LayoutManager
lo; //building of the the frame lo = new FlowLayout…
Re: ChessBoard help with classes
Programming
Software Development
15 Years Ago
by Alex Edwards
…like he wants to use an inner class as a
LayoutManager
where when you add peices (or move or remove …application it will add to the Panels listed in the
LayoutManager
. Seems like a good idea but your GridChessBoard doesnt implement… It might be a good idea to look up the
LayoutManager
interface to see how the GridChessBoard class can act like…
Re: this is what i want it to fo ...
Programming
Software Development
15 Years Ago
by Alex Edwards
… NOT have any direct implementation of a
LayoutManager
) as a
LayoutManager
. Want to know why? First of all…of those descriptions when you call-- con.setLayout((
LayoutManager
)new GridChessBoard()); --You're casting some inner-class…'m almost certain you can simply call-- setLayout(
LayoutManager
arg); add(Component c); --etc for the …
Help with Menu
Programming
Software Development
15 Years Ago
by msnider9
…awt.geom.*; import java.awt.Insets; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java.awt.…}); } } //creates class for container layout and placement class MortgageLayout implements
LayoutManager
{ public MortgageLayout() {} public void addLayoutComponent(String name, Component comp) {}…
Re: this is what i want it to fo ...
Programming
Software Development
15 Years Ago
by PoovenM
… have any direct implementation of a
LayoutManager
) as a
LayoutManager
.[/QUOTE] There is already a [I]
LayoutManager
[/I] that will allow you to…
Java Swing Problem - won't repaint
Programming
Software Development
15 Years Ago
by VernonDozier
…Panel2 pan2; public PracticePanel (PracticeFrame pracFrame) { pf = pracFrame;
LayoutManager
gl = new GridLayout (2, 1); setLayout (gl); pan1… (); } public void Reset2 (Color color1, Color color2) {
LayoutManager
gl = new GridLayout (2, 1); setLayout (gl); this…
GridBagLayout class problem
Programming
Software Development
13 Years Ago
by Taimoor Rana
… work, I tried type casting [B]JPanel panel = new JPanel((
LayoutManager
) new GridBagLayout());[/B], this give me an error when I….lang.ClassCastException: gridbaglayout.GridBagLayout cannot be cast to java.awt.
LayoutManager
at gridbaglayout.GridBagLayout.main(GridBagLayout.java:21)[/U] What am…
Error
Programming
Software Development
13 Years Ago
by TinyBelly
…quot;,Font.BOLD,30); public bookBatman () { setLayout(null); //set
LayoutManager
// initialized the label jlbName = new JLabel ("Batman : The…String Name,String Date, String Number) { setLayout(null); //set
LayoutManager
jlbWelcome = new JLabel ("Ticket Reservation"); add(jlbWelcome); …
Re: Swing GUI concerns
Programming
Software Development
12 Years Ago
by loserspearl
…static JFrame f = new JFrame("File Search Engine");
LayoutManager
lo; JButton srchBtn, fileBtn, aboutBtn; JLabel titleLbl, srchLbl, infoLbl…ActionListener { static JFrame f = new JFrame("Serach Index");
LayoutManager
lo; JLabel titleLbl, fileLbl, statusLbl, spaceLbl; JButton addBtn, rmvBtn…
Android Native - RecyclerView swipe-to-remove and drag-to-reorder
Programming
Mobile Development
2 Years Ago
by dimitrilc
… app:layout_constraintStart_toStartOf="parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" …app:layout_constraintStart_toStartOf="parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" …
Android Native - How to match sibling in Espresso tests
Programming
Mobile Development
2 Years Ago
by dimitrilc
…quot; android:layout_height="match_parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" app…; android:layout_height="match_parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" app…
Android Native - How to use RecyclerView ConcatAdapter
Programming
Mobile Development
1 Year Ago
by dimitrilc
…quot; android:layout_height="match_parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" app…; android:layout_height="match_parent" app:
layoutManager
="androidx.recyclerview.widget.LinearLayoutManager" app…
Re: ChrssBoard: the specifics
Programming
Software Development
15 Years Ago
by VernonDozier
… in this line in your ChessBoard () constructor. [code] con.setLayout((
LayoutManager
)new GridChessBoard()); [/code] The error is this: [code] Exception in….ClassCastException: chessbuard.ChessBoard$GridChessBoard cannot be cast to java.awt.
LayoutManager
[/code] I'm not sure what you are trying to…
Re: Divide this code up into different .java files please!!
Programming
Software Development
13 Years Ago
by musikluver4
…java.awt.Dimension; import java.awt.Insets; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java.awt.event.…,770); nFrame.setLocation(600,200); } } //Layout manager class LoanLayout implements
LayoutManager
{ public LoanLayout() { } public void addLayoutComponent(String name, Component comp) { } …
Re: GridBagLayout class problem
Programming
Software Development
13 Years Ago
by Taimoor Rana
….setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel((
LayoutManager
) new GridBagLayout()); frame.add(panel); GridBagConstraints c = new GridBagConstraints(); JLabel…
Re: GridBagLayout class problem
Programming
Software Development
13 Years Ago
by ztini
… something else. You will also not need to cast the
LayoutManager
, so change your JPanel to: " JPanel panel = new JPanel…
Re: JScrollpane not working properly
Programming
Software Development
9 Years Ago
by mKorbel
… import java.awt.GridLayout; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java…new ActionListener() { @Override public void actionPerformed(ActionEvent e) {
LayoutManager
manager = parentPanel.getLayout(); if ((manager != null) &&…
Determining correct size of JDesktopPane
Programming
Software Development
18 Years Ago
by Postal Elf
… the JDesktopPane is being changed before getting passed to the
LayoutManager
. If I recall correctly, Java passes objects by reference. My…
Delete button not working on my Java GUI Inventory
Programming
Software Development
16 Years Ago
by ITAutobot25
… java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java.awt.event.ActionListener…
Creating a "Data" folder in my C: Drive using my Java program
Programming
Software Development
16 Years Ago
by ITAutobot25
… java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java.awt.event.ActionListener…
Re: Creating a "Data" folder in my C: Drive using my Java program
Programming
Software Development
16 Years Ago
by ITAutobot25
… java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.
LayoutManager
; import java.awt.event.ActionEvent; import java.awt.event.ActionListener…
ChessBoard help with classes
Programming
Software Development
15 Years Ago
by beelzibub
…(800, 800); GridChessBoard brd = new GridChessBoard(); con = getContentPane(); con.setLayout((
LayoutManager
)brd ); con.addMouseListener(this); con.addMouseMotionListener(this); label = new JLabel…
ChrssBoard: the specifics
Programming
Software Development
15 Years Ago
by beelzibub
…(800, 800); //GridChessBoard brd = new GridChessBoard(); con = getContentPane(); con.setLayout((
LayoutManager
)new GridChessBoard()); con.addMouseListener(this); con.addMouseMotionListener(this); label = new…
this is what i want it to fo ...
Programming
Software Development
15 Years Ago
by beelzibub
…); Dimension boardSize = new Dimension(800, 800); con = getContentPane(); con.setLayout((
LayoutManager
)new GridChessBoard()); con.addMouseListener(this); con.addMouseMotionListener(this); label = new…
help with diagnosis (if i'm right???
Programming
Software Development
15 Years Ago
by beelzibub
…); Dimension boardSize = new Dimension(800, 800); con = getContentPane(); con.setLayout((
LayoutManager
)new GridChessBoard()); con.addMouseListener(this); con.addMouseMotionListener(this); label = new…
Re: help with diagnosis (if i'm right???
Programming
Software Development
15 Years Ago
by Alex Edwards
…, you're still trying to cast a GridChessBoard as a
LayoutManager
. It seems you fail to understand why you're getting…
Re: help with diagnosis (if i'm right???
Programming
Software Development
15 Years Ago
by beelzibub
…, you're still trying to cast a GridChessBoard as a
LayoutManager
. It seems you fail to understand why you're getting…
How do you save a JPanel as a GIF file?
Programming
Software Development
15 Years Ago
by VernonDozier
…; this.setBackground(Color.RED); this.setPreferredSize(new Dimension(600, 100));
LayoutManager
lm = new GridLayout(1, 2); drawButton = new JButton ("Draw…
Link Help Menu to HTML pages
Programming
Software Development
15 Years Ago
by VernonDozier
…[]) { new HelpMain (); } public HelpMain () { panel1 = new JPanel (); panel2 = new JPanel ();
LayoutManager
lm = new GridLayout (2,1); setLayout(lm); panel1.setBackground(Color…
Re: Link Help Menu to HTML pages
Programming
Software Development
15 Years Ago
by Ezzaral
…[]) { new HelpMain(); } public HelpMain() { panel1 = new JPanel (); panel2 = new JPanel ();
LayoutManager
lm = new GridLayout (2,1); setLayout(lm); panel1.setBackground(Color…
1
2
3
7
Next
Last
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