UFT 12.0 Automation feasibility on Main Frame emulators [IBM TN 5250, TN 3270]
Hi All,
We have an applicaiton which runs on AIX Operating system with emulator IBM TN 5250 with Websphere, we wanted to to know whether UFT 12.0 can suppport these technologies for automation testing.
Need what add-in is required and what kind of setup we need to do?
please share your thoughts.
Regards,
A M Varaprasad
Hi,
Please check the following dicussion:
http://h30499.www3.hp.com/t5/Unified-Functional-Testing/Terminal-Emulator-SmarTerm-Configuration-for...
You may want to use that forum to get more info.
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
Similar Messages
-
Library rolls in iphoto not showing in main frame
in iphoto three of my "rolls" of film that i previously downloaded appear in the top of the main frame but when i click on the picture to look at it or edit, it has a blank gray square with an in the middle. if anyone has any tips for me, please contact me! thanks.
soccer20
The ! or ? turns up because iPhoto has lost the connection between the thumbnsil and the photo it represents. The most common cause of this is User Activity in the iPhoto Library Folder. Have you ever moved, renamed or altered anything in this folder?
You could try rebuild the library by holding down the apple and option (or alt)keys and launching iPhoto. Use the resulting dialogue to rebuild.
regards
TD -
Configuration frame pop out of the main frame - how to do (architecture) ?
Hi,
I have a main frame that upon it I have a config button I did.
This button pop open another frame in which the user config some variables which I need to use in the main frame actions.
What is the right way to do it? -
1. in the main frame constructor to create a config frame and save it as a data member in the main frame with setVisibility false, and when the user press the 'config' button I'll change the visibility to true
(and then if I want to take data from the config frame I'll take it from there)
2. To save only the config data in data members (this is a small window - 3 or 4 variables) and every time the 'config' button is pressed I'll build a config frame and in its' constructor I'll send the variables I saved in the main frame
and they will be shown in there (and ofcourse when the config frame will be closed I'll save the new variables in the data members and dispose the config frame)
Thanks,
MichaelI have a little problem.
I build my own class that extends JDialog (with check boxes, text areas etc.)
Then I Created a JOptionPane with OK_CANCEL buttons set it as my dialog content pane.
Now I see the the pane buttons at the top and all my components at the buttom, and its now good.
So Instead of JDialog i extends my class to JPanel and then called
'JOptionPane.showOptionDialog' , and set my panel as the message.
Now it looks good but i have another problem -
I want to do a validity check before the dialog is being closed.
Before I did with 'addPropertyChangeListener' method on my JOptionPane, but now I dont have an OptionPane because the 'showOptionDialog' is static.
So for conclusion -
How can I build a dialog thats:
1. Look like I want (text areas, check boxes, lables ...)
2. Has OK\Cancel button
3. Lets me do validity check after the ok was pressed (and if I want - wont close the dialog)
4. Return me values from the dialog (the text in the text area, the selection of the check box etc.) -
Button to frame | button going back to the main frame (please help)
these are the codes, by clicking the "FCFS" button it will generate another frame and from that frame another button will be pressed "accept" and it will go to another frame....
my problem is that i nid to put codes on the "back" button to go back to the main frame were it started... please help me... thnks
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Oscon extends JFrame
private JButton fcfsB, priorityB, sjfB, rrB, exitB, creditsB;
private fcfsButtonHandler fbHandler;
private priorityButtonHandler pbHandler;
private sjfButtonHandler sbHandler;
private rrButtonHandler rbHandler;
private exitButtonHandler ebHandler;
private creditsButtonHandler cbHandler;
public Oscon()// main frame
fcfsB = new JButton ("FCFS");
fbHandler = new fcfsButtonHandler();
fcfsB.addActionListener(fbHandler);
priorityB = new JButton ("PRIORITY");
pbHandler = new priorityButtonHandler();
priorityB.addActionListener(pbHandler);
sjfB = new JButton ("SJF");
sbHandler = new sjfButtonHandler();
sjfB.addActionListener(sbHandler);
rrB = new JButton ("RR");
rbHandler = new rrButtonHandler();
rrB.addActionListener(rbHandler);
exitB = new JButton ("EXIT");
ebHandler = new exitButtonHandler();
exitB.addActionListener(ebHandler);
creditsB = new JButton ("CREDITS");
cbHandler = new creditsButtonHandler();
creditsB.addActionListener(cbHandler);
setTitle("CPU SCHEDULING");
Container pane =getContentPane ();
pane.setLayout(new GridLayout(2,3));
pane.add(fcfsB);
pane.add(priorityB);
pane.add(sjfB);
pane.add(rrB);
pane.add(exitB);
pane.add(creditsB);
setSize(500,100);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
public class fcfsButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
JFrame frame = new JFrame("FCFCS setting");
final JLabel FCFSProcessL, FCFSp1L,FCFSp2L,FCFSp3L,FCFSp4L, FCFSbt;
final JTextField FCFSp1TF,FCFSp2TF,FCFSp3TF,FCFSp4TF;
FCFSProcessL = new JLabel("PROCESS", SwingConstants.CENTER);
FCFSp1L = new JLabel("P1:", SwingConstants.CENTER);
FCFSp2L = new JLabel("P2:", SwingConstants.CENTER);
FCFSp3L = new JLabel("P3:", SwingConstants.CENTER);
FCFSp4L = new JLabel("P4:", SwingConstants.CENTER);
FCFSbt = new JLabel("BT:", SwingConstants.CENTER);
FCFSp1TF= new JTextField (10);
FCFSp2TF= new JTextField (10);
FCFSp3TF= new JTextField (10);
FCFSp4TF= new JTextField (10);
JButton FCFSokB = new JButton ("Accept");
FCFSokB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
JFrame frame2 = new JFrame("FCFCS");
frame2.setSize(500,500);
frame2.setVisible(true);
frame2.setDefaultCloseOperation(EXIT_ON_CLOSE);
JButton FCFSclearB = new JButton ("clear");
FCFSclearB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
FCFSp1TF.setText("");
FCFSp2TF.setText("");
FCFSp3TF.setText("");
FCFSp4TF.setText("");
JButton FCFSBackB = new JButton ("Back");
FCFSBackB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
setTitle("CPU SCHEDULING");
frame.setLayout(new GridLayout(7,2));
frame.add(FCFSProcessL);
frame.add(FCFSbt);
frame.add(FCFSp1L);
frame.add(FCFSp1TF);
frame.add(FCFSp2L);
frame.add(FCFSp2TF);
frame.add(FCFSp3L);
frame.add(FCFSp3TF);
frame.add(FCFSp4L);
frame.add(FCFSp4TF);
frame.add(FCFSokB);
frame.add(FCFSclearB);
frame.add(FCFSBackB);
frame.setSize(200,250);
frame.setVisible(true);
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
public class priorityButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
public class sjfButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
System.exit (0);
public class rrButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
System.exit (0);
public class exitButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
System.exit (0);
public class creditsButtonHandler implements ActionListener
public void actionPerformed(ActionEvent e)
System.exit (0);
public static void main (String [] args)
Oscon O = new Oscon();
}please help me revise my program, im almost done, i just nid to set the progress bar that it will run according to the waiting time, or set the progress bar to run in order.. these are the variable names of the progress bar(current1, then current2, then current3 then current4).
i looked it up on the site and i cant really understand it... i just did the part where i included the progress bar to the interface. ijust want the 4 progress bars to run after clicking the accept button.... Please help me!!! its for my project and i didnt slept last night just working on this... i just nid help sir... thnks...
these are the codes i made:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JProgressBar;
public class CPUSched
public CPUSched()
JFrame frame = new JFrame();
JProgressBar current1, current2, current3, current4;
Thread runner;
int num = 0;
final JLabel ProcessL, p1L,p2L,p3L,p4L, bt, prioL, tqL, wtL, awtL, awtLA;
final JTextField p1TF,p2TF,p3TF,p4TF, prio1TF, prio2TF,prio3TF,prio4TF, tqTF ;
final JLabel blank1, blank2, blank3, blank4, blank5, blank6, blank7, blank8, blank9, blank10, blank11,
blank12, blank13, blank14, blank15;
final JLabel blank16, blank17, blank18, blank19, blank20, blank21, blank22, blank23, blank24, blank25,
blank26, blank27, blank28, blank29, blank30;
current1 = new JProgressBar(0, 2000);
current1.setValue(0);
current1.setStringPainted(true);
current2 = new JProgressBar(0, 2000);
current2.setValue(0);
current2.setStringPainted(true);
current3= new JProgressBar(0, 2000);
current3.setValue(0);
current3.setStringPainted(true);
current4 = new JProgressBar(0, 2000);
current4.setValue(0);
current4.setStringPainted(true);
ProcessL = new JLabel("PROCESS", SwingConstants.CENTER);
p1L = new JLabel("P1:", SwingConstants.CENTER);
p2L = new JLabel("P2:", SwingConstants.CENTER);
p3L = new JLabel("P3:", SwingConstants.CENTER);
p4L = new JLabel("P4:", SwingConstants.CENTER);
bt = new JLabel("Burst Time:", SwingConstants.CENTER);
prioL= new JLabel("Priority (1-4):", SwingConstants.CENTER);
tqL= new JLabel("Time Quantum:", SwingConstants.CENTER);
wtL= new JLabel("Waiting time:", SwingConstants.CENTER);
awtL= new JLabel("Average Waiting time:");
awtLA= new JLabel("");
blank1= new JLabel("");
blank2= new JLabel("");
blank3= new JLabel("" ,SwingConstants.CENTER);
blank4= new JLabel("");
blank5= new JLabel("", SwingConstants.CENTER);
blank6= new JLabel("");
blank7= new JLabel("");
blank8= new JLabel("" ,SwingConstants.CENTER);
blank9= new JLabel("");
blank10= new JLabel("");
blank11= new JLabel("", SwingConstants.CENTER);
blank12= new JLabel("");
blank13= new JLabel("");
blank14= new JLabel("");
blank15= new JLabel("");
blank16= new JLabel("");
blank17= new JLabel("");
blank18= new JLabel("");
blank19= new JLabel("");
blank20= new JLabel("");
blank21= new JLabel("");
blank22= new JLabel("");
blank23= new JLabel("");
blank24= new JLabel("");
blank25= new JLabel("");
blank26= new JLabel("");
blank27= new JLabel("");
blank28= new JLabel("");
blank29= new JLabel("");
blank30= new JLabel("");
p1TF= new JTextField (2);
p2TF= new JTextField (2);
p3TF= new JTextField (2);
p4TF= new JTextField (2);
prio1TF= new JTextField (2);
prio2TF= new JTextField (2);
prio3TF= new JTextField (2);
prio4TF= new JTextField (2);
tqTF= new JTextField (2);
prio1TF.setEditable(false);
prio2TF.setEditable(false);
prio3TF.setEditable(false);
prio4TF.setEditable(false);
tqTF.setEditable(false);
JButton okB = new JButton ("Accept");
okB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
double iw=0, wtp1, wtp2, wtp3, wtp4;
double bt1, bt2, bt3, bt4;
double averageWT, sumWT;
bt1=Double.parseDouble(p1TF.getText());
bt2=Double.parseDouble(p2TF.getText());
bt3=Double.parseDouble(p3TF.getText());
bt4=Double.parseDouble(p4TF.getText());
wtp1 = iw;
wtp2 = wtp1+bt1;
wtp3 = wtp2+bt2;
wtp4 = wtp3+bt3;
sumWT = wtp1+wtp2+wtp3+wtp4;
averageWT = sumWT/4;
awtLA.setText(""+averageWT);
blank3.setText(""+wtp1);
blank5.setText(""+wtp2);
blank8.setText(""+wtp3);
blank11.setText(""+wtp4);
JButton clearB = new JButton ("Clear");
clearB.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
p1TF.setText("");
p2TF.setText("");
p3TF.setText("");
p4TF.setText("");
awtLA.setText("");
blank3.setText("");
blank5.setText("");
blank8.setText("");
blank11.setText("");
frame.setTitle("First Come First Serve");
frame.setLayout(new GridLayout(6,6));
frame.add(ProcessL);
frame.add(blank1);
frame.add(wtL);
frame.add(bt);
frame.add(prioL);
frame.add(tqL);
frame.add(p1L);
frame.add(current1);
frame.add(blank3);
frame.add(p1TF);
frame.add(prio1TF);
frame.add(tqTF);
frame.add(p2L);
frame.add(current2);
frame.add(blank5);
frame.add(p2TF);
frame.add(prio2TF);
frame.add(blank6);
frame.add(p3L);
frame.add(current3);
frame.add(blank8);
frame.add(p3TF);
frame.add(prio3TF);
frame.add(blank9);
frame.add(p4L);
frame.add(current4);
frame.add(blank11);
frame.add(p4TF);
frame.add(prio4TF);
frame.add(blank12);
frame.add(blank13);
frame.add(blank14);
frame.add(okB);
frame.add(clearB);
frame.add(awtL);
frame.add(awtLA);
frame.setSize(800,200);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public static void main (String [] args)
CPUSched O = new CPUSched();
} -
How to modify the icon of the main frame in JavaHelp?
I can modify the title of the main frame, but can I modify the icon of the main frame? Thanks a million.
hi,
look at the Frame's method setIconImage(Image anImage);
;) -
Best way for building an application main frame
I'm about to program a desktop application.
The main frame will have menus, toolbar, status bar etc.
There will be a lot of interaction between the menus, toolbar buttons and other custom gui components (such as an editor).
My question is which is the best way for building it.
Cramming all the code in one class file is out of the question.
I thought about making my own custom JFrame and add API functions like for it so different GUI elements can be accessed.
Each component which will be manipulated will be in its own class file with the constructor accepting a reference to my custom JFrame object which it is contained in.
Any suggestions on the matter would be of great help since I've never done extensive Swing programming before.
P.S.
The application makes extensive use of RMI.
What considerations should I take into account (except using SwingUtilities.invokeLater()) ?Hi,
I have replied on this subject somewhere else today but what I do is have one simple entry point where I just instanciate a JFrame.
On that frame I have a main JPanel. On that panel I add new objects like JPanels, tabs etc.
I keep each new panel in a separate source as it is easier when the application grows, and it will. That also means that several programers can work with the same application without interfearing each other.
I hope you understand what I mean the the thing is to split up the code into several sources.
It may not suit everyone but I found this approach to be the best for me.
Klint -
How to keep Progress bar in front of the main frame?
Hi all,
How can i keep the progress bar in front of the main frame all the time while the proggress bar is visible?Perhaps the question is not clear.
I want the progress bar to remain in front of the parent frame as long as it is visible on screen.that is when i click on the parent frame,progress bar should not go behind the frame.
Can ne1 plz help?
Regards,
Mansi -
Skin shows/ missing topic in main frame
Due to a Robo > host server incompatibility problem, the
Publish feature does not currently work. As a workaround., I'm
trying to ftp all my files from my desktop WebHelp folder to the
host server. Will this method work?
When I check the site with my browser, I see the desired
skin, nav bar, and TOC. However the "home" topic is missing from
the main frame. How do I preserve links (between TOC and pages,
start page and skin, etc.)? Also, do I have to redesignate an Index
page?
Thanks in advance for any help you can provide.Wow, I've got the EXACT same problem with our SRM system. TWPURLSVR seems to have the URL's defined properly for our logical system. Please post back if you indeed solve the problem with help posted. Also, I wonder if there is a way to check that the URL I put in is maintained properly. I just cut and pasted the URL that gets me to bbpstart between the first set of //.../
Thanks -
Hi,
Jdeveloper 10g 10.1.3.3 (OAF) with jdk 1.5.0_22 shows empty main frame
without any controls. But if I click on that frame in chaotic order the header text of main frame
is changing. It seems like controls are exists, but not visible.
If I use jdk 1.6 JDeveloper gives the next message
The version of JDeveloper is certified on JDK 1.5.0. You are attempting to run on JDK 1.6.0. JDeveloper may not run correctly on this version of JDK.
What is going wrong?
Edited by: 881912 on Aug 26, 2011 9:31 PMAs you are using OAF you better ask this in the {forum:id=210} forum
Timo -
Remove Focus from Main Frame after Jinternal Frame is opened.
Hi,
I want to restrict the user to change any thing on main frame once the JInternalFrame is opened (you can see same effect when we execute JOptionPane where focus on main is not retain untill you close the JOptionPane).
I have written following code to listen the JInternalFrame event
conn_prop.addInternalFrameListener(new InternalFrameListener(){
@Override
public void internalFrameActivated(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameClosed(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameClosing(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameDeactivated(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameDeiconified(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameIconified(InternalFrameEvent e) {
// TODO Auto-generated method stub
@Override
public void internalFrameOpened(InternalFrameEvent e) {
// TODO Auto-generated method stub
}}); I tried setEnabled(false) but this is paralyzing entire application
what piece of code should i write to do that........
thanks in advance.That is not how a JInternalFrame is meant to be used. Read the Swing tutorial on "Using Internal Frames".
Use a modal JDialog. -
Hi
im using swing, and i want my main frame to be maximized
i use this code :
cipherplus win = new cipherplus();
Toolkit toolkit = Toolkit.getDefaultToolkit();
Dimension temp = toolkit.getScreenSize();
int h = temp.height;
int w = temp.width;
win.setSize(w,h-30);
win.show();the prolem is, and i dont have any clue why, when i use the resolution size 800 * 600 i dont see everything that is on the frame...
so can anybody please tell me what is the problem?
tanxTwo things:
1) There was a mistake in what I gave you. What you have will work if there is only 1 bar, but it doesn't work if there is a bar on top and one on the bottom.
Replace:
screenSize.width -= insets.left - insets.right;
screenSize.height -= insets.bottom - insets.top;With this:
screenSize.width -= (insets.left + insets.right);
screenSize.height -= (insets.bottom + insets.top);2) Don't forget to set the location to be at the insets. for you it would be adding this line:
win.setLocation(insets.left, insets.top);Put that between setSize() and show(). -
Drag JTabbedPane out of the main Frame and set scroll bars for the tabs
hi ,
Iam working on a Swing application . In it i have Six Tabs added to a single JTabbedPane. all the tabs are different class files . is it possible to drag any of the tabs out of the frame.
how to add scroll bars for the tabs individually. i have tried adding JScrollPane to the main frame and add the JTabbedPane to the Scrollpane . the scroll bar was not visible and i have tried adding
all the six tabs to the individual JScrollPanes and add the six scrollpanes to the TabbedPane .
only the scroll arrows are visible , when i minimised or resized the application the scrollbars were not appearing .
could any one help me to solve the above two problems.just trying.....
public void mouseDragged(MouseMotionEvent e){
// this event should be activated only when the Drag goes out of scope of the parent JFrame which i dont know how
Component c=JTab.getComponentAt(JTab.getSelectedIndex());
JFrameobj.getContentPane().add(c,"Center");
} -
Can not refer to main frame as not in package
I made my frame by simply typing "new ProgramProj();" under main string args which worked fine (well actually my lecturer did it like that) .
I've tried to copy the layout of "normal" layout by getting the content pane, etc. but then I get an illegal argument exception (cannot add window to a container)...Is there a way to keep this method and be able to refer to this frame from another frame because I need to set the text of a label on the main frame from another frame under the action listener:
if(event.getSource() == cmdSaveSettings) {
if(txtPlayerOneName.getText().equals(emptyText)) {
JOptionPane.showMessageDialog(null, "alert", "Please enter player one's name", JOptionPane.ERROR_MESSAGE);
else {
playerOneName = txtPlayerOneName.getText();
ProgramProj.lblplayerOneName.setText(playerOneName); //ProgramProj is the file name that cannot be found
}I've added the action listeners but nothing happens. Would really appreciate the help, thanks in advance.Cleo123 wrote:
So are you saying that if I use a JOptionPane as a frame I won't have any trouble retrieving the data inputted as I will not have to specify which frame I want the data to go to because it will be a option pane OF the main frame?If the JOptionPane holds a JPanel that you have a reference to, then you can get information out of the JPanel easily.
I've used a separate frame frame because I gather a lot more information which takes a page such as a colour chooser for the counter they want, (connect 4), option boxes for the grid size they want, combo box for the shape of the counter, sound and time check boxes and then text fields if they want a timer handicap...So I thought it best for it to be more that a message box as I wouldn't want a load of message boxes requesting one piece of data at the time. You can get your info all together with a JOptionPane.
For instance what if you had a JPanel (and enum) that looked like so:
enum Difficulty
EASY("Easy"),
MODERATE("Moderate"),
DIFFICULT("Difficult"),
VERY_DIFFICULT("Kick Ass");
private String text = "";
private Difficulty(String text)
this.text = text;
@Override
public String toString()
return text;
class PrefPanel extends JPanel
private JTextField nameField = new JTextField(20);
private JComboBox difficultyCB = new JComboBox(Difficulty.values());
public PrefPanel()
JPanel labelPanel = new JPanel(new GridLayout(0, 1, 10, 10));
JPanel dataPanel = new JPanel(new GridLayout(0, 1, 10, 10));
labelPanel.add(new JLabel("Name: "));
dataPanel.add(nameField);
labelPanel.add(new JLabel("Difficulty: "));
dataPanel.add(difficultyCB);
setBorder(BorderFactory.createEmptyBorder(5, 5, 25, 5));
setLayout(new BorderLayout(10, 10));
add(labelPanel, BorderLayout.WEST);
add(dataPanel, BorderLayout.CENTER);
public String getNameText()
return nameField.getText();
public Difficulty getDifficulty()
if (difficultyCB.getSelectedIndex() >= 0)
return (Difficulty)difficultyCB.getSelectedItem();
else
return null;
}You could then show the JPanel in a JOptionPane and retrieve the info easily like so:
public void actionPerformed(ActionEvent event)
boolean preferencesObtained = false;
PrefPanel prefPanel = new PrefPanel(); // here's the JPanel object
while (!preferencesObtained)
int result = JOptionPane.showConfirmDialog(
GetNameMain.this, // this holds a reference to the JFrame or other JComponent
prefPanel, // place the JPanel object in the JOptionPane
"Select Preferences",
JOptionPane.OK_CANCEL_OPTION,
JOptionPane.PLAIN_MESSAGE);
if (result == JOptionPane.OK_OPTION)
if (!prefPanel.getNameText().isEmpty())
// get the information from the PrefPanel object and place into
// variables of choice
name = prefPanel.getNameText();
nameLabel.setText(name);
difficulty = prefPanel.getDifficulty();
difficultyLabel.setText(difficulty.toString());
preferencesObtained = true;
else
JOptionPane.showMessageDialog(GetNameMain.this,
"Please fill all data fields", "Incomplete Data",
JOptionPane.ERROR_MESSAGE);
else // cancel pressed
preferencesObtained = true;
} -
Changing the main frame's center panel
I have a JPanel that I've added to my application's main frame's content pane's center, i.e.
JPanel myPanel = new JPanel ();
mainframe.getContentPane().add (myPanel, BorderLayout.CENTER);
Then, I'd like to change that panel, and I do the following
JPanel myNewPanel = new JPanel();
mainframe.getContentPane().remove(myPanel);
mainframe.getContentPane().add(myNewPanel, BorderLayout.CENTER);
mainframe.pack();
This seems to work except that the call to pack() also resizes my application's window. I'd like the application's window to remain the same size as I change the panel throughout the program. How can I achieve this?
BTW, I'm new to swing and GUI programming, so not sure if my choice of implementation is a good one. Basically, what I want to do is, based on user selection, display the selected item in an "appropriate way". This mean sometimes, I want to use a set of GUI labels while other times I want to use a mix of radio buttons, check boxes, and labels.
Thanks in advance.Can't you just do frame.getContentPane().revalidate()?No, because using the add(...) method does not remove the original component from the panel. So essentially what you have is two components added to the container with the same bounds. Generally the first component added is the one that gets painted.
So to add a new component to a BorderLayout the code should be something like.
contentPane.add(originalComponent, BorderLayout.CENTER );
contentPane.remove( originalComponent );
contentPane.add(anotherComponent, BorderLayout.CENTER);
contentPane.revalidate();
contentPane.repaint(); // sometimes required -
Printing from SAP via main frames
Hi,
We are runnnig Our SAP 47 on Solaris Operating System. We have a requirement for printing form SAP using Mainframe Print Queues. Does any one have any info on how to setup print queues in main frame or printing from SAP via mainframe servers. Any Info would be really helpful.
thanks in advance
Sitapati KalluriYou can use IBM Infoprint Server for z/OS.
<a href="http://www.printers.ibm.com/internet/wwsites.nsf/vwwebpublished/ipserverhome_z_ww">http://www.printers.ibm.com/internet/wwsites.nsf/vwwebpublished/ipserverhome_z_ww</a>
But this is priced feature of z/OS and requires some customization.
Regards, Martin
Maybe you are looking for
-
Why do my photos play blurry??
Hello I have high-resolution images (1600 x 1600 pixels - 300 resolution). When I import them into FCP - they look fine in the viewer and when paused in the canvas. However when I hit play they immediately become blurry. I've tried resizing to 720 x
-
SOLVED: Dell XPS 1530 wireless not configured properly , need help.
Had another post about different questions but after playing around with this for a few days I think that my wifi is not configured properly. Every thing looks good on the hardware and driver end and shows up properly. This is my wifi card grep -i wi
-
I just purchased adobe 13 updrade from my 12. How do i install this?
How do I install adobe 13? I just purchased it from you and have a serial number.
-
Taiwan's National Holidays Are Not Shown!
Wonder why Taiwan's national holidays are not shown when creating a new 2010 calendar while Hong Kong (C)'s and China's are shown properly.
-
How do you get iphoto coupons?
how do I get iphoto coupons?