Setting up E3200 for TV Flux
Hi all,
I do have a problem setting up the above mentioned router with my French Internet/TV provider.
The French Internet/TV access is provided through, what they call "Freebox". I have the v6 version, which exists of 2 parts, a server and a player. The server is equiped with 4 Ethernet ports and has a build-in NAS of 250 GB for storing and accessible for everybody on out home network. The server is connected via Ethernet to the player, which in turn is connected via hdmi to my TV.
In order to extend my network, I used an old Belkin 54g Wi-Fi router without a problem. Since the wi-fi died on the Belkin, I replaced it by the E3200.
I also want to use the wireless capabilities of the E3200 in our living room.
Internet access, through cable and/or Wi-Fi works without a problem with this setup. The only problem is: I don't have access to the TV channels. I am getting a popup on my TV saying that the Ethernet cable is disconnected! The cable is fine since it works with my Belkin.
The configuration is the following:
ADSL cable to the Freebox server => port 1 connected to port 1 of the E3200 via a crossover cable => port 2 of the E3200 connected via a straight cable to the freebox player => hdmi cable between player and TV
Asking around, it seems that the Freebox server is using an encrypted VLAN100 connection to the player for TV channels. The problem must be there. But I don't have a clue how to setup a port - if possible - to handle the TV flux.
I know a bit about hardware what concenrs pc's, but my knowledge about networking and addressing ports is rather poor.
What I did so far is the following:
Since the Freebox server has its IP set at 192.168.0.254, I setup my E3200 at 192.168.0.5 with sub mask 255.255.255.0 and disabled DHCP. As I said before, it works for internet and connecting laptops through the router ports. But my knowledge stops there.
What I would like to know if it is possible, and, if so, somebody could help me setting up/directing one port in a VLAN mode in order to get access to my TV channels and leave the other ports for normal internet access. Just a small tuto with an example would do.
Thank you in advance for any help,
Eddy
If you want to setup the Linksys E3200 as a secondary router, set it to Bridge Mode. Also make sure the cord the Ethernet cord on the TV is properly connected because that might be the issue. The TV wouldn’t say “Network Cable Unplugged” if it is properly connected. Follow the steps on the following link to know how to set the router to Bridge Mode. The example is for a different Linksys device but it applies the same process.
Setting up your Linksys Router to Bridge Mode
Similar Messages
-
I have been given permission for unlocking my iphone 3 GS from Orange. I want to set up the phone for my wife to use with a new number and carrier. Do I unlock under my itunes account first ( I now have a new iphone on this account) or set one up for her and then unlock the phone. I am worried about upsetting the new phone.
I would complete unlocking as is and then
restore as new once you know the iPhone is unlocked
Be aware Orange will process the request at their speed
one of the reasons they usually reside at bottom of User Sat surveys
will likely take weeks
This may also help
http://support.apple.com/kb/HT5014 -
How to set Compatibility Mode for a single site in ie10
This question was originally posted on the Answers forum -
http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
Using a different example to explain the issue -
Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
The only thing the three website share is the URL contains 'microsoft.com'.
Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode.
Should you be able to add an individual site to the compatibility list instead of all sites that have .microsoft.com in the URL? Am I missing a simple setting in the ie10?
As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation.problem is not solved for non corporate environments...
You could start your own thread. Then if you got that answer and it was marked Answered you would have the ability to unmark it. The OP of this one seems satisfied. Also note that this is TechNet. Consumers can get help on Answers
forums.
Robert Aldwinckle
Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
Regards
/Aldus -
How to set up database for form application in app. server 10g r2
Hi Friends and Bgrant.
I get user compiled fmb file.
I did not find componant in app. server.
However, I can see form server ment with 3 subitem : form compiler, formmigration and run form on the web.
The form application is supported by database. Other person already configured server for application .
I put a URL in URL field in run form on the web. I can see install ed successfully! Oracle application Server. Forme server. Oracle application server 10g. title: welcome oracle application server
after clicked OK button, the page is grey blank without any inforamtion to be displayed. No error message. status bottome as done. the page title as Oracle application server form server.
SO I think that i need to creade a datasource in app. server.
But I do not know how to fill field.
I can log into database from SQL*plus in server PC.
In datasource page in app. server: i copy a default ORCALEDS information
with new ID and password. it does not work
hereData Source Class:
JDBC URL :
JDBC Driver:
Location
Transactional(XA) Location
EJB Location
Thanks for any help!!
jimThanks for help!
I fixed issue of database connection with new issue.
Only display first form setting (first URL) for 4 different URL
URL:
http://salerpt.com/forms/frmservlet?config=emis-srmenu
fmx file Location as C:\OraMid\forms\salerpt-Forms fmx name as srmenu.fmx in same directory
fmb file location as C:\OraMid\forms\salerpt-Forms_source fmx name as srmenu.fmb in same directory
# Single Sign-On OID configuration parameter
oracle_home=C:\OraMid
in formweb.cfg file
baseHTMLjinitiator=basejini.htm
workingDirector : workingDirectory= blank. but C:\OraMid\forms\salerpt-Forms right now
# Forms runtime argument: which form module to run
##form=test.fmx
## i moved bottom section of form section in here and before
line as Forms runtime argument: database connection details
comment two line
#jinit_exename=jinit.exe
#jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
I create 4 sections as
form=srmenu.fmx
width=1200
height=700
pageTitle=Sale Information System (SIS)
form=xxxx
net 3 form setting
However it only display one form interface that i put in( 4 different URL. only display first URL)
It seems that one formsweb.cfg, it doesn not support multip form application.
I have 4 small forms application with 4 URL for one formsweb.cfg.
What should I need to do?
I am waiting for your help!
JIm
Edited by: user589812 on Nov 24, 2008 1:49 PM -
How do I set proxy settings for a Java app behind a corporate server?
I have the source code of a Download Manager program written in Java. It has to be run within my college network in which we use the "Corporate Client" server to access the internet. The HTTP proxy is 172.16.68.6 and Port number is 3128. How do I define these parameters in my java program so that it can download files from the internet?
The source code for the program is:
There are four classes:
1. DownloadManager.java
2. Download.java
3. DownloadTable.java
4. ProgressRenderer.java
/*__DownloadManager.java__*/
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
// The Download Manager.
public class DownloadManager extends JFrame
implements Observer {
// Add download text field.
private JTextField addTextField;
// Download table's data model.
private DownloadsTableModel tableModel;
// Table listing downloads.
private JTable table;
// These are the buttons for managing the selected download.
private JButton pauseButton, resumeButton;
private JButton cancelButton, clearButton;
// Currently selected download.
private Download selectedDownload;
// Flag for whether or not table selection is being cleared.
private boolean clearing;
// Constructor for Download Manager.
public DownloadManager() {
// Set application title.
setTitle("Download Manager");
// Set window size.
setSize(640, 480);
// Handle window closing events.
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
actionExit();
// Set up file menu.
JMenuBar menuBar = new JMenuBar();
JMenu fileMenu = new JMenu("File");
fileMenu.setMnemonic(KeyEvent.VK_F);
JMenuItem fileExitMenuItem = new JMenuItem("Exit",
KeyEvent.VK_X);
fileExitMenuItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionExit();
fileMenu.add(fileExitMenuItem);
menuBar.add(fileMenu);
setJMenuBar(menuBar);
// Set up add panel.
JPanel addPanel = new JPanel();
addTextField = new JTextField(30);
addPanel.add(addTextField);
JButton addButton = new JButton("Add Download");
addButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionAdd();
addPanel.add(addButton);
// Set up Downloads table.
tableModel = new DownloadsTableModel();
table = new JTable(tableModel);
table.getSelectionModel().addListSelectionListener(new
ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
tableSelectionChanged();
// Allow only one row at a time to be selected.
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
// Set up ProgressBar as renderer for progress column.
ProgressRenderer renderer = new ProgressRenderer(0, 100);
renderer.setStringPainted(true); // show progress text
table.setDefaultRenderer(JProgressBar.class, renderer);
// Set table's row height large enough to fit JProgressBar.
table.setRowHeight(
(int) renderer.getPreferredSize().getHeight());
// Set up downloads panel.
JPanel downloadsPanel = new JPanel();
downloadsPanel.setBorder(
BorderFactory.createTitledBorder("Downloads"));
downloadsPanel.setLayout(new BorderLayout());
downloadsPanel.add(new JScrollPane(table),
BorderLayout.CENTER);
// Set up buttons panel.
JPanel buttonsPanel = new JPanel();
pauseButton = new JButton("Pause");
pauseButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionPause();
pauseButton.setEnabled(false);
buttonsPanel.add(pauseButton);
resumeButton = new JButton("Resume");
resumeButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionResume();
resumeButton.setEnabled(false);
buttonsPanel.add(resumeButton);
cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionCancel();
cancelButton.setEnabled(false);
buttonsPanel.add(cancelButton);
clearButton = new JButton("Clear");
clearButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
actionClear();
clearButton.setEnabled(false);
buttonsPanel.add(clearButton);
// Add panels to display.
getContentPane().setLayout(new BorderLayout());
getContentPane().add(addPanel, BorderLayout.NORTH);
getContentPane().add(downloadsPanel, BorderLayout.CENTER);
getContentPane().add(buttonsPanel, BorderLayout.SOUTH);
// Exit this program.
private void actionExit() {
System.exit(0);
// Add a new download.
private void actionAdd() {
URL verifiedUrl = verifyUrl(addTextField.getText());
if (verifiedUrl != null) {
tableModel.addDownload(new Download(verifiedUrl));
addTextField.setText(""); // reset add text field
} else {
JOptionPane.showMessageDialog(this,
"Invalid Download URL", "Error",
JOptionPane.ERROR_MESSAGE);
// Verify download URL.
private URL verifyUrl(String url) {
// Only allow HTTP URLs.
if (!url.toLowerCase().startsWith("http://"))
return null;
// Verify format of URL.
URL verifiedUrl = null;
try {
verifiedUrl = new URL(url);
} catch (Exception e) {
return null;
// Make sure URL specifies a file.
if (verifiedUrl.getFile().length() < 2)
return null;
return verifiedUrl;
// Called when table row selection changes.
private void tableSelectionChanged() {
/* Unregister from receiving notifications
from the last selected download. */
if (selectedDownload != null)
selectedDownload.deleteObserver(DownloadManager.this);
/* If not in the middle of clearing a download,
set the selected download and register to
receive notifications from it. */
if (!clearing) {
selectedDownload =
tableModel.getDownload(table.getSelectedRow());
selectedDownload.addObserver(DownloadManager.this);
updateButtons();
// Pause the selected download.
private void actionPause() {
selectedDownload.pause();
updateButtons();
// Resume the selected download.
private void actionResume() {
selectedDownload.resume();
updateButtons();
// Cancel the selected download.
private void actionCancel() {
selectedDownload.cancel();
updateButtons();
// Clear the selected download.
private void actionClear() {
clearing = true;
tableModel.clearDownload(table.getSelectedRow());
clearing = false;
selectedDownload = null;
updateButtons();
/* Update each button's state based off of the
currently selected download's status. */
private void updateButtons() {
if (selectedDownload != null) {
int status = selectedDownload.getStatus();
switch (status) {
case Download.DOWNLOADING:
pauseButton.setEnabled(true);
resumeButton.setEnabled(false);
cancelButton.setEnabled(true);
clearButton.setEnabled(false);
break;
case Download.PAUSED:
pauseButton.setEnabled(false);
resumeButton.setEnabled(true);
cancelButton.setEnabled(true);
clearButton.setEnabled(false);
break;
case Download.ERROR:
pauseButton.setEnabled(false);
resumeButton.setEnabled(true);
cancelButton.setEnabled(false);
clearButton.setEnabled(true);
break;
default: // COMPLETE or CANCELLED
pauseButton.setEnabled(false);
resumeButton.setEnabled(false);
cancelButton.setEnabled(false);
clearButton.setEnabled(true);
} else {
// No download is selected in table.
pauseButton.setEnabled(false);
resumeButton.setEnabled(false);
cancelButton.setEnabled(false);
clearButton.setEnabled(false);
/* Update is called when a Download notifies its
observers of any changes. */
public void update(Observable o, Object arg) {
// Update buttons if the selected download has changed.
if (selectedDownload != null && selectedDownload.equals(o))
updateButtons();
// Run the Download Manager.
public static void main(String[] args) {
DownloadManager manager = new DownloadManager();
manager.show();
This example shows how to create a simple download manager in Java. It contains four classes in foru Java source files:
Download.java: Contains Download class which downloads a file from a URL.
DownloadManager.java: Contains the main class for download manager application.
DownloadsTableModel.java: Contains the class which manages the download table's data.
ProgressRenderer.java: Contains the class which is responsible to render a JProgressBar in a table cell.
The contents of the listed files are written below.
/*__Download.java__*/
import java.io.*;
import java.net.*;
import java.util.*;
// This class downloads a file from a URL.
class Download extends Observable implements Runnable {
// Max size of download buffer.
private static final int MAX_BUFFER_SIZE = 1024;
// These are the status names.
public static final String STATUSES[] = {"Downloading",
"Paused", "Complete", "Cancelled", "Error"};
// These are the status codes.
public static final int DOWNLOADING = 0;
public static final int PAUSED = 1;
public static final int COMPLETE = 2;
public static final int CANCELLED = 3;
public static final int ERROR = 4;
private URL url; // download URL
private int size; // size of download in bytes
private int downloaded; // number of bytes downloaded
private int status; // current status of download
// Constructor for Download.
public Download(URL url) {
this.url = url;
size = -1;
downloaded = 0;
status = DOWNLOADING;
// Begin the download.
download();
// Get this download's URL.
public String getUrl() {
return url.toString();
// Get this download's size.
public int getSize() {
return size;
// Get this download's progress.
public float getProgress() {
return ((float) downloaded / size) * 100;
// Get this download's status.
public int getStatus() {
return status;
// Pause this download.
public void pause() {
status = PAUSED;
stateChanged();
// Resume this download.
public void resume() {
status = DOWNLOADING;
stateChanged();
download();
// Cancel this download.
public void cancel() {
status = CANCELLED;
stateChanged();
// Mark this download as having an error.
private void error() {
status = ERROR;
stateChanged();
// Start or resume downloading.
private void download() {
Thread thread = new Thread(this);
thread.start();
// Get file name portion of URL.
private String getFileName(URL url) {
String fileName = url.getFile();
return fileName.substring(fileName.lastIndexOf('/') + 1);
// Download file.
public void run() {
RandomAccessFile file = null;
InputStream stream = null;
try {
// Open connection to URL.
HttpURLConnection connection =
(HttpURLConnection) url.openConnection();
// Specify what portion of file to download.
connection.setRequestProperty("Range",
"bytes=" + downloaded + "-");
// Connect to server.
connection.connect();
// Make sure response code is in the 200 range.
if (connection.getResponseCode() / 100 != 2) {
error();
// Check for valid content length.
int contentLength = connection.getContentLength();
if (contentLength < 1) {
error();
/* Set the size for this download if it
hasn't been already set. */
if (size == -1) {
size = contentLength;
stateChanged();
// Open file and seek to the end of it.
file = new RandomAccessFile(getFileName(url), "rw");
file.seek(downloaded);
stream = connection.getInputStream();
while (status == DOWNLOADING) {
/* Size buffer according to how much of the
file is left to download. */
byte buffer[];
if (size - downloaded > MAX_BUFFER_SIZE) {
buffer = new byte[MAX_BUFFER_SIZE];
} else {
buffer = new byte[size - downloaded];
// Read from server into buffer.
int read = stream.read(buffer);
if (read == -1)
break;
// Write buffer to file.
file.write(buffer, 0, read);
downloaded += read;
stateChanged();
/* Change status to complete if this point was
reached because downloading has finished. */
if (status == DOWNLOADING) {
status = COMPLETE;
stateChanged();
} catch (Exception e) {
error();
} finally {
// Close file.
if (file != null) {
try {
file.close();
} catch (Exception e) {}
// Close connection to server.
if (stream != null) {
try {
stream.close();
} catch (Exception e) {}
// Notify observers that this download's status has changed.
private void stateChanged() {
setChanged();
notifyObservers();
/*__DownloadTableModel.java__*/
import java.util.*;
import javax.swing.*;
import javax.swing.table.*;
// This class manages the download table's data.
class DownloadsTableModel extends AbstractTableModel
implements Observer {
// These are the names for the table's columns.
private static final String[] columnNames = {"URL", "Size",
"Progress", "Status"};
// These are the classes for each column's values.
private static final Class[] columnClasses = {String.class,
String.class, JProgressBar.class, String.class};
// The table's list of downloads.
private ArrayList downloadList = new ArrayList();
// Add a new download to the table.
public void addDownload(Download download) {
// Register to be notified when the download changes.
download.addObserver(this);
downloadList.add(download);
// Fire table row insertion notification to table.
fireTableRowsInserted(getRowCount() - 1, getRowCount() - 1);
// Get a download for the specified row.
public Download getDownload(int row) {
return (Download) downloadList.get(row);
// Remove a download from the list.
public void clearDownload(int row) {
downloadList.remove(row);
// Fire table row deletion notification to table.
fireTableRowsDeleted(row, row);
// Get table's column count.
public int getColumnCount() {
return columnNames.length;
// Get a column's name.
public String getColumnName(int col) {
return columnNames[col];
// Get a column's class.
public Class getColumnClass(int col) {
return columnClasses[col];
// Get table's row count.
public int getRowCount() {
return downloadList.size();
// Get value for a specific row and column combination.
public Object getValueAt(int row, int col) {
Download download = (Download) downloadList.get(row);
switch (col) {
case 0: // URL
return download.getUrl();
case 1: // Size
int size = download.getSize();
return (size == -1) ? "" : Integer.toString(size);
case 2: // Progress
return new Float(download.getProgress());
case 3: // Status
return Download.STATUSES[download.getStatus()];
return "";
/* Update is called when a Download notifies its
observers of any changes */
public void update(Observable o, Object arg) {
int index = downloadList.indexOf(o);
// Fire table row update notification to table.
fireTableRowsUpdated(index, index);
/*__ProgressRenderer.java__*/
import java.awt.*;
import javax.swing.*;
import javax.swing.table.*;
// This class renders a JProgressBar in a table cell.
class ProgressRenderer extends JProgressBar
implements TableCellRenderer {
// Constructor for ProgressRenderer.
public ProgressRenderer(int min, int max) {
super(min, max);
/* Returns this JProgressBar as the renderer
for the given table cell. */
public Component getTableCellRendererComponent(
JTable table, Object value, boolean isSelected,
boolean hasFocus, int row, int column) {
// Set JProgressBar's percent complete value.
setValue((int) ((Float) value).floatValue());
return this;
}Thank you for the quick reply! But the solution provided by you, it seems, has still not been able to address my issue. I ran the program at command prompt with your said parameters, but the download still gave an error in the App window.
Also, is there some way of defining these parameters in the source code? I am keen in using NetBeans to run the program.
Cheers! -
How to set a background for jFrame?
Hai.i have a code for background image.i.e
* TextOver.java
* Created on June 23, 2008, 1:53 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public class TextOver
private static final String IMAGE_PATH =
"http://upload.wikimedia.org/wikipedia/commons/b/b5/HMS_Cardiff_%28D108%29_1.jpg";
private BufferedImage image;
private JTextArea textarea = new JTextArea(20, 40);
private JPanel mainPanel = new JPanel()
@Override
protected void paintComponent(Graphics g)
super.paintComponent(g);
if (image != null)
g.drawImage(image, 0, 0, this);
public TextOver()
URL imageUrl;
try
imageUrl = new URL(IMAGE_PATH);
image = ImageIO.read(imageUrl);
Dimension imageSize = new Dimension(image.getWidth(), image.getHeight());
mainPanel.setPreferredSize(imageSize);
JScrollPane scrollpane = new JScrollPane(textarea);
textarea.setOpaque(false);
scrollpane.setOpaque(false);
scrollpane.getViewport().setOpaque(false);
mainPanel.add(scrollpane);
catch (MalformedURLException e)
e.printStackTrace();
catch (IOException e)
e.printStackTrace();
public JPanel getPanel()
return mainPanel;
private static void createAndShowGUI()
admin_login_code a=new admin_login_code();
a.setVisible(false);
JFrame frame = new JFrame("TextAreaOverImage Application");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new TextOver().getPanel());
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(false);
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
i want to give this backgground to my existing jFrame something like
import java.sql.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class admin_login_code extends javax.swing.JFrame {
String admin_name;
String password;
Connection con;
Statement stmt;
ResultSet rs;
public admin_login_code() {
initComponents();
jPasswordField1.addKeyListener(new KeyAdapter() {
public void keyTyped(KeyEvent e) {
char c = e.getKeyChar();
if (!(Character.isDigit(c) ||
(c == KeyEvent.VK_BACK_SPACE) ||
(c == KeyEvent.VK_DELETE))) {
getToolkit().beep();
e.consume();
jFormattedTextField1.addKeyListener(new KeyAdapter() {
public void keyTyped(KeyEvent e) {
char c = e.getKeyChar();
if (!(Character.isLetter(c) ||
(c == KeyEvent.VK_BACK_SPACE) ||
(c == KeyEvent.VK_DELETE))) {
getToolkit().beep();
e.consume();
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
jLabel2 = new javax.swing.JLabel();
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jLabel4 = new javax.swing.JLabel();
jPasswordField1 = new javax.swing.JPasswordField();
jPanel2 = new javax.swing.JPanel();
jButton1 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36));
jLabel1.setForeground(new java.awt.Color(255, 0, 0));
jLabel1.setText("ADMIN LOGIN");
jLabel2.setFont(new java.awt.Font("Tahoma", 1, 24));
jLabel2.setText("Admin Name");
jFormattedTextField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jFormattedTextField1ActionPerformed(evt);
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24));
jLabel4.setText("Password");
jPasswordField1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jPasswordField1ActionPerformed(evt);
org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.add(39, 39, 39)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jLabel4)
.add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 161, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(43, 43, 43)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPasswordField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
.add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE))
.addContainerGap())
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel1Layout.createSequentialGroup()
.add(47, 47, 47)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 34, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jFormattedTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(60, 60, 60)
.add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jLabel4)
.add(jPasswordField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
jButton1.setText("Login");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
jButton3.setText("Exit");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
.add(38, 38, 38)
.add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 110, Short.MAX_VALUE)
.add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(55, 55, 55))
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(jPanel2Layout.createSequentialGroup()
.add(38, 38, 38)
.add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 32, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addContainerGap(30, Short.MAX_VALUE))
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(574, 574, 574)
.add(jLabel1))
.add(layout.createSequentialGroup()
.add(459, 459, 459)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
.addContainerGap(521, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(149, 149, 149)
.add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 66, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(43, 43, 43)
.add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.add(42, 42, 42)
.add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
.addContainerGap(250, Short.MAX_VALUE))
pack();
}// </editor-fold>
private void jPasswordField1ActionPerformed(java.awt.event.ActionEvent evt) {
private void jFormattedTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
Object src=evt.getSource();
if(src==jButton3)
dispose();
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Object src=evt.getSource();
if(src==jButton1)
admin_name=jFormattedTextField1.getText();
password=jPasswordField1.getText();
try
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcle","scott","root");
stmt=con.createStatement();
rs=stmt.executeQuery("select admin_name,password from admin_registration where admin_name='chandana' and password='8989' ");
while(rs.next())
if(admin_name.equals(rs.getString(1))&&password.equals(rs.getString(2)))
admin_registration a=new admin_registration();
a.setVisible(true);
dispose();
else
JOptionPane.showMessageDialog(null,"Please enter admin name & password ");
catch(ClassNotFoundException e)
e.printStackTrace();
catch(SQLException e)
e.printStackTrace();
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
admin_login_code a=new admin_login_code();
a.setVisible(true);
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton3;
private javax.swing.JFormattedTextField jFormattedTextField1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel4;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPasswordField jPasswordField1;
// End of variables declaration
Can any one can help me how to set a background for jFrame?
Thank you in advance.
Edited by: forums.com on Jul 14, 2008 1:40 AM90% of the code you posted is not relevant to your question.
If you want further help post a Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the problem.
And don't forget to use code tags when posting code. -
I received an Iphone 5 as a gift two days ago. The first thing I did was set up ICloud for photos. Itunes would not allow me to add songs to my new phone without restoring it, yet when I did this, it deleted all 129 photos of my graduation and friends from the past two days. And I cannot find them anywhere, photo stream, ICloud, nothing. Where can I get back my memories?
Were the photos taken by your new iPhone? If so, did you not import them off your phone to your computer (as you would any other digital camera) before the restore? If not, restoring wiped the data off the phone and your pictures are gone.
Sounds like a good time to (re)read the User Guide. -
Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days. I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying. iPhone remote app works just fine. Any suggestions?
That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it... -
In FrameMaker 9.0.3 and 9.0.4, I cannot set tab stops for a style in the paragraph designer. Here are the steps to dysfunction:
1. In Paragraph Designer, for Tab Stops, click Edit. Edit Tab Stop dialog box opens, and the Paragraph Designer dialog box closes.
2. Type value in New Position box.
3. Click Continue. The Edit Tab Stop box closes.
4. Open Paragraph Designer. No tabs are recorded.
Discussion of a similar problem occured on this forum in June 2010. At that time, the resolution seemed to be to upgrade to 9.0.3. Has anyone else encountered this problem with these versions?
Thanks.Hi, Arnis,
Brilliant! Thanks so much. I only looked at the later discussions of that thread, which seemed to indicate the problem would be solved by an upgrade to 9.0.3.
-Trish -
Set a timeout for "read from text file"
I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
Is there a way to set a timeout for the read from text file function, or is there an other solution?
Thank youYou could check that the path is valid first before you attempt to read the file. hen put the file read in a True-False case structure based on the results of the check. You can use the function "Check if File or Folder Exists" It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files. The function is found in the File I/O --> Advanced File Functions palette.
Tom -
How to dynamically set connection string for report in C# code?
Hi,
I have installed CRVS2010. I have created new Crystal Report WPF Application and new report. I would like to set connection string for report in code dynamically.
Is this possible?
Thanks
IvanaLots of posts in this forum on how to set database connections. WPF should not be a consideration as it's just a viewer. The report engine is still the same. Search these forums. Use the search box at the top right corner of this page. Look at samples here:
https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
Note that none of the samples above are using WPF, but like I said, the WPF is just a different viewer and will not impact how the report engine logs on to a database. (I think of it as a gray car vs. a red car. Same engine, just the color is different)
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
When setting up iCloud for my Contacts, it wiped out my contact list from my PC. How do I get the contact list back in Outlook on my PC?
It's in Outlook, in the iCloud account Contacts.
-
How to set print option for a Billing document using T-code VF02
Hi All,
Please suggest me the way to set print option for a Billing document for T-code VF02 and please let me know how to get print preview for any particular Billing document?
regards
Anand.Enter the billing documents detail
Goto Goto> Header>Output.
Check the status for your output type in this screen.
If it is green then come back to the VF03 screen.Enter the billing document number.
Click on Billing document-->Issue output to.
Press (CtrlShiftF1) or click on the icon beside "Print options".
Here you can see the print preview.
If the status is red then click on the processing log.Here you will get the error messages.
If the status is in yellow colour,then click on the "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Before the print preview option you should make sure you have added correct output type to the relevant billing document. To do that, go to transaction VF02.
Enter the billing document no
Go to Menu option -> Go to -> Header -> Output
In that screen you have to add relevant output type. (Standard output type is RD00)
Add that & press enter key
Highlight that line & press "Further Data" button
Set "Dispatch time" as "4 Send immediately (when saving the application)"
Press "Back" Button
again select that line & go to "Communication method" button
Set "Logical destination" as LOCAL"
Don't mark "Print immediately" & "Release after output" ticks. If you mark them, sa soon as you save the billing document, you'll get a print out.
Press "Back" Button
Save
Now form the initial "Change Billing Document" screen, Go to Menu option; Billing Document -> Issue Output to
You can see that output type line appear.
select that line & press "Print Preview" button or (CTRLSHIFTF1)
You can see the print preview.
Alternatively you can use VF31 to print multiple print outs at same time.
If you want to get PDF outputs of billing documents, go to your printer settings in the your computer from Control Panel.
Set PDF Writer as "Default Printer" (Right click & select "Set as Default Printer")
Then normal way, print the billing from SAP.
It'll automatically send to your PDF writer. You can save it to the path you want, -
Setting up iTunes for a family
I recently purchased an iPhone (my first Apple device). My wife and kids have iPods and iPads and use one iTunes account. Now that I'm into the Apple world, somehow on my phone it has my wifes iTunes id. Being new to this, I was wondering if someone can point me to documentation on how to set this up for a family with multiple devices. We each want our own contacts, playlists, etc. But if someone buy an app or song, it should be available to all the devices. Please help.
Thanks!
Mike (Apple Noob)Refer to this Article:
How to use multiple iPods, iPads, or iPhones with one computer
http://support.apple.com/kb/HT1495 -
I am running OS10.6.8 and have a mail box duplication. I use gmail and when I open my mail I have both the Apple Mail and another set of boxes for Gmail. Both get all mail and when I delete from one, it deletes from the other. How can I get rid of the dup
Hi,
According to your descriptioin, I don't think this is system problem, it should be Intel driver problem. It would be contact Intel to confirm this issue whether this is their driver problem.
Roger Lu
TechNet Community Support
Maybe you are looking for
-
I am sharing a apple id acount with my family but when I synced my iphone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?
-
Inconsistent Actions With "Dim Screen Brightness" Key (F1)
On the MacBook Pro, the F1 key is automatically mapped to dim the screen brightness. However, sometimes when I press this key, the screen shuts off (or at least goes to the lowest brightness setting) and other times it just goes down a single brightn
-
Checking for updates and downloading new versions of iTunes
When I open iTunes and check for udpates, I get a message saying; "A new version of iTunes is available. Would you like to download it now?" When I click Yes, nothing happens. To download the new version, I have to go to the Apple website and downloa
-
How to configure sudo for particular command with arugment
Hi All, I need to configure sudo for a below activity, Its working fine User_Alias NOC_L1_USER = baj33, edg246 Host_Alias NOC_L1_HST = ch02520 Cmnd_Alias NOC_L1_CMD = /bin/su - root -c /usr/bin/dsmc q backup "*" NOC_L1_USER NOC_L1_HST = NOPASSWD: NOC
-
Access Control - Function - error
Hi guys, I was following "" Application Express Advanced Tutorials How to build an Access Control page "" But the function in the tutorial would not work: http://download.oracle.com/docs/cd/E14373_01/appdev.32/e13363/acl.htm#CHDDDFBD CREATE OR REPLAC