Click here to Skip to main content
15,899,026 members
Home / Discussions / Java
   

Java

 
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 
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 
Here is how I see it can be simplified ,and still the problem exists.


Java
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.UIManager;

public class Mainframe extends JFrame
{	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JTabbedPane tabbedPane = new JTabbedPane();
    JPanel jp1 = new JPanel();    
    JPanel Firstpanel = new JPanel();
    static JFrame frame = new JFrame("Create Company");    
    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()
	{	
		
				
		BufferedImage myPicture = null;
		try
		{			
			myPicture = ImageIO.read(new File("FINAL.jpg"));
		} 
		catch (IOException e1)
		{
			
			e1.printStackTrace();
		}		
		
		JLabel lbl = new JLabel(new ImageIcon(myPicture));		
		frame.add(tabbedPane);
		jp1.add(Firstpanel,BorderLayout.SOUTH);
		tabbedPane.addTab("New Employer",jp1);		
		Firstpanel.add(button1);
		Firstpanel.add(button2);
		Firstpanel.add(button3);
		
		}
	public static void main(String[] args) 
	{
		frame.setPreferredSize(new Dimension(1500, 1210));
        
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.pack();
        frame.setResizable(true);
        frame.setVisible(true);
		new Mainframe();
		// TODO Auto-generated method stub

	}

}

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 
AnswerRe: SVM implementation in JAVA Pin
jschell30-Sep-13 8:33
jschell30-Sep-13 8:33 
QuestionGet & Set Pin
Shuvo Sarker29-Sep-13 10:32
professionalShuvo Sarker29-Sep-13 10:32 

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.