If you're just looking to see how to create JLabel's dynamically, you're close, although the snippet of code you posted in a comment has several errors in it. Here's a similar example to your code.
If you're just looking to see how to create JLabel's dynamically, you're close, although the snippet of code you posted in a comment has several errors in it. Here's a similar example to your code: import javax.swing. *; public class Jpl extends JPanel { public static final String LABEL_TEXT = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; public Jpl() { for (int I = 0; I Length; i++) { JLabel lbl = new JLabel(); lbl.
SetText(LABEL_TEXTi); add(lbl); } } private static void createAndShowUI() { JFrame frame = new JFrame("Jpl"); frame.getContentPane(). Add(new Jpl()); frame. SetDefaultCloseOperation(JFrame.
EXIT_ON_CLOSE); frame.pack(); frame. SetLocationRelativeTo(null); frame. SetVisible(true); } public static void main(String args) { java.awt.EventQueue.
InvokeLater(new Runnable() { public void run() { createAndShowUI(); } }); } } If on the other hand, you're trying to create your own class that extends from JLabel that you can put in the NetBeans GUI-builder palette, then things will be a bit more difficult. Edit: but not impossible. Custom components can be added via NetBeans Palette Manager.
For more on this, please check this link: Creating GUIs with NetBeans Check the section on Custom Components.
Yes I want to to put dynamic created Jlabel in Netbeans gui builder I am unable to that. – Qaiser Mehmood Feb 6 at 3:23 Please see edit to my post above on creating custom components and adding to NetBeans matisse's component palette. – Hovercraft Full Of Eels Feb 6 at 4:13 Thanks its Done.
– Qaiser Mehmood Feb 6 at 5:10 great, congrats! – Hovercraft Full Of Eels Feb 6 at 5:20.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.