|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
jcfis e portaBoa Noite Pessoal,
Alguém já passou pelo seguinte situação:
Fazer ser autenticação integrada jcifs e ntlm no jboss 4.0.5Ga e obter os seguintes resultados:
1)
http://servidor1:8080/aplicacao =>como resultado são verificados usuário e senha pelo jcifs
2)
http://servidor1/aplicacao=> resultado que não são verificados usuário e senha pelo jcifs. Acredito que este resultado não não tenha jcifs e não esteja no jbosss
Obrigado
att.
Nina -- "Há mais coisas entre o céu e a terra, Horácio, do que pode sonhar tua vã filosofia" William Shakespeare (1564 - 1616) |
|
|
Re: jcfis e porta
|
|
|
jcfis e porta
|
|
|
Frame + Componentes do Swing! Chamar no Frame principal!Pessoal, esse código é referente a um frame com componentes do swing! Eu tenho JFrame principal com um menu bar e eu queria que quando clicar: no itemMenu "item1" abrisse esse frame na tela do programa. (Código do frame segue abaixo). no itemMenu "item2" fechasse automaticamente a tela do "item1" e abrisse a tela associada ao menu "item2"! Não consigo entender direito como faço isso! Já tentei JDesktopPanel com InternalFrames mas me parece que não é isso que preciso, eu só quero ficar trocando de frames na tela principal conforme for a seleção do menu! ___! Código do Frame c/ componente do swing !______ package libultra; import java.awt.Dimension; import java.awt.Font; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; public class UsrAct extends JFrame { private JLabel jLabel1 = new JLabel(); private JLabel jLabel2 = new JLabel(); private JTextField jTextField1 = new JTextField(); private JTextField jTextField2 = new JTextField(); private JButton jButton1 = new JButton(); private JButton jButton2 = new JButton(); public UsrAct() { try { jbInit(); } catch (Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { this.getContentPane().setLayout( null ); this.setSize(new Dimension(345, 158)); this.setTitle("User Activation"); jLabel1.setText("User"); jLabel1.setBounds(new Rectangle(40, 20, 65, 25)); jLabel1.setFont(new Font("Times New Roman", 0, 18)); jLabel2.setText("Password"); jLabel2.setBounds(new Rectangle(40, 50, 85, 25)); jLabel2.setFont(new Font("Times New Roman", 0, 18)); jLabel2.setToolTipText("null"); jTextField1.setBounds(new Rectangle(125, 20, 170, 20)); jTextField2.setBounds(new Rectangle(125, 50, 170, 20)); jButton1.setText("Activate"); jButton1.setBounds(new Rectangle(60, 85, 100, 25)); jButton1.setFont(new Font("Tahoma", 1, 11)); jButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jButton1_actionPerformed(e); } }); jButton1.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { jButton1_mouseClicked(e); } }); jButton2.setText("Desactivate"); jButton2.setBounds(new Rectangle(175, 85, 100, 25)); jButton2.setFont(new Font("Tahoma", 1, 11)); this.getContentPane().add(jButton2, null); this.getContentPane().add(jButton1, null); this.getContentPane().add(jTextField2, null); this.getContentPane().add(jTextField1, null); this.getContentPane().add(jLabel2, null); this.getContentPane().add(jLabel1, null); } private void jButton1_actionPerformed(ActionEvent e) { } private void jButton1_mouseClicked(MouseEvent e) { } } ___! Meu menu c/ Items Menu !______ package libultra; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.KeyStroke; public class MenuLayout implements ActionListener{ public MenuLayout() { } public JMenuBar createMenuBar() { JMenuBar menuBar; JMenu menu; JMenuItem uact, exit, usr, colt, per, art, edt, aut, kwords, dstt, hist, stt, bk, db, st, it, clt, tt, udit, cdu, ct, ureg, parm, top, abt; //Create the menu bar menuBar = new JMenuBar(); //Build the first menu. menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_F); menu.getAccessibleContext().setAccessibleDescription( "The only menu in this program that has menu items"); menuBar.add(menu); uact = new JMenuItem("User Activation", KeyEvent.VK_U); uact.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_1, ActionEvent.ALT_MASK)); uact.getAccessibleContext().setAccessibleDescription( "nothing yet"); uact.setActionCommand("uact"); menu.add(uact); exit = new JMenuItem("Exit", KeyEvent.VK_E); exit.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_2, ActionEvent.ALT_MASK)); exit.getAccessibleContext().setAccessibleDescription( "nothing yet"); exit.setActionCommand("exit"); menu.add(exit); //Build second menu in the menu bar. menu = new JMenu("Main Registers"); menu.setMnemonic(KeyEvent.VK_M); menu.getAccessibleContext().setAccessibleDescription( "This menu does nothing"); menuBar.add(menu); uact.setToolTipText("Activate new registered users"); exit.setToolTipText("Exit Application"); exit.addActionListener(this); uact.addActionListener(this); return menuBar; } public void actionPerformed(ActionEvent e) { if ("uact".equals(e.getActionCommand())) { //new AQUI EU TENHO QUE COLOCAR O MÉTODO P/ CHAMAR A TELA } if ("exit".equals(e.getActionCommand())) { //new quit(); } else { //quit } } private void quit() { System.exit(0); } } --------------------------------------------------------------------- To unsubscribe, e-mail: enterprise-list-unsubscribe@... For additional commands, e-mail: enterprise-list-help@... |
| Free Forum Powered by Nabble | Forum Help |