Click here to Skip to main content
15,888,212 members
Home / Discussions / Java
   

Java

 
GeneralRe: about java socket Pin
Richard MacCutchan13-Oct-13 4:53
mveRichard MacCutchan13-Oct-13 4:53 
GeneralRe: about java socket Pin
jschell14-Oct-13 8:00
jschell14-Oct-13 8:00 
QuestionImage transfer using TCP/IP Pin
Claraviolet10-Oct-13 5:22
Claraviolet10-Oct-13 5:22 
AnswerRe: Image transfer using TCP/IP Pin
Richard MacCutchan10-Oct-13 6:18
mveRichard MacCutchan10-Oct-13 6:18 
GeneralRe: Image transfer using TCP/IP Pin
Albert Holguin15-Oct-13 14:48
professionalAlbert Holguin15-Oct-13 14:48 
GeneralRe: Image transfer using TCP/IP Pin
Richard MacCutchan15-Oct-13 21:18
mveRichard MacCutchan15-Oct-13 21:18 
AnswerRe: Image transfer using TCP/IP Pin
Logical9416-Oct-13 19:04
professionalLogical9416-Oct-13 19:04 
QuestionAdding more than one JPanel to my JFrame(North,South) Pin
chdboy7-Oct-13 18:02
chdboy7-Oct-13 18:02 
I want to add two Jpanel on my tabbed pane ,one should be in south with buttons,and other should be in north where I have Text fields and Labels.
My problem is that the buttons on container Jpanel is not showing in south.
Here is the code:


Java
public class Mainframe extends JFrame
{	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JTabbedPane tabbedPane = new JTabbedPane();
    JPanel jp1 = new JPanel();    
    JPanel container = new JPanel();
    JFrame frame = new JFrame("TEST");     
    JButton button1 = new JButton("Button 1");
    JButton button2 = new JButton("Button 2");
    JButton button3 = new JButton("Button 3");
    JButton button4 = new JButton("Button 4");
    JButton button5 = new JButton("Button 5");
	/**
	 * @param args
	 */
	private Mainframe()
	{	
		
		Container contentPane = getContentPane();
		container.setLayout(new FlowLayout());				
		BufferedImage myPicture = null;
		try
		{			
			myPicture = ImageIO.read(new File("FINAL.jpg"));
		} 
		catch (IOException e1)
		{
			
			e1.printStackTrace();
		}		
		
		JLabel lbl = new JLabel(new ImageIcon(myPicture));		
		container.add(lbl);
		container.add(button1);
		container.add(button2);
		container.add(button3);
		container.add(button4);
		container.add(button5);
		jp1.add(container,BorderLayout.SOUTH);
                frame.add(tabbedPane);
		tabbedPane.addTab("First Tab",jp1);	
	frame.setPreferredSize(new Dimension(1500, 1210));

        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.pack();
        frame.setResizable(true);
        frame.setVisible(true);

}
}

SuggestionRe: Adding more than one JPanel to my JFrame(North,South) Pin
Richard MacCutchan7-Oct-13 21:31
mveRichard MacCutchan7-Oct-13 21:31 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
chdboy9-Oct-13 1:13
chdboy9-Oct-13 1:13 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
Shubhashish_Mandal9-Oct-13 3:15
professionalShubhashish_Mandal9-Oct-13 3:15 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
chdboy9-Oct-13 19:04
chdboy9-Oct-13 19:04 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
Richard MacCutchan9-Oct-13 4:24
mveRichard MacCutchan9-Oct-13 4:24 
GeneralRe: Adding more than one JPanel to my JFrame(North,South) Pin
chdboy9-Oct-13 19:03
chdboy9-Oct-13 19:03 
QuestionProblem On SQL Server driver Configuration in JDeveloper Pin
AMADIAR3-Oct-13 5:38
AMADIAR3-Oct-13 5:38 
SuggestionRe: Problem On SQL Server driver Configuration in JDeveloper Pin
Richard MacCutchan3-Oct-13 21:26
mveRichard MacCutchan3-Oct-13 21:26 
SuggestionRe: Problem On SQL Server driver Configuration in JDeveloper Pin
Prasad Khandekar8-Oct-13 4:07
professionalPrasad Khandekar8-Oct-13 4:07 
QuestionUsing the Observer and Observable Class Pin
Ryan Little30-Sep-13 16:26
Ryan Little30-Sep-13 16:26 
AnswerRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal30-Sep-13 22:31
professionalShubhashish_Mandal30-Sep-13 22:31 
QuestionRe: Using the Observer and Observable Class Pin
Ryan Little1-Oct-13 3:11
Ryan Little1-Oct-13 3:11 
AnswerRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal1-Oct-13 3:38
professionalShubhashish_Mandal1-Oct-13 3:38 
GeneralRe: Using the Observer and Observable Class Pin
Ryan Little1-Oct-13 7:29
Ryan Little1-Oct-13 7:29 
GeneralRe: Using the Observer and Observable Class Pin
Shubhashish_Mandal2-Oct-13 22:26
professionalShubhashish_Mandal2-Oct-13 22:26 
GeneralRe: Using the Observer and Observable Class Pin
angrybobcat7-Oct-13 20:55
angrybobcat7-Oct-13 20:55 
QuestionSVM implementation in JAVA Pin
Member 1030559829-Sep-13 18:07
Member 1030559829-Sep-13 18:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.