desktop-application

How To Display Objects in Java JList?

强颜欢笑 提交于 2020-07-16 10:54:01
问题 I'm trying to create a student registration system. In this system, students can see course name, course credit, and the instructor of the course by clicking the "Courses" button.For this purpose i have a Courses class, a database, a frame and a JList courslist. ArrayList<Courses> aq = Database.allCourses(); //allCourses() is a static method in my Database class that returns fields from my Database as an ArrayList<Courses> courselist.setListData(Driver.converToCoursesArray(aq)); //Driver

How do I convert web application into desktop executable?

拜拜、爱过 提交于 2020-06-23 22:33:31
问题 I've HTML application build with AngularJS/jQuery/Bootstrap with AJAX REST API. Is it possible to create executable/installer for Windows operating system? Without any 3rd-party software, it should look like native application, but HTML. For example, Slack messenger has web/mac/windows versions and they look same. Any ideas? // UPD I probably need a wrapper (webview), but I need all features for EcmaScript5/CSS3. 回答1: Electron is the easiest way: 1. Install electron 2. Create and edit main.js

How do I convert web application into desktop executable?

二次信任 提交于 2020-06-23 22:31:51
问题 I've HTML application build with AngularJS/jQuery/Bootstrap with AJAX REST API. Is it possible to create executable/installer for Windows operating system? Without any 3rd-party software, it should look like native application, but HTML. For example, Slack messenger has web/mac/windows versions and they look same. Any ideas? // UPD I probably need a wrapper (webview), but I need all features for EcmaScript5/CSS3. 回答1: Electron is the easiest way: 1. Install electron 2. Create and edit main.js

Unable to connect to the electron / CEF app using selenium web driver

独自空忆成欢 提交于 2020-06-21 05:41:46
问题 I am trying to automate [electron-api-demos][1]app using this sample code. public static void main(String args[]) throws IOException, InterruptedException { int port = 9223;// Open App Runtime.getRuntime().exec( "C:\\Program Files\\Sample.exe" , null, new File("C:\\Program Files\\Sample" )); ChromeOptions options = new ChromeOptions(); String remoteDebuggingAddress = "localhost:" + port; options.setExperimentalOption("debuggerAddress", remoteDebuggingAddress); options.addArguments("remote

Remove items from QListWidget in PyQt5

℡╲_俬逩灬. 提交于 2020-06-14 07:35:34
问题 I am trying to make a refresh button in pyqt5. I am building a desktop app. I wrote the code that scans particular folder and saves filenames and their paths as an array. Array values are added to QListWidget as items self.sampleChoose_list.addItems(sample_directory[0]) I am trying to make a function that refreshes values of the array and passes it to QListWidget. Something like this self.refreshSamples.clicked.connect(self.refreshSample) def refreshSample(self): sample_directory = [] sample

Does Selenium Support automate to Desktop Applications

梦想与她 提交于 2020-03-28 07:03:22
问题 i want to use selenium to automate desktop application but desktop applications does not provide locators and elements X path,how can i locate elements in desktop application 回答1: No, Using selenium we can automate only web based application. Selenium doesn't provide any way to automate desktop applications. For automating desktop application we can use other tools such as AutoIT . Refer here for some idea->http://seleniumsimplified.com/2016/01/can-i-use-selenium-webdriver-to-automate-a

How to access controls that is in the panel in c#

孤街醉人 提交于 2020-03-01 03:08:07
问题 I use a panel in c# winforms and fill the panel with the no of picture box using loop For example, panel name is panal foreach (string s in fileNames) { PictureBox pbox = new new PictureBox(); pBox.Image = Image.FromFile(s); pbox.Location = new point(10,15); . . . . this.panal.Controls.Add(pBox); } now I want to change the location of picturebox in another method. The problem is that how can now I access the pictureboxes so that I change the location of them. I try to use the following but it

How to access controls that is in the panel in c#

点点圈 提交于 2020-03-01 03:08:04
问题 I use a panel in c# winforms and fill the panel with the no of picture box using loop For example, panel name is panal foreach (string s in fileNames) { PictureBox pbox = new new PictureBox(); pBox.Image = Image.FromFile(s); pbox.Location = new point(10,15); . . . . this.panal.Controls.Add(pBox); } now I want to change the location of picturebox in another method. The problem is that how can now I access the pictureboxes so that I change the location of them. I try to use the following but it

Can WPF applications be run in Linux with .Net Core 3?

拜拜、爱过 提交于 2020-02-12 08:48:45
问题 Microsoft announced .Net Core 3 comes with WPF and Windows Forms. So can I create a Desktop application for Linux or Mac using .Net Core 3? 回答1: No, they have clearly stated that these are windows only. In one of the .NET Core 3.0 discussions, they have also clarified that they do not intend to make these features cross-platform in the future since the whole concept is derived from windows specific features. They talked about thinking of a whole new idea for cross-platform applications, which