visibility

How to set the previous jframe visible when current jframe is disposed

和自甴很熟 提交于 2019-12-14 04:05:47
问题 I am making a Java gui project and it consists of two frames. The problem is that when I call the secondframe from the firstframe, I have set it such that the firstframe visibility is set to false. The problem is how do I make the firstframe visible again by using a button from the second frame. should i ditch this method and create a new jpanel instead??? Does jpanel have similar capabilities as jframe? 回答1: Consider using CardLayout . This way you can switch via multiple UIs without needing

Toggle visibility or display of objects

对着背影说爱祢 提交于 2019-12-14 03:59:53
问题 I have a group of objects acted on with data filters to search and filter. JavaScript toggles the visibility of the objects to make the searching and filtering happen. I have some title elements that should only appear when their subject is selected. For instance if the user chooses topic #3 the results for topic #3 should be shown with the title for topic #3. If I perform a search the title should say "search results". Where I'm lost: the gallery starts with all objects and section titles in

Hiding images with blank src using jquery

谁都会走 提交于 2019-12-14 03:55:44
问题 I have 4 sub images on a page that get their src attribute from a database. they all have a class="subImage". When there is no DB entry I would like to hide the element as opposed to have a broken link as i currently have. I have tried in jQuery: <script> $(document).ready(function() { $('.subImage[src^=""]').css('visibility:hidden'); }); </script> Am I way off? thanks. 回答1: You pass parameters to the css function as follows: $(selector).css('visibility','hidden') or $(selector).css({

How can I detect the visibility of a control?

荒凉一梦 提交于 2019-12-14 03:42:01
问题 How to detect if a control is visible to a user? I have a control that displays status of application, and I want it to be updated (it's value to be updated, for example, increase the value of a progress bar, or change a label's Text property) only if a user sees it. No need to update it if a user has minimized the form that contains this control, or if another form overlaps this control. I just don't want to do extra calculations if the control isn't visible any way. Also, how do I detect

Visibility of properties in scala class

牧云@^-^@ 提交于 2019-12-14 00:38:42
问题 I defined a property in the constructor of my class the following way: class Step(val message:String = "") When I try access to message value from Java code y get a visbility error. Why? 回答1: If you add the @scala.reflect.BeanProperty annontation you get "automatic" get and set methods See http://www.scala-lang.org/docu/files/api/scala/reflect/BeanProperty.html scala> class Step(@scala.reflect.BeanProperty val message:String ) defined class Step scala> val s = new Step("asdf") s: Step = Step

BackSide of outer geom not visible when inside inner geom (THREE.JS R76)

≯℡__Kan透↙ 提交于 2019-12-13 21:47:51
问题 I have two cylinderGeometries with the tunnel inside the tunnel wrap. I have a png texture with transparency added to the tunnel and a black color to the wrap. I intend to lower the transparency on the tunnelWrap as a alphaMap opacity workaround. The tunnelWrap appears as transparent when inside the inner tunnel. Why is this? I have tried with much larger radiuses and it was the same result. function addTunnel(){ var cylTexture = loader.load("wormhole2.png"), cylGeom = new THREE

How to make a button visible frominvisible on a successful event happend in another activity

我是研究僧i 提交于 2019-12-13 17:59:10
问题 I have buttons V1-V8 visible and R1-R8 invisible initially in my activity_main.xml file My MainActivity.java file package com.example.buttonvtor; import com.example.buttonvtor.MainActivity; import com.example.buttonvtor.Payment1Activity; import com.example.buttonvtor.Payment2Activity; import com.example.buttonvtor.Payment3Activity; import com.example.buttonvtor.Payment4Activity; import com.example.buttonvtor.Payment5Activity; import com.example.buttonvtor.Payment6Activity; import com.example

WPF ListBoxItem Visibility and ScrollBar

不打扰是莪最后的温柔 提交于 2019-12-13 17:05:18
问题 I was hoping to collapse certain ListBoxItems based on a property of their data context. I came up with the following (trimmed for brevity) <ListBox ItemsSource="{Binding SourceColumns}"> <ListBox.ItemContainerStyle> <Style TargetType="{x:Type ListBoxItem}"> <Style.Triggers> <DataTrigger Binding="{Binding IsDeleted}" Value="True"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers> </Style> </ListBox.ItemContainerStyle> <ListBox.ItemTemplate> <DataTemplate>

Unable to hide youtube iframes in safari?

拜拜、爱过 提交于 2019-12-13 16:10:34
问题 I've noticed that when using any typical method of hiding a div does not work in safari when a youtube video is in it. Look at this basic webpage- <!DOCTYPE html> <html> <head><title>Safari Test</title></head> <body> <div id="test"> <iframe width="560" height="315" src="http://www.youtube.com/embed/Nry5zSJxG9k" frameborder="0" allowfullscreen></iframe> </div> <div id="safari" style="display: none;"> <iframe width="560" height="315" src="http://www.youtube.com/embed/Nry5zSJxG9k" frameborder="0

Invisible Stage/Scene in JavaFX

拜拜、爱过 提交于 2019-12-13 15:14:06
问题 I'm looking for a way to hide a JavaFX Stage or Scene. Now I know about .hide() , but that won't work. I need something that still keeps the window, but just makes it completely transparent. A good analogy is display: none and visibility: hidden in CSS. Whereas the first completely and totally removes a tag/node from the screen, the second just makes it invisible. I'd like something like visibility in JavaFX, not display (which is the hide and show methods). It also might help that my stage