user-interface

How would I make a GUI using Swing that picks two elements from a list and presents the user with two buttons so they could chose the winner?

末鹿安然 提交于 2020-07-23 06:24:08
问题 I am working with a list of elements that I want to rank. Ideally the program would randomly choose 2 elements to compare and present them, sort the list with the new ranking, then select 2 more so the user could pick the winner over and over again until the user wanted to stop. The parts I am having trouble with are: getting the button to interact with the object to change its rank and getting the JFrame to close and reopen with new elements to compare I created a class called action that is

How would I make a GUI using Swing that picks two elements from a list and presents the user with two buttons so they could chose the winner?

旧巷老猫 提交于 2020-07-23 06:23:23
问题 I am working with a list of elements that I want to rank. Ideally the program would randomly choose 2 elements to compare and present them, sort the list with the new ranking, then select 2 more so the user could pick the winner over and over again until the user wanted to stop. The parts I am having trouble with are: getting the button to interact with the object to change its rank and getting the JFrame to close and reopen with new elements to compare I created a class called action that is

How would I make a GUI using Swing that picks two elements from a list and presents the user with two buttons so they could chose the winner?

我与影子孤独终老i 提交于 2020-07-23 06:23:10
问题 I am working with a list of elements that I want to rank. Ideally the program would randomly choose 2 elements to compare and present them, sort the list with the new ranking, then select 2 more so the user could pick the winner over and over again until the user wanted to stop. The parts I am having trouble with are: getting the button to interact with the object to change its rank and getting the JFrame to close and reopen with new elements to compare I created a class called action that is

How would I make a GUI using Swing that picks two elements from a list and presents the user with two buttons so they could chose the winner?

旧巷老猫 提交于 2020-07-23 06:22:00
问题 I am working with a list of elements that I want to rank. Ideally the program would randomly choose 2 elements to compare and present them, sort the list with the new ranking, then select 2 more so the user could pick the winner over and over again until the user wanted to stop. The parts I am having trouble with are: getting the button to interact with the object to change its rank and getting the JFrame to close and reopen with new elements to compare I created a class called action that is

Sliding Effect in Windows Form Application

末鹿安然 提交于 2020-07-22 22:17:12
问题 how can i get my winforms c# app to be in the left of the screen? I would like a small tab showing so that when i move the mouse cursor to that area of the screen it shows up on screen. But when i minimize it goes back to that position. 回答1: So it sounds like you want to make your form stick to the side of the computer screen and then when a mouse-over happens, it expands or does something. This is based on the Shaped Window which is documented by Microsoft here. The following uses a

Sliding Effect in Windows Form Application

大兔子大兔子 提交于 2020-07-22 22:14:35
问题 how can i get my winforms c# app to be in the left of the screen? I would like a small tab showing so that when i move the mouse cursor to that area of the screen it shows up on screen. But when i minimize it goes back to that position. 回答1: So it sounds like you want to make your form stick to the side of the computer screen and then when a mouse-over happens, it expands or does something. This is based on the Shaped Window which is documented by Microsoft here. The following uses a

Sliding Effect in Windows Form Application

◇◆丶佛笑我妖孽 提交于 2020-07-22 22:12:14
问题 how can i get my winforms c# app to be in the left of the screen? I would like a small tab showing so that when i move the mouse cursor to that area of the screen it shows up on screen. But when i minimize it goes back to that position. 回答1: So it sounds like you want to make your form stick to the side of the computer screen and then when a mouse-over happens, it expands or does something. This is based on the Shaped Window which is documented by Microsoft here. The following uses a

Make SliverAppBar have an image as a background instead of a color

放肆的年华 提交于 2020-07-21 04:27:33
问题 I have a SliverAppBar with a background image. When collapsed it has a blue color as a background: But instead of the blue color I want it to show the background image when collapsed: How can I achieve this? I've already tried to give the app bar a transparent background color, but it did not work. Code: void main() => runApp(MyApp()); class MyApp extends StatelessWidget { var scrollController = ScrollController(); @override Widget build(BuildContext context) { return MaterialApp( title:

Set default font for SWT Shell

我的未来我决定 提交于 2020-07-20 09:33:33
问题 Is there a way to set a default font for the whole Shell such that any new control will use that same font? It seems that right now I have to set the font for every control I create, which leads to too much redundancy. 回答1: Font which is used by default is chosen by platform (see other info in Class Font - SWT: The Standard Widget Toolkit), so it's not possible to set default font for all widgets, if you want that, you have to do it "by hand".. Why are you changing default font anyway..? 回答2:

Logo instead of application title Shiny

久未见 提交于 2020-07-19 11:58:22
问题 How can I put instead of title in Shiny app: navbarPage("title",theme = shinytheme("flatly"), tabPanel("Home", some logo in the size of menu tab? I tried this solution: How can I insert an image into the navbar on a shiny navbarPage() but someway is not working. Image too big overlay all menu items Thx 回答1: This is an old question but I was looking for a solution and the other ones I found caused issues when I tried to publish my application using shinyapps.io and this was due to the fact