Frame Webcenter 11.1.1.5 Problem
Dear all,
I got problem in Webcenter frame. I'm using change language function in Webcenter, If I switch the language, the content in Webcenter frame can't be changed automatically before I refresh page. In conclusion, I should refresh the page (F5), then the content in Webcenter frame can be changed.
Any idea for this problem?
Thanks in advance
Hi,
When u r saying content is not changing. More info is required here. Whether content is only labels or contents from Content Management systems.
However if you used to implement language toggling(switching) functionality, then you need to call the refresh view port or any other javascript call to refresh the whole page, in that way you can automate the process if needed at all.
In my personal experience, I needed a javascript call to achieve the same.
-Hoque
Similar Messages
-
Firefox upon opening an image in a new tab, centers the image from top and bottom and surrounds the image with a grey frame. Just started having the problem today, searched Google to no avail.
Oh wow, looks like a new feature.
The "page" links in a stylesheet with the address "resource://gre/res/TopLevelImageDocument.css". If you remove that reference, then the image displays in the old style.
'''''Edit: Please skip the rest of this post and check out the next one.'''''
There might be a more elegant solution than that, but you could use a bookmarklet to strip out that link when you want to view the page in its old style. A bookmarklet is a snippet of JavaScript you save on the Bookmarks toolbar for quick access.
First, copy the following code to the clipboard (it's all one long line):
<br>javascript:var ssheet=document.querySelector('link[href="resource://gre/res/TopLevelImageDocument.css"]'); if(ssheet)ssheet.parentNode.removeChild(ssheet); void 0;
Next, if you are not displaying the Bookmarks Toolbar, use View > Toolbars > Bookmarks Toolbar to display it. (If you aren't using the classic Menu bar, press Alt+v to call up the old View menu. Right-clicking the gray area just below the page address also allows you to display the Bookmarks Toolbar.)
Right-click on the Bookmarks Toolbar (or Mac equivalent of right-click!) and choose New Bookmark.
Paste the code into the Location box (the second box).
Then type a useful name in the Name box (e.g., Oldstyle Picture) and click Add.
Now, when you want to tweak the image display, click the button to run the script.
Manual clicking is a hassle, so it might make sense to look into other solutions. (Greasemonkey didn't seem to work; I think it might not run on .jpg files.) -
Hello all,
I am new to flash and am having a problem which I thought
should be an easy resolution but it is killing me......
I have a movieclip on my stage in frame 10. In the movie clib
there is a button that when pressed opens another movie clip which
hols 2 buttons. It is essentially a menu item that when clicked
opens a subsequent menu with 2 more items. When one of the
subsenquent menu items is clicked, I want to jump to frame 20,
however nothing is happening.
On the "on(release)" of the subsequent button I have the
"gotoandstop("scene 1", 20 " coded....... can anyone shed some
light why its not jumping there for me.
Thanks in advance
SHHello, I assume you have used a line of code similar to this
for your button
on (release) {
gotoAndPlay(20);
this will go to and play frame 20 of the movie clip that your
button is sitting in. What you want the button to do is to
play frame 20 of the main timeline. _root is the keyword
which always refers to the main timeline. So by adjusting your
buttons code you will alow it to communicate with the main
timeline.
on (release) {
_root.gotoAndPlay(20); -
ADF (Webcenter) 11.1.1.3 problem ADFC-60001
I've latest weblogic, webcenter 11.1.1.2 + 11.1.1.3 on top with Webcenter domain plus the latest JDev with latest Webcenter plugin. When I make simple hello world test with navigation between two pages the navigation doesn't work. Only thing in logs is:
[ADFC-60001] [oracle.adfinternal.controller.util.model.AdfmInterface] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [ecid: 0000Ii_Ty2vFg4s_Khd9ie1ChPxh000003,0] [APP: ADFTest_webapp1] ADFc: BindingContext is not present, not using ADFm APIs for DataControlFrames.
Happens both with Webcenter EAR and plain ADF webapp. Happens deployed both on WLS_Spaces and custom managed server (created with otn wlst script). I even tried applying ADF runtime 11.1.1.2 + 11.1.1.3 and creating new domain - same effect. Not browser specific as happens on IE7, FF 3.6.10 & Chrome 6.0.
(Customer's) Platform is Windows 2008 Server R2 64 bit, Sun's latest & greatest 1.6.0_21 64bit JDK, should be fully certified for FMW11g.
Interesting is that running on JDev embedded it usually works ok in beginning, but stops working after some time.
Have I missed something simple with library versions or could it be something with platform and/or 64bit JVM? (have been causing trouble with other Oracle components already).with Firebug full debug I can see lot's of warnings from core*.js and boot*.js:
reference to undefined property this.* -either javascript cannot get handle for this or any property under it. Problem with DOM?
Any idea what could cause this? -
WebCenter Space Layout and Customization problems
Hi all,
I am new in Webcenter Space and I wonder is there anyway to do the following tasks:
1) Change the alignment of the left most side bar label (default is align right)
2) Remove the picture for user profile
Also I found that the left side bar item cannot get refreshed/updated after changing settings in personalization page (such as show and hide pages)
I have searched in OTN and there is no similar solution, any pointer is highly appreciated. ThanksYou can publish your customized portlet in the catalog. For this, you have to create a Mashup from the WC Administration > Mashup, add portlet on this mashup from catalog, customize it and then add this mashup in catalog from WC Administration --> Catalog. You will find all these mashups in Taskflows section of Catalog.
Using this approach, you cannot personalize your portlet.
Regards,
Imran -
Hi,
I hav a problem in JAVA. I have a main frame. This has an internal
frame as its compnent. The size(height) of internal frame is more
than the main frame. I want the a to vertically scroll in main frame
to see the entire internal frame.
The following code i tried with JSCrollPane gives me only
horizontall scrolling , so i can see entire width, but no verticall
scroll to see entire height of internal frame.
Can u solve this problem.
Bye,
Pradeep
import java.awt.*;
import javax.swing.*;
public class Main extends JFrame
JInternalFrame jInternal;
JScrollPane jPane;
Main()
jInternal = new JInternalFrame();
jInternal.setSize(200,600);//Internal Frame height bigger
jPane = new JScrollPane(jInternal);
getContentPane().add(jPane);
setSize(200,200);//Frame height smaller
jInternal.show();
public static void main(String a[])
Main m = new Main();
m.show();Hi.. This might help:
JScrollPane jPane;
jPane = new JScrollPane(jInternal,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
U can change those constants so that it shows the scrollbars at all time.. Now they only appear when needed.. -
Webcenter Tutorial 11g - MyPage.jspx Page Rendering Problem
Hi.
I have just installed the Webcenter framework updates to Jdev 11.1.1.2.0 and started to work with the Webcenter tutorial. I have installed the Webcenter schema, under "webcenter".
I have a problem getting my first page, MyPage.jspx to render the first set of composer components, i.e. nothing seems to display at all on my page, it is completely blank when I try and run the page. ( I have isolated my webcenter tags )
I get the following message in the Jdev log:
<MDSRestrictionPolicy><_updateMDSRef> An error has occurred while finding the page for the component with client ID layoutCustomizable1.
Can someone tell me why my page is coming up blank? Does this have to do with webcenter schema perhaps, or something in my tags.
Thanks.
My JSPX code looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:pe="http://xmlns.oracle.com/adf/pageeditor"
xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:form id="f1">
<af:panelSplitter orientation="vertical" splitterPosition="236" id="ps1">
<f:facet name="first">
<pe:pageCustomizable id="pageCustomizable1">
<pe:layoutCustomizable id="layoutCustomizable1"
type="twoColumnTop">
<cust:panelCustomizable id="panelCustomizable2"/>
<f:facet name="contentA">
<cust:panelCustomizable id="panelCustomizable3"/>
</f:facet>
<f:facet name="contentB">
<cust:panelCustomizable id="panelCustomizable4"/>
</f:facet>
</pe:layoutCustomizable>
</pe:pageCustomizable>
</f:facet>
<f:facet name="second">
<!-- id="af_one_column_header_stretched_with_splitter" -->
</f:facet>
</af:panelSplitter>
</af:form>
</af:document>
</f:view>
</jsp:root>Hum this has happened to me before. It used to happen when I used the pageCustomizable in a wrong way, like when I placed the panelCustomizable outside pageCustomizable, or when I forgot the Edit Link (or button) to go with the pageCustomizable. Hope this helps!
-
I finally got the actionscript to reverse the frames, but now
I have another problem along the same lines. The code I used to
reverse the frames is as follows and is only excuted when a button
is clicked.
addEventListener(Event.ENTER_FRAME, ReverseFrame);
function ReverseFrame(event:Event):void {
if (currentFrame == 119) {
lblReverse.text = "0";
gotoAndStop(114);
} else {
prevFrame();
The problem with this is, after the code is excuted, I can
not get the movie to stop playing backwards. I get it to play to a
frame with a menu on it, yet the menu does not work. I tried to
make it gotoAndPlay the frame before the menu loads, but it just
keep reversing, not stopping until it gets back to the beginning.
Any ideas on this?Yep, that worked....added an addtional if statement that
checked my lblReverse for the value of 1.
addEventListener(Event.ENTER_FRAME, ReverseFrame);
function ReverseFrame(event:Event):void {
if (lblReverse.text == "1") {
if (currentFrame == 118) {
lblReverse.text = "0";
gotoAndPlay(119);
} else {
prevFrame();
But with that event listener, does that mean it will be
listening the whole movie? -
Greetings,
I have been programming a lot in C, C++ and .Net but nowadays i am learning Java. The IDE is Netbeans 5.5. I hope that you can help me with simple problems that i am facing:
1)I am using the form editor(Designer) to make a simple windows form. Trying to run this line:
final JDialog dialog = new JDialog(frame, "Click a button", true);The problems comes with the "frame" parameter. I think this is the container frame, I have tried my frame "name" as well as "Accessible Name" property over here but it just gives me the message "Cannot find symbol". I could have changed the name of the frame in code but i cant find it being declared anywhere in the code!
2)The second problem is somewhat related to NetBeans understanding, How can i edit the higlighted code that the form editor generates?
Thank You. Take care.
Regards,
NABIf you create JDialog objec t from your class that inherit from JFrame
modify your code
final JDialog dialog = new JDialog(this, "Click a button", true)Yes the class was inherited by JFrame and the 'this pointer' worked. Thanks pepi.
What do you mean it's "name" property? I get the
feeling that you opened up the GUI editor and set the
"name" of the JFrame to be "frame" and now magically
expect this to be a variable in your code. If this
is the case, I don't know what to say except it's
time for you to actually learn Java instead of
learning an IDE.Well yes u have the rite feelings :). but is there something wrong with this? I am using Netbeans so if they are offering GUI editor, then why not use it!
Btw, is this magic? I dont know about IDE, but in Visual Studio and VS.Net, if u design something in Designer, then the VS automatically generates the code for it. and unlike Netbeans we can even modify the generated code. Thats why i was expecting a Jframe being declared but i could not find it. -
How do I loop back from the first frame to the last frame?
Hi there,
I'm currently working on the framework for a product viewer.
I have:
a movie clip called 'viewer_mc' which contains the images take from different angles of the product. The actionscript generates a script on the last frame of this that returns it to frame 1.
a button instance called 'autoplay_btn' which plays through the movie clip from whatever the current frame is, and stops on frame 1.
a left and right button which serve to move the movie clip frame, to give the appearance that the product is rotating.
I have succeeded in getting it to:
have the movie clip play through once, return to frame 1 and stop.
have the buttons return functions when held down, that move the frame in the movie clip using nextFrame and prevFrame commands. The right button successfully loops round to frame 1 and continues functioning to give the appearance of continual rotation.
The last problem I am experiencing is getting the left button to act in the corresponding manner, going from the first frame to the last and continuing to function.
Here is my actionscript so far:
import flash.events.MouseEvent;
var lastFrame:Number = viewer_mc.totalFrames;
var thisFrame:Number = viewer_mc.currentFrame;
var backFrame:Number = viewer_mc.currentFrame-1;
1. This is the part that gets it to play through once before returning to the first frame. I think perhaps the problem I am experiencing is because of the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' part i.e. although I'm holding the left button, its returning to this script and therefor getting bounced back immediately to the first frame. However, there is no flicker on the screen which you might expect if this were the case
Note - as this is a generic product viewer which I can use as a template I am using lastFrame etc. as opposed to typing the value in
function toStart (){
viewer_mc.gotoAndStop(1);
viewer_mc.addFrameScript(lastFrame-1, toStart);
2. This is the functionality for the autoplay_btn that will play through a rotation / return the viewer to the initial (frontal) view of the product (frame 1).
autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
function autoplay (ev:MouseEvent):void{
var startFrame:Number = viewer_mc.currentFrame;
viewer_mc.gotoAndPlay(startFrame);
3. This is the functionality of the right button, which when held, moves the movie clip to the next frame via the 'rotateRight' function based on the 'nextFrame' command. It loops back round to the first frame due to the 'viewer_mc.addFrameScript(lastFrame-1, toStart)' script generated on the last frame of the movie clip, as is desired.
right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
function rightDown(e:Event){
stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
function stoprightDown(e:Event):void {
removeEventListener(Event.ENTER_FRAME,rotateRight); //stop running the tick function every frame now that the mouse is up
stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
function rotateRight(e:Event):void {
viewer_mc.nextFrame();
4. This is the functionality of the left button, which when held, moves the movie clip to the prev frame via the 'rotateRight' function based on the 'prevFrame' command. And this is where the problem lies, as although it works for getting the movieclip back to frame 1, it does not loop round to the last frame and continue functioning, as is wanted.
left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
function leftDown(e:Event){
stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
addEventListener(Event.ENTER_FRAME,rotateLeft); //while the mouse is down, run the tick function once every frame as per the project frame rate
function stopleftDown(e:Event):void {
removeEventListener(Event.ENTER_FRAME,rotateLeft); //stop running the tick function every frame now that the mouse is up
stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
I'd imagine it is probably my logic for this part that is really letting me down - I can do a similar function in actionscript 2, but am trying to learn actionscript 3 just to move with the times as it were, and struggling a bit. Still this is only a few days in!
function rotateLeft(e:Event):void{
if(thisFrame==1){
gotoAndStop(viewer_mc.totalFrames-1);
} else{
viewer_mc.prevFrame();
Any help you can give me would be gratefully received. For an example of the effect I am trying to achieve with the autoplay button etc. I recommend:
http://www.fender.com/basses/precision-bass/american-standard-precision-bassThanks for getting back to me.
Here's the code without my comments / explanations:
import flash.events.MouseEvent;
import flash.events.Event;
var lastFrame:Number = viewer_mc.totalFrames;
var thisFrame:Number = viewer_mc.currentFrame;
var backFrame:Number = viewer_mc.currentFrame-1;
function toStart (){
viewer_mc.gotoAndStop(1);
viewer_mc.addFrameScript(lastFrame-1, toStart);
//last image of viewer_mc = first image of viewer_mc
autoplay_btn.addEventListener(MouseEvent.MOUSE_DOWN, autoplay);
function autoplay (ev:MouseEvent):void{
var startFrame:Number = viewer_mc.currentFrame;
viewer_mc.gotoAndPlay(startFrame);
right_btn.addEventListener(MouseEvent.MOUSE_DOWN, rightDown);
function rightDown(e:Event){
stage.addEventListener(MouseEvent.MOUSE_UP,stoprightDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
addEventListener(Event.ENTER_FRAME,rotateRight); //while the mouse is down, run the tick function once every frame as per the project frame rate
function stoprightDown(e:Event):void {
removeEventListener(Event.ENTER_FRAME,rotateRight); //stop running the tick function every frame now that the mouse is up
stage.removeEventListener(MouseEvent.MOUSE_UP,stoprightDown); //remove the listener for mouse up
function rotateRight(e:Event):void {
viewer_mc.nextFrame();
left_btn.addEventListener(MouseEvent.MOUSE_DOWN, leftDown);
function leftDown(e:Event){
stage.addEventListener(MouseEvent.MOUSE_UP,stopleftDown); //listen for mouse up on the stage, in case the finger/mouse moved off of the button accidentally when they release.
addEventListener(Event.ENTER_FRAME,rotateLeft);//while the mouse is down, run the tick function once every frame as per the project frame rate
function stopleftDown(e:Event):void {
removeEventListener(Event.ENTER_FRAME,rotateLeft); //stop running the tick function every frame now that the mouse is up
stage.removeEventListener(MouseEvent.MOUSE_UP,stopleftDown); //remove the listener for mouse up
function rotateLeft(e:Event):void{
viewer_mc.prevFrame();
The definition of the rotateLeft function is where the problem lies I think - I've taken out my poor attempts at doing the logic from the previous post. If I were to write it out long-hand the statement I want to write is: 'If you get to frame 1 and function rotateLeft is called go to the end of the movie clip'.
The reason I have to use the viewer_mc.totalFrames-1 definition in the addFrameScript call is the addFrameScript function is 0 based i.e. if you want to call frame 1 of the movieclip you have to return a value of 0 in the addFrameScript (or such is my understanding of it anyway). As such, the last image in the movie clip will need to be the view obtained at 360 degree rotation, which is of course the same view as at 0 degree rotation. As a consequence, the last frame in the movie clip is superfluous for the user, but necessary for the overall effect to be achieved. And, in addition, to keep up the effect of a 360 degree view when the rotateLeft function is called it needs to skip that last frame to go to the lastFrame-1 (or totalframes-1), or in other words, the view of the image prior to completing the full 360 rotation.
the variables thisFrame and lastFrame are defined at the very top of the script. Like you said they might need to be defined or called on again elsewhere. -
Problem with buttons in page fragment
Hi,
I'm developing a jsp-page, which has two page-fragments and one inline frame..
I've a problem with one page-fragment. This one contains three buttons, for changing the language. When someone pushes the button, it seems that there is no action triggered...
Here is my code:
<?xml version="1.0" encoding="UTF-8"?>
<div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:j="http://www.sun.com/creator/jsfcl">
<f:loadBundle basename="oltbwebapplication.bundle" var="bundle"/>
<h:outputText binding="#{OltbStatus.mnuBanksys}" id="mnuBanksys" style="left: 96px; top: 0px; position: absolute" value="#{bundle.mnuLac}"/>
<h:commandButton action="#{OltbStatus.choseNl}" actionListener="#{OltbStatus.btnNl_processAction}" binding="#{OltbStatus.btnNl}" id="btnNl"
style="left: 432px; top: 0px; position: absolute" value="NL"/>
<h:commandButton action="#{OltbStatus.choseFr}" binding="#{OltbStatus.btnFr}" id="btnFr" style="left: 480px; top: 0px; position: absolute" value="FR"/>
<h:commandButton action="#{OltbStatus.choseEn}" binding="#{OltbStatus.btnEn}" id="btnEn" style="left: 528px; top: 0px; position: absolute" value="EN"/>
</div>Thx in advance
Ann CarpentierHi Ann,
I was working with dropdowns in pagefragments consequent to your query. I noticed that there is a problem with the dropdowns too. This especially happens if you have the same components in both the page fragments. For example buttons in both the page fragments or dropdowns in both page fragments etc.
I have filed a change request on your behalf for the same.
We thank you for bringing this to our notice.
Thanks and
Cheers :-) -
Want to stop for opening multiple frames ????
Dear i am working on an application .
in that there is a frame ok in that frame there is a button.
so when u click on that button a new frame will open ok now the problem is that.
suppose u click 5 times on that button so that button will open 5 same type of frames.
so i dont want to open more then 1 frame so pl help me .i cant find out how to stop to open more then 1 frame.
here is a code of 1st frame . which have a button ok
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
public class bookdata implements ActionListener
JFrame frame;
JLabel label;
JPanel panel , panel2 , panel3;
JButton but1,but2,but3,but4,but5,but6;
Color cc;
BoxLayout bak;
ImageIcon icon;
FlowLayout flo;
public bookdata()
icon = new ImageIcon("book/book.jpg");
frame = new JFrame("Book Database");
//frame.setResizable(false);
frame.setIconImage(new ImageIcon("book/logo.gif").getImage());
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - 550)/2;
int y = (d.height - 500)/2;
frame.setBounds(x,y,400,300);
public void main1()
JLabel label = new JLabel(icon);
flo = new FlowLayout();
panel3 = new JPanel();
but1 = new JButton("NEW BOOK");
but2 = new JButton("EDIT");
but3 = new JButton("DELET");
but4 = new JButton("SHOW");
but5 = new JButton("LONE");
but6 = new JButton();
but1.addActionListener(this);
panel = new JPanel();
bak = new BoxLayout(panel,BoxLayout.Y_AXIS);
panel.setLayout(bak);
// 1st 220 is for R
// 2nd 177 is for G
// 3rd 162 is for B
// 4th 255 is for Alpha
cc = new Color(51,51,255);
panel2 = new JPanel();
panel2.setLayout(flo);
panel2.setBackground(cc);
panel2.add(label);
JSeparator hh = new JSeparator(SwingConstants.VERTICAL);
SpringLayout layout = new SpringLayout();
panel3.setLayout(layout);
panel3.add(but1); // pp1
panel3.add(but2); // pp2
panel3.add(but3); // pp3
panel3.add(but4); // pp4
panel3.add(but5); // pp5
//ActionListenet Calling
layout.putConstraint(SpringLayout.WEST, but1, 15,SpringLayout.WEST, panel3); // pp1
layout.putConstraint(SpringLayout.NORTH, but1, 25,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but2, 15,SpringLayout.WEST, panel3); // pp2
layout.putConstraint(SpringLayout.NORTH, but2, 55,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but3, 15,SpringLayout.WEST, panel3); // pp3
layout.putConstraint(SpringLayout.NORTH, but3, 85,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but4, 15,SpringLayout.WEST, panel3); // pp4
layout.putConstraint(SpringLayout.NORTH, but4, 115,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but5, 15,SpringLayout.WEST, panel3); // pp5
layout.putConstraint(SpringLayout.NORTH, but5, 145,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, label, 60,SpringLayout.WEST, panel3);
layout.putConstraint(SpringLayout.NORTH, label, 100,SpringLayout.NORTH, panel3);
frame.getContentPane().add(panel);
panel.add(panel2);
panel.add(panel3);
frame.setSize(600,500);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void actionPerformed(ActionEvent e)
Object obj = e.getSource();
if(obj == but1)
newbook nebook = new newbook();
}Dear i am working on an application .
in that there is a frame ok in that frame there is a
button.
so when u click on that button a new frame will open
ok now the problem is that.
suppose u click 5 times on that button so that button
will open 5 same type of frames.
DO U WANT TO COME AGAIN ON THE PARENT FRAME.IF NOT THAN
parentFrame.setVisible(false);
if yes then ................
so i dont want to open more then 1 frame so pl help
p me .i cant find out how to stop to open more then 1
frame.
here is a code of 1st frame . which have a button
ok
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
public class bookdata implements ActionListener
JFrame frame;
JLabel label;
JPanel panel , panel2 , panel3;
JButton but1,but2,but3,but4,but5,but6;
Color cc;
BoxLayout bak;
ImageIcon icon;
FlowLayout flo;
public bookdata()
icon = new ImageIcon("book/book.jpg");
frame = new JFrame("Book Database");
//frame.setResizable(false);
frame.setIconImage(new
ew ImageIcon("book/logo.gif").getImage());
Dimension d =
= Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - 550)/2;
int y = (d.height - 500)/2;
frame.setBounds(x,y,400,300);
public void main1()
JLabel label = new JLabel(icon);
flo = new FlowLayout();
panel3 = new JPanel();
but1 = new JButton("NEW BOOK");
but2 = new JButton("EDIT");
but3 = new JButton("DELET");
but4 = new JButton("SHOW");
but5 = new JButton("LONE");
but6 = new JButton();
but1.addActionListener(this);
panel = new JPanel();
bak = new BoxLayout(panel,BoxLayout.Y_AXIS);
panel.setLayout(bak);
// 1st 220 is for R
// 2nd 177 is for G
// 3rd 162 is for B
// 4th 255 is for Alpha
cc = new Color(51,51,255);
panel2 = new JPanel();
panel2.setLayout(flo);
panel2.setBackground(cc);
panel2.add(label);
JSeparator hh = new
ew JSeparator(SwingConstants.VERTICAL);
SpringLayout layout = new SpringLayout();
panel3.setLayout(layout);
panel3.add(but1); // pp1
panel3.add(but2); // pp2
panel3.add(but3); // pp3
panel3.add(but4); // pp4
panel3.add(but5); // pp5
//ActionListenet Calling
layout.putConstraint(SpringLayout.WEST, but1,
1, 15,SpringLayout.WEST, panel3); // pp1
layout.putConstraint(SpringLayout.NORTH, but1,
but1, 25,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but2,
2, 15,SpringLayout.WEST, panel3); // pp2
layout.putConstraint(SpringLayout.NORTH, but2,
but2, 55,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but3,
3, 15,SpringLayout.WEST, panel3); // pp3
layout.putConstraint(SpringLayout.NORTH, but3,
but3, 85,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but4,
4, 15,SpringLayout.WEST, panel3); // pp4
layout.putConstraint(SpringLayout.NORTH, but4,
but4, 115,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, but5,
5, 15,SpringLayout.WEST, panel3); // pp5
layout.putConstraint(SpringLayout.NORTH, but5,
but5, 145,SpringLayout.NORTH, panel3);
layout.putConstraint(SpringLayout.WEST, label,
l, 60,SpringLayout.WEST, panel3);
layout.putConstraint(SpringLayout.NORTH, label,
abel, 100,SpringLayout.NORTH, panel3);
frame.getContentPane().add(panel);
panel.add(panel2);
panel.add(panel3);
frame.setSize(600,500);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
public void actionPerformed(ActionEvent e)
Object obj = e.getSource();
if(obj == but1)
newbook nebook = new newbook(); -
Problem in setting background Image to TabedPane.
Hi Pals,
I created a JFrame which consist of some components. The structure of the added components are given below.
1) I added a JPanel (MainPanel) with background image in a JFrame.
2) I added a JTabbedPane with 7 tabs in the previous JPanel (MainPanel).
3) Each tabs in the JTabbedPane having JPanel with Background Image.
This is my Frame Structure. but i haven't problem to run in JDK1.6,1.5. It is working perfect. But when am run in lower version like 1.3 or 1.4. The design is looking bad. The JTabbedPane overlap the (MainPanel). The background image of the (MainPanel) was hided. I set setOpaque(false) for the JTabbedPane. But it also not working. How can i solve this problem.
By,
MohanYour problems appear to stem from your choice of layout manager(s). To get better help sooner, post a [_Short, Self Contained, Compilable and Executable, Example Program (SSCCE)_|http://mindprod.com/jgloss/sscce.html] that clearly demonstrates your problem.
To post code, use the code tags -- [code]Your Code[/code] will display asYour CodeOr use the code button above the editing area and paste your code between the {code}{code} tags it generates.
db -
Take 2_Newbie question re. tables/frames/layers
Hi all
I have created this as a new post as the original one by
DummyPete has become a bit too long and the topic has altered
somewhat :)
DummyPete orignially wrote:
"Basically, I'd like to create the fairly common design where
the left sidebar has hotspot buttons and remains static/consistent
across all pages, along with the top header banner. The sidebar and
the banner are sizeable GIFs, so I don't want to keep reloading
them for every page.
I tried frames, but couldn't get the images to lineup and all
the separate HTML files to work; besides, the book says to avoid
frames. Then I tried layers, but neither Firefox nor IExplorer
displayed my basic layout properly; I didn't even get as far as
hyperlinking the regions. I was able to create the desired effect
with tables, but I can't seem to figure out how to update only one
cell of the table when clicking the different hotspots in the
adjacent sidebar cell -- is this even possible?
I have a similar query:
I am trying to create a online folio where you click an image
with a link on a menu and it opens up a larger image on the page.
Like DummyPete If I use links it jumps between pages. What is the
easiest way to make such a gallery?
I have found a site to show what I am trying to do:
http://www.nolovelost.co.nz/main.html
I believe this uses frames. Is there a way to do this kind of
thing without frames? Are there any major problems using frames?
The responses i have had so far are:
HI! I think this is what you want unless you have a larger
gallery.
http://javascript.internet.com/miscellaneous/gallery-viewer.html#source
Sales
Webcan design
http://www.webcandesign.com
and
that opens a new window resized to the actual size of the
larger image...
this extension will allow you to do that:
www.dreamweaverfever.com/grow/
No need to use frames at all.
Nadia
Adobe� Community Expert : Dreamweaver
Thank you to those who posted:) much appreciated. It isn't
quite what I was looking for.
I have read may other posts about this subject and most point
to pre made galleries. I am happy to have each image as a separate
page. All I want to do is have a link and when it is clicked it
opens somewhere else on the pages without the rest of the page
jumping. When I create each image on a separate page (eg
image1.html, image2.html) with the same navigation setup on each
page it flicks as the each page loads. I really like how in the
example i posted you click the text link on the left and the image
opens to the right - how can i do this?
thanks
PoppitInvestigate either the FREE ShowPic extension from PVII -
http://www.projectseven.com/
or do it yourself using the SetTextofLayer behavior in DW,
using the method
demoed here -
http://dreamweaverresources.com/tutorials/settextoflayer.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"novice dw" <[email protected]> wrote in
message
news:[email protected]...
> Hi all
>
> I have created this as a new post as the original one by
DummyPete has
> become
> a bit too long and the topic has altered somewhat :)
>
> DummyPete orignially wrote:
> "Basically, I'd like to create the fairly common design
where the left
> sidebar
> has hotspot buttons and remains static/consistent across
all pages, along
> with
> the top header banner. The sidebar and the banner are
sizeable GIFs, so I
> don't
> want to keep reloading them for every page.
>
> I tried frames, but couldn't get the images to lineup
and all the separate
> HTML files to work; besides, the book says to avoid
frames. Then I tried
> layers, but neither Firefox nor IExplorer displayed my
basic layout
> properly; I
> didn't even get as far as hyperlinking the regions. I
was able to create
> the
> desired effect with tables, but I can't seem to figure
out how to update
> only
> one cell of the table when clicking the different
hotspots in the adjacent
> sidebar cell -- is this even possible?
>
> I have a similar query:
>
> I am trying to create a online folio where you click an
image with a link
> on a
> menu and it opens up a larger image on the page. Like
DummyPete If I use
> links
> it jumps between pages. What is the easiest way to make
such a gallery?
>
> I have found a site to show what I am trying to do:
>
>
http://www.nolovelost.co.nz/main.html
>
> I believe this uses frames. Is there a way to do this
kind of thing
> without
> frames? Are there any major problems using frames?
>
> The responses i have had so far are:
>
> HI! I think this is what you want unless you have a
larger gallery.
>
>
http://javascript.internet.com/miscellaneous/gallery-viewer.html#source
>
> Sales
> Webcan design
>
http://www.webcandesign.com
>
> and
>
> that opens a new window resized to the actual size of
the larger image...
> this extension will allow you to do that:
www.dreamweaverfever.com/grow/
>
> No need to use frames at all.
>
> --
> Nadia
> Adobe? Community Expert : Dreamweaver
>
> Thank you to those who posted:) much appreciated. It
isn't quite what I
> was
> looking for.
>
> I have read may other posts about this subject and most
point to pre made
> galleries. I am happy to have each image as a separate
page. All I want
> to do
> is have a link and when it is clicked it opens somewhere
else on the pages
> without the rest of the page jumping. When I create each
image on a
> separate
> page (eg image1.html, image2.html) with the same
navigation setup on each
> page
> it flicks as the each page loads. I really like how in
the example i
> posted you
> click the text link on the left and the image opens to
the right - how can
> i do
> this?
>
> thanks
> Poppit
> -
Quicktime movie export from Flash CS3 is skipping frame.
When I try to export Quicktime movie from Flash CS3, the
resulting mov file is skipping frames. i.e.: The movie is showing
frame number 1, 2, 3, 4, 5, 6, 7, 7, 7, 10, 11, 12, 12, 12, 15
etc...
As you can see the frame number 7 is repeated 3 times and
frame 8 and 9 are nowhere to be found.
The last configuration I used is 960x540, Sorenson video 3
medium quality, 25 fps, keyframe every 25 frames. 6400 kbits/s.
I tried various configurations,with different codecs and even
with keyframe all frames and I always get simillar problems.
Anyone have an idea what is going on, and how to fix this?
Thank you,
Olivier.The QT exporter in Flash is honestly my least favorite
feature - not the feature itself but how it
works (or how it doesn't work in some cases). For me it is
almost unusable unless you have a very
short timeline, small stage, lower frame rate - like AS
generated effects or something - otherwise,
for true frame accuracy to video output - it is not reliable
enough and not fast enough for any real
world production environment.
So typically for me - I love SWF2Video (www.flashants.com) as
it takes any SWF and makes it into an
AVI that is frame accurate no matter what the frame rate is -
quite incredible - enough so that I
always felt it should have been bundled with Flash (as well
as Wacom tablets).
Harmony is an incredible product - as is SOLO and TBS (Toon
Boom mStudio) - each of those programs
are dedicated animation programs designed for output to video
- Flash has a lot of hats to fill and
it was never really designed for animation to video even
though many of us have found it suitable
for all intents and purposes as an animation program for full
production.
But all in all - the quicktime exporter doesn't really
deliver how we would expect it too I am sorry
to say - I only hope it works as well as it does on the Mac
(Mac users could always choose to export
to Quicktime Video but not PC users).
For now if I am exporting to video I keep it all on the
timeline or nested in Graphic symbols or use
the SWF2Video tool.
hope this helps.
-chris
Chris Georgenes / mudbubble.com / keyframer.com / Adobe
Community Expert
OBastien wrote:
> Thank you for your reply Chris.
>
> I tried different possible solutions you listed but it's
not working.
> Disabling sound had no effects. Changing the FPS is not
an option, it has to be
> 25 FPS. I lowered the resolution to 300 something, it
seemed to be a little bit
> better, but it still dropped some frame, and the image
quality was horrible.
>
> I think it is really sad that we have to try different
settings in the hope
> that flash will grab all the frames. I'm really
disapointed in Adobe. I'm
> pretty sure it is the fault of Adobe and not Apple,
because I don't have does
> problems with Quicktime in ToonBoom Harmony. What is
strange is when I do an
> AVI export I never noticed a dropped frame. I'm not
using AVI video right now
> because I can not find a codec that gives me small size,
fast encoding times,
> the ability to seek in the movie by dragging the
timeline progress bar, and the
> possibility to edit in After Effects. If you know an AVI
codec that does all
> that it would be really great news.
>
> Thank you again,
> Olivier.
>
Maybe you are looking for
-
My ipad 2 has stopped responding to tap commands after updating to ios 8.2
After updating the IOS to 8.2 the ipad has stopped responding to commands in Safari or any other application. The touch screen is functional as I can punch my password to unlock the ipad. How to solve this problem Regards Prabhat
-
Strange behaviour of Adobe Forms
Hi Experts, I am using webdynpro Java with AIF on NW2004s SP9, Adobe Reader 7.0.9 with NWDS 7.0.09. AIF is working fine when I access using Local area network and I am facing strange behaviour of AIF using dial-up access. I am not able to retrieve t
-
How to customise theme ?
i am using iplanet portal server 3.0 sp3a.It does not have a theme provider .Where can i find one and how can i integrate or use it to customise themes?
-
Best way to migrate Applications across environments of different versions
Hello Gurus, Source EPM Environment - EPM 11.1.1.3 Target EPM Environment - EPM 11.1.2.2 What is the best way to migrate applications for Planning , Essbase , HFM and also the related reports from 11.1.1.3 to 11.1.2.2 . Any help will be highly apprec
-
512Mb vs. 1Gb videomemory for Photoshop CS4
Whether there is a difference between 512 and 1024 videomemory for Photoshop CS4? Whether the volume of videomemory will be important in the future? Now I choose a videocard, 512 Mb or 1024 Mb?